pub fn capacity_for_slot(slot_size: u32) -> u32
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).
SHM_BUDGET