Package org.apache.cassandra.utils.memory
package org.apache.cassandra.utils.memory
-
ClassDescriptionA pool of ByteBuffers that can be recycled to reduce system direct memory fragmentation and improve buffer allocation performance.Cloner class that can be use to clone partition elements using on-heap or off-heap buffers.Allow cloning of partition elementsCloner class that can be use to clone partition elements on heap.Mark the BB as unused, permitting it to be reclaimedThe cleaner is used by
MemtableCleanerThreadin order to reclaim space from memtables, normally by flushing the largest memtable.MemtableCleanerThread<P extends MemtablePool>A thread that reclaims memory from a MemtablePool on demand.Represents an amount of memory used for a given purpose, that can be allocated to specific tasks through child MemtableAllocator objects.This NativeAllocator uses global slab allocation strategy with slab size that scales exponentially from 8KiB to 1MiB to serve allocation of up to 128KiB.Use this API only for data which are stored in-memory and not serialized directly (without converting to Java primitives) to disk and network+ * The SlabAllocator is a bump-the-pointer allocator that allocates + * large (1MiB) global regions and then doles them out to threads that + * request smaller sized (up to 128KiB) slices into the array.