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

Add support for namespace pids in heap profile names #2636

Merged
merged 1 commit into from Apr 9, 2024

Conversation

nullptr0-0
Copy link

This change adds support for writing pid namespaces to the filename of a heap profile. When running with namespaces pids may reused across namespaces and if mounts are shared where profiles are written there is not a great way to differentiate profiles between pids.

@nullptr0-0
Copy link
Author

Without The Change

-rw-r--r-- 1 sherrycheng users   4395 Apr  8 12:18 test_prefix.3432966.0.i0.heap
-rw-r--r-- 1 sherrycheng users   4537 Apr  8 12:18 test_prefix.3432966.1.i1.heap
-rw-r--r-- 1 sherrycheng users   4677 Apr  8 12:18 test_prefix.3432966.2.i2.heap

With The Change

-rw-r--r-- 1 sherrycheng users   4395 Apr  8 12:17 test_prefix.4026531836.3432458.0.i0.heap
-rw-r--r-- 1 sherrycheng users   4537 Apr  8 12:17 test_prefix.4026531836.3432458.1.i1.heap
-rw-r--r-- 1 sherrycheng users   4677 Apr  8 12:17 test_prefix.4026531836.3432458.2.i2.heap

This change adds support for writing pid namespaces to the filename of a
heap profile. When running with namespaces pids may reused across
namespaces and if mounts are shared where profiles are written there is
not a great way to differentiate profiles between pids.

Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
Signed-off-by: Daniel Hodges <hodgesd@fb.com>
@interwq interwq merged commit 11038ff into jemalloc:dev Apr 9, 2024
68 checks passed
@nullptr0-0 nullptr0-0 deleted the pid_namespace branch April 9, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants