Commit f725b911 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4222 get the jemalloc chunk size refs[t:4222]

git-svn-id: file:///svn/toku/tokudb@37542 c7de825b-a66e-492c-adef-691d508d4ae1
parent 7265b272
...@@ -43,7 +43,7 @@ toku_memory_startup(void) { ...@@ -43,7 +43,7 @@ toku_memory_startup(void) {
if (result == 0) { if (result == 0) {
size_t lg_chunk; // log2 of the mmap threshold size_t lg_chunk; // log2 of the mmap threshold
size_t lg_chunk_length = sizeof lg_chunk; size_t lg_chunk_length = sizeof lg_chunk;
result = mallctl_f("lg_chunk", &lg_chunk, &lg_chunk_length, NULL, 0); result = mallctl_f("opt.lg_chunk", &lg_chunk, &lg_chunk_length, NULL, 0);
if (result == 0) if (result == 0)
status.mmap_threshold = 1 << lg_chunk; status.mmap_threshold = 1 << lg_chunk;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment