Skip to content

Allow profiling jemalloc #1649

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

Merged
merged 1 commit into from
Mar 8, 2019
Merged

Conversation

sgrif
Copy link
Contributor

@sgrif sgrif commented Mar 7, 2019

This builds jemalloc with profiling enabled, and preserves debug symbols
in the release binary (note: debug = true does not disable
optimizations). This commit by itself doesn't actually perform any
profiling, but it allows it to be controlled by an environment variable.

At this point I cannot get any useful information about the memory issue
we're seeing in production locally. We also can't reproduce it in a
staging environment. There's something about our production traffic
patterns that we're missing, so the next step is to start looking at
dumps of production memory usage.

My intention is to start enabling sampling based profiling in
production, and copy some of the dumps off the server to examine
locally.

This builds jemalloc with profiling enabled, and preserves debug symbols
in the release binary (note: `debug = true` does not disable
optimizations). This commit by itself doesn't actually perform any
profiling, but it allows it to be controlled by an environment variable.

At this point I cannot get any useful information about the memory issue
we're seeing in production locally. We also can't reproduce it in a
staging environment. There's *something* about our production traffic
patterns that we're missing, so the next step is to start looking at
dumps of production memory usage.

My intention is to start enabling sampling based profiling in
production, and copy some of the dumps off the server to examine
locally.
@jtgeibel
Copy link
Member

jtgeibel commented Mar 8, 2019

These changes seem fine to me.

@bors r+

@bors
Copy link
Contributor

bors commented Mar 8, 2019

📌 Commit a4d2585 has been approved by jtgeibel

@bors
Copy link
Contributor

bors commented Mar 8, 2019

⌛ Testing commit a4d2585 with merge 54e4626...

bors added a commit that referenced this pull request Mar 8, 2019
Allow profiling jemalloc

This builds jemalloc with profiling enabled, and preserves debug symbols
in the release binary (note: `debug = true` does not disable
optimizations). This commit by itself doesn't actually perform any
profiling, but it allows it to be controlled by an environment variable.

At this point I cannot get any useful information about the memory issue
we're seeing in production locally. We also can't reproduce it in a
staging environment. There's *something* about our production traffic
patterns that we're missing, so the next step is to start looking at
dumps of production memory usage.

My intention is to start enabling sampling based profiling in
production, and copy some of the dumps off the server to examine
locally.
@bors
Copy link
Contributor

bors commented Mar 8, 2019

☀️ Test successful - checks-travis
Approved by: jtgeibel
Pushing 54e4626 to master...

@bors bors merged commit a4d2585 into rust-lang:master Mar 8, 2019
@sgrif sgrif deleted the sg-enable-profiling branch March 9, 2019 01:33
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.

3 participants