Skip to content
Unverified Commit d67f38e2 authored by yiwu-arbug's avatar yiwu-arbug Committed by GitHub
Browse files

Add jemalloc feature (#319)



Adding feature "jemalloc". When enabled, rocksdb "WITH_JEMALLOC" will be enabled. This does NOT affect whether jemalloc is use or not. Mostly it only affect how rocksdb calculate block cache size: if "WITH_JEMALLOC" is on, it will use `malloc_usable_size()` (size allocated by jemalloc) to calculate size of each entry of block cache, instead of the requested size of the allocation.

Tested by running `cargo build --features jemalloc -vv` and check rocksdb compile flags from the output.

Signed-off-by: default avatarYi Wu <yiwu@pingcap.com>
parent 56865683
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment