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

Enable jemalloc for Mac environments #610

Merged
merged 5 commits into from
May 3, 2023

Conversation

akoshelev
Copy link
Collaborator

It was enabled already for x86 Macs, ARM has the same level of support. I ran a couple of benchmarks and everything seems to be working just fine

It was enabled already for x86 Macs, ARM has the same level of support.
I ran a couple of benchmarks and everything seems to be working just fine
@akoshelev
Copy link
Collaborator Author

Some evidence that it actually works on my mac

raw-ipa [jemalloc-mac] cargo bench --bench oneshot_ipa --no-default-features --features="enable-benches" -- -n 10
    Finished bench [optimized] target(s) in 1.52s
     Running benches/oneshot/ipa.rs (target/release/deps/oneshot_ipa-4592e5cae60a2dc6)
Using random seed: 7588862210012395418 for 10 records
Preparation complete in 3.233167ms
Malicious IPA for 10 records took 346.345292ms

@akoshelev
Copy link
Collaborator Author

It is funny but jemalloc works better on ARM Macs: tikv/jemallocator#17

@taikiy
Copy link
Contributor

taikiy commented May 3, 2023

Verified that jemalloc works on my M1 Mac, too.

@akoshelev akoshelev merged commit 70930fb into private-attribution:main May 3, 2023
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