tikv_alloc: Add per thread memory usage (#16255)#18563
tikv_alloc: Add per thread memory usage (#16255)#18563ti-chi-bot[bot] merged 1 commit intotikv:release-7.5from
Conversation
|
@hhwyt This PR has conflicts, I have hold it. |
Signed-off-by: hhwyt <hhwyt1@gmail.com>
98c3d57 to
c8ccfd6
Compare
|
@cfzjywxk PTAL, thx~ |
|
Please also review the PR: #18564. I will merge this one first, then that one. |
[LGTM Timeline notifier]Timeline:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfzjywxk, Connor1996, glorv The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
|
/retest |
|
/merge |
|
@hhwyt: We have migrated to builtin 👉 Please use
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |



This is an automated cherry-pick of #16255
What is changed and how it works?
Issue Number: Ref #15927
What's Changed:
Jemalloc has mapped memory stats per arena. We can bind each thread with a dedicated arena, then we have per thread memory usage.
The total memory ~== block cache size + total of per thread footprint

Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Side effects
Release note