-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Feature] feat: jemalloc by default on linux #3154
[Feature] feat: jemalloc by default on linux #3154
Conversation
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 as long as we're ok with enabling it only for Linux; ideally we'd use a target-specific feature, but it is not doable yet: rust-lang/cargo#1197.
Is this also targetable for macOS? |
Yes, it works as far as we've tested, but the jemalloc test suite doesn't completely succeed on macOS, so there may be issues. See platform support on https://crates.io/crates/jemallocator. Maybe we should even restrict to linux on x86 (though unlikely people will be running snarkOS on aarch64 linux at this point). |
We can't merge this if this PR introduces issues. |
Moving back to draft until this is resolved, please prioritize as P0 |
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, this makes jemalloc
default on the platforms that are fully supported: https://crates.io/crates/tikv-jemallocator#platform-support.
Enable jemalloc by default on linux.