Skip to main content

Crate scx_layered

Crate scx_layered 

Source

Re-exports§

pub use layer_core_growth::LayerGrowthAlgo;

Modules§

alloc
Unified per-node CPU allocation for scx_layered.
bpf_intf
layer_core_growth

Structs§

CpuPool
CpuPool represents the CPU core and logical CPU topology within the system. It manages the mapping and availability of physical and logical cores, including how resources are allocated for tasks across the available CPUs.
LayerCommon
LayerConfig
LayerSpec

Enums§

LayerKind
LayerMatch
LayerPlacement

Functions§

largest_remainder
Divide total into parts proportional to quotas, returning exact integers that sum to total. Uses the largest-remainder method (Hamilton’s method) for fair rounding.
round_targets_to_alloc_units
Round CPU targets up to alloc-unit multiples, capped at total_cpus.