capacity_for_slot

Function capacity_for_slot 

Source
pub fn capacity_for_slot(slot_size: u32) -> u32
Expand description

Compute ring capacity for a given slot_size, keeping total ring memory within [SHM_BUDGET]. Returns at least 16 (to keep some pipeline buffering even for very large slots).