Skip to main content

auto_limit

Function auto_limit 

Source
pub fn auto_limit() -> usize
Expand description

Auto formula: CPUs × oversubscribe vs free-RAM budget, clamped.

When free RAM is unknown (non-Linux /proc path), the CPU budget is further clamped by NON_LINUX_CPU_CAP so low-RAM macOS/Windows hosts do not oversubscribe solely from cpus × IO_OVERSUBSCRIBE (G-PAR-25).