Skip to content
API REFERENCEUsage guides →

cellpack::loader::MemoryEstimate ​

struct

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: usize

The plan’s cache frames, frames × page_size.

generation_bytes ​

generation_bytes: usize

One generation word per cache frame.

private_frame_bytes ​

private_frame_bytes: usize

Every worker’s private frames (its misses).

worker_scratch_bytes ​

worker_scratch_bytes: usize

Conversion, decode and row scratch of every worker, including each worker’s process scratch.

plan_ring_bytes ​

plan_ring_bytes: usize

The plan ring between the plan’s producer and the workers.

metadata_bytes ​

metadata_bytes: usize

Chunk metadata, decode tables, the column arena, the mode words, panel maps and schema tables.

output_ring_bytes ​

output_ring_bytes: usize

The output ring, control and data.

known_reservation_bytes ​

known_reservation_bytes: usize

The sum of the terms above.

Implemented traits ​

Contract 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.

Definition