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

git-svn-id: file:///svn/toku/tokudb@37542 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-16 23:59:58 -04:00 committed by Yoni Fogel
parent 2419230dda
commit 68da600038

View file

@ -43,7 +43,7 @@ toku_memory_startup(void) {
if (result == 0) {
size_t lg_chunk; // log2 of the mmap threshold
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)
status.mmap_threshold = 1 << lg_chunk;
}