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

don't use system jemalloc #28

Merged
merged 1 commit into from
Mar 3, 2024
Merged

don't use system jemalloc #28

merged 1 commit into from
Mar 3, 2024

Conversation

zaidoon1
Copy link
Owner

@zaidoon1 zaidoon1 commented Mar 3, 2024

See rust-rocksdb/rust-rocksdb#863 for more info.

TLDR:
before my change in a2ca8cf rust rocksdb would force rocksdb to use jemalloc when the jemalloc feature is enabled because of the use of https://github.com/zaidoon1/rust-rocksdb/blob/master/librocksdb-sys/Cargo.toml#L46 in tikv jemalloc. However, because we were not passing the right flags introduced in that commit, rocksdb didn't know that jemalloc is usable so it didn't enable various optimizations that are gated behind jemalloc being enabled and also didn't allow dump memory stats option to work. While my change fixed that and allowed rocksdb to find jemalloc and enable the optimizations, it required linux systems to install jemalloc so that rocksdb can find jemalloc. Thanks to Cristian Vîjdea we no longer need to install jemalloc on the system to have rocksdb recognize that jemalloc is installed.

@zaidoon1 zaidoon1 merged commit bb1c934 into master Mar 3, 2024
16 checks passed
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.

1 participant