Skip to main content

step_kb

Function step_kb 

Source
pub fn step_kb() -> u64
Expand description

The resident growth that warrants a trim: 1/64 of the soft memory fuse (resolve_rss_cap, 3/4 of --max-memory), within 32-256 MB: 96 MB under --max-memory=8192, the 32 MB floor below a ceiling of ~2.7 GB, ~67 MB at the 4.5 GB default fuse, 256 MB with none. Per sample this replaces up to step/page-cost of retained free pages (~650 pages at the 152 KB/page growth) with one /proc/self/status read. A render-worker child (render_workers::worker_main) installs its manifest.max_rss_kb share via stomach::set_memory_cap, so it steps by its own share (or by the default fuse / LATEXML_RSS_CAP_BYTES when uncapped).