Appearance
cellpack::loader::MemoryEstimate
Module contract · All interfaces
At a glance
pub struct MemoryEstimate {
pub cache_frame_bytes: usize,
pub generation_bytes: usize,
pub private_frame_bytes: usize,
pub worker_scratch_bytes: usize,
pub plan_ring_bytes: usize,
pub metadata_bytes: usize,
pub output_ring_bytes: usize,
pub known_reservation_bytes: usize,
}Bytes a run reserves, by purpose. Each term is a known reservation, not a measured footprint: allocator overhead, the compiler’s own state and the OS page cache are outside it, and reserved bytes need not be resident.
Fields and variants
cache_frame_bytes
cache_frame_bytes: usizeThe plan’s cache frames, frames × page_size.
generation_bytes
generation_bytes: usizeOne generation word per cache frame.
private_frame_bytes
private_frame_bytes: usizeEvery worker’s private frames (its misses).
worker_scratch_bytes
worker_scratch_bytes: usizeConversion, decode and row scratch of every worker, including each worker’s process scratch.
plan_ring_bytes
plan_ring_bytes: usizeThe plan ring between the plan’s producer and the workers.
metadata_bytes
metadata_bytes: usizeChunk metadata, decode tables, the column arena, the mode words, panel maps and schema tables.
output_ring_bytes
output_ring_bytes: usizeThe output ring, control and data.
known_reservation_bytes
known_reservation_bytes: usizeThe sum of the terms above.
Implemented traits
impl Clone for MemoryEstimateimpl Debug for MemoryEstimateimpl Default for MemoryEstimateContract reference
See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.