Skip to content

planner: Memory tracking for plan cache #37632

@fzzf678

Description

@fzzf678

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions