-
Notifications
You must be signed in to change notification settings - Fork 9
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 arena.i.purge and malloc_stats_print when jemalloc is used #402
Conversation
Signed-off-by: Calvin Neo <[email protected]>
proxy_components/proxy_server/src/status_server/vendored_utils.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: JaySon <[email protected]>
Signed-off-by: Calvin Neo <[email protected]>
…into support-purge
Signed-off-by: Calvin Neo <[email protected]>
Signed-off-by: Calvin Neo <[email protected]>
Signed-off-by: Calvin Neo <[email protected]>
Is this PR ready to be merged? Seem the test still failed |
No, I added another interface to get memory status from jemalloc in the meantime, I am still testing |
Signed-off-by: Calvin Neo <[email protected]>
Signed-off-by: Calvin Neo <[email protected]>
/retest |
1 similar comment
/retest |
@JaySon-Huang It is now OK for merge |
malloc_stats_print( | ||
Some(write_to_string), | ||
&context as *const _ as *mut c_void, | ||
std::ptr::null(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The malloc_stats_print() function writes summary statistics .... The statistics are presented in human-readable form unless “J” is specified as a character within the opts string, in which case the statistics are presented in JSON format.
Maybe passing "J"
instead of std::ptr::null()
is a more suitable format of a http API response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I will fix that
Signed-off-by: Calvin Neo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[LGTM Timeline notifier]Timeline:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JaySon-Huang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@CalvinNeo: The following test failed, say
Full PR test history. Your PR dashboard. Instructions 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 kubernetes/test-infra repository. I understand the commands that are listed here. |
What is changed and how it works?
Issue Number: Close #xxx
What's Changed:
Reference: https://jemalloc.net/jemalloc.3.html#opt.muzzy_decay_ms
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
Release note