Struct tikv_jemalloc_ctl::opt::lg_tcache_max [−][src]
pub struct lg_tcache_max;
Expand description
Maximum size class (log base 2) to cache in the thread-specific cache
(tcache
).
At a minimum, all small size classes are cached, and at a maximum all large size classes are cached. The default maximum is 32 KiB (2^15).
Examples
use tikv_jemalloc_ctl::opt; let lg_tcache_max = opt::lg_tcache_max::read().unwrap(); println!("max cached allocation size: {}", 1 << lg_tcache_max);