pub struct Counts {
pub cbs: usize,
pub sc: usize,
pub nodes: usize,
pub extra_sessions: usize,
pub arena: usize,
pub remaps: usize,
pub violations: usize,
pub alloc: bool,
pub params: usize,
pub param_home: usize,
}Expand description
How many of each region the image needs.
remaps and violations are fixed counts in nros-node rather than knobs;
they are parameters here so this crate states no policy.
Fields§
§cbs: usize§sc: usize§nodes: usize§extra_sessions: usizeExtra-session slots (and their ids): sessions a node opens on an RMW
backend other than the primary’s. At most nodes; nros-node sizes
it from the image’s backend count (0 when it links one), this crate
only places the region.
arena: usize§remaps: usize§violations: usize§alloc: boolnros-node’s alloc feature — it adds the sporadic-atomic table, so it
changes the SIZE and cannot be inferred from the counts.
params: usizeParameter-store slots carved from the backing. ZERO for an image the
build does not know to build a store, which is what keeps the region
off every image that merely links the declare path (a .bss static
would be unconditional). Policy is nros-params’; this crate only
places the region.
param_home: usizeParameter-service homes carved from the backing: one when the image
carves a store, zero otherwise. nros-node decides; this crate only
places the region.