Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

planner: Memory tracking for plan cache #37632

Closed
22 of 25 tasks
fzzf678 opened this issue Sep 6, 2022 · 0 comments
Closed
22 of 25 tasks

planner: Memory tracking for plan cache #37632

fzzf678 opened this issue Sep 6, 2022 · 0 comments
Labels
epic/memory-management epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.

Comments

@fzzf678
Copy link
Contributor

fzzf678 commented Sep 6, 2022

Enhancement

  • Currently, there is no interface to get the memory usage of plan cache. We can only estimate the memory each plan used and set a limit number to control the memory.It is imprecise and may cause OOM of TiDB.So we would like to add memory tracker for plan cache to count and manage the memory usage.

Items

PhysicalPlan memory trace

Count other memory usage in plan cache

Test and attach

Others

@fzzf678 fzzf678 added the type/enhancement The issue or PR belongs to an enhancement. label Sep 6, 2022
ti-chi-bot pushed a commit that referenced this issue Sep 7, 2022
ti-chi-bot pushed a commit that referenced this issue Oct 21, 2022
@qw4990 qw4990 closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic/memory-management epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants