Module memory_pool

Source
Expand description

MemoryPool for memory management during query execution, proxy for help with allocation accounting.

Modules§

proxy
units

Structs§

FairSpillPool
A MemoryPool that prevents spillable reservations from using more than an even fraction of the available memory sans any unspillable reservations (i.e. (pool_size - unspillable_memory) / num_spillable_reservations)
GreedyMemoryPool
A MemoryPool that implements a greedy first-come first-serve limit.
MemoryConsumer
A memory consumer is a named allocation traced by a particular MemoryReservation in a MemoryPool. All allocations are registered to a particular MemoryConsumer;
MemoryReservation
A MemoryReservation tracks an individual reservation of a number of bytes of memory in a MemoryPool that is freed back to the pool on drop.
TrackConsumersPool
A MemoryPool that tracks the consumers that have reserved memory within the inner memory pool.
UnboundedMemoryPool
A MemoryPool that enforces no limit

Traits§

MemoryPool
Tracks and potentially limits memory use across operators during execution.

Functions§

human_readable_size
Present size in human readable form