Skip to main content

available_commit_gb

Function available_commit_gb 

Source
pub fn available_commit_gb() -> Option<f64>
Expand description

Available system commit headroom in GB (Windows: GlobalMemoryStatusEx → ullAvailPageFile). Returns None where there’s no cheap commit figure (non-Windows) or the read fails — callers treat None as “no limit / admit”. This is the admission-control signal for Pillar 3 (commit-aware agent spawn): see agents::runner::admit_spawn and SPEC_WIN10_PAGEFILE_OOM_CRASH.