Skip to main content

FORGE_MEMORY_REQUEST_MB

Constant FORGE_MEMORY_REQUEST_MB 

Source
pub const FORGE_MEMORY_REQUEST_MB: u32 = 2048;
Expand description

The memory request WorkloadSpec::for_forge declares (MiB).

A forge run is a build, and a build’s ceiling is deliberately roomy (FORGE_MEMORY_LIMIT_MB); this is the much smaller floor a node must have free to be a legal target for one. 2 GiB is what the heaviest forge shape in the tree already asks for by hand — velveteen_exec::remote’s buildkit image-build step overrides resources.memory_mb to exactly this — so it is a measured number rather than a guess, and it keeps the fleet’s 8 GiB build-workers schedulable.