Expand description
MemoryPool for memory management during query execution, proxy for
help with allocation accounting.
Modules§
- arrow
arrow_buffer_pool - Adapter for integrating DataFusion’s
MemoryPoolwith Arrow’s memory tracking APIs. - proxy
- units
- Common data size units
Structs§
- Drift
Sample - One observation of drift, recorded by
MemoryDriftTracker. - Fair
Spill Pool - A
MemoryPoolthat 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) - Greedy
Memory Pool - A
MemoryPoolthat implements a greedy first-come first-serve limit. - Memory
Consumer - A memory consumer is a named allocation traced by a particular
MemoryReservationin aMemoryPool. All allocations are registered to a particularMemoryConsumer; - Memory
Consumer Metrics - A point-in-time snapshot of a tracked memory consumer’s state.
- Memory
Drift Tracker - Compares allocated bytes against the total reserved by every pool that
reports to it (see
PeakRecordingPool::with_drift_tracker). - Memory
Reservation - A
MemoryReservationtracks an individual reservation of a number of bytes of memory in aMemoryPoolthat is freed back to the pool on drop. - Merge
Memory Pool - Shares reserved merge workspace across child reservations and temporary loans.
- Peak
Recording Pool - Wraps a
MemoryPool, recording the high-water mark ofMemoryPool::reservedas reservations come and go. - Track
Consumers Pool - A
MemoryPoolthat tracks the consumers that have reserved memory within the inner memory pool. - Unbounded
Memory Pool - A
MemoryPoolthat enforces no limit - Workspace
Loan - A temporary claim on workspace already reserved by a
MergeMemoryPool.
Enums§
- Memory
Limit - Memory limit of
MemoryPool
Constants§
- DEFAULT_
DRIFT_ LOG_ THRESHOLD - Default rise in drift, in bytes, needed before another line is logged.
Traits§
- Memory
Pool - Tracks and potentially limits memory use across operators during execution.
Functions§
- human_
readable_ count - Present count in human-readable form with K, M, B, T suffixes
- human_
readable_ duration - Present duration in human-readable form with 2 decimal places
- human_
readable_ size - Present size in human-readable form
Type Aliases§
- Allocated
Bytes Fn - Returns the number of bytes currently allocated by the process.