-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add feature to use jemalloc as memory allocator #4571
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
ndr-ds
merged 2 commits into
main
from
09-15-add_feature_to_use_jemalloc_as_memory_allocator
Sep 16, 2025
Merged
Add feature to use jemalloc as memory allocator #4571
ndr-ds
merged 2 commits into
main
from
09-15-add_feature_to_use_jemalloc_as_memory_allocator
Sep 16, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Sep 15, 2025
Merged
This was referenced Sep 15, 2025
Draft
deuszx
approved these changes
Sep 15, 2025
8ce35c8
to
d69326d
Compare
4da37f2
to
c18be16
Compare
d69326d
to
23a8d18
Compare
23a8d18
to
a043826
Compare
c18be16
to
860f522
Compare
a043826
to
20adbf7
Compare
20adbf7
to
ef98053
Compare
7ba0612
to
22c5f8e
Compare
22c5f8e
to
f800271
Compare
ef98053
to
eee424e
Compare
Base automatically changed from
09-03-optimize_rocksdb_prefix_searches
to
main
September 16, 2025 19:39
deuszx
pushed a commit
that referenced
this pull request
Sep 19, 2025
## Motivation jemalloc is more performant than the system allocator (and was even the Rust default for a while) ## Proposal Add a feature that when enabled will use jemalloc as the allocator. We might decide to have this feature on by default eventually, but for now it'll be used for memory profiling, which is coming in the following PRs. ## Test Plan Deployed a network with this featured turned on, saw a slight performance improvement, and tested with the profiling code. ## Release Plan - Nothing to do / These changes follow the usual release cycle.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
jemalloc is more performant than the system allocator (and was even the Rust default for a while)
Proposal
Add a feature that when enabled will use jemalloc as the allocator. We might decide to have this feature on by default eventually, but for now it'll be used for memory profiling, which is coming in the following PRs.
Test Plan
Deployed a network with this featured turned on, saw a slight performance improvement, and tested with the profiling code.
Release Plan