Struct tikv_jemalloc_ctl::opt::tcache_max
source · pub struct 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 tcache_max = opt::tcache_max::read().unwrap();
println!("max cached allocation size: {}", tcache_max);
Implementations§
source§impl tcache_max
impl tcache_max
sourcepub fn mib() -> Result<tcache_max_mib>
pub fn mib() -> Result<tcache_max_mib>
Returns Management Information Base (MIB)
This value can be used to access the key without doing string lookup.
sourcepub fn name() -> &'static Name
pub fn name() -> &'static Name
Key crate::keys::Name
.
Auto Trait Implementations§
impl Freeze for tcache_max
impl RefUnwindSafe for tcache_max
impl Send for tcache_max
impl Sync for tcache_max
impl Unpin for tcache_max
impl UnwindSafe for tcache_max
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more