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

Support global memory control #37816

Closed
8 of 9 tasks
wshwsh12 opened this issue Sep 14, 2022 · 0 comments
Closed
8 of 9 tasks

Support global memory control #37816

wshwsh12 opened this issue Sep 14, 2022 · 0 comments
Labels
type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@wshwsh12
Copy link
Contributor

wshwsh12 commented Sep 14, 2022

Feature Request

Is your feature request related to a problem? Please describe:

Currently, TiDB has a query-level memory control strategy mem-quota-query, which triggers Cancel when the memory usage of a single SQL exceeds mem-quota-query. However, there is currently no global memory control strategy. When TiDB has a certain degree of inaccuracy due to multiple SQLs whose memory usage does not exceed mem-quota-query or memory tracking, it will lead to high memory usage or even OOM. Therefore, we need a means that can be observed from the outside to determine whether the memory usage of the current system is normal, and when there is a problem, try to control its memory not to continue to grow, so as to reduce the risk of process crashes.

Design Docs

Todo List

Test

@wshwsh12 wshwsh12 added the type/feature-request Categorizes issue or PR as related to a new feature. label Sep 14, 2022
ti-chi-bot pushed a commit that referenced this issue Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant