Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

memory-admission

memory-admission is a Rust admission gate for parallel work that should slow down when the host or cgroup is under memory pressure.

It provides synchronous gates, Tokio-friendly gates, and weighted gates for jobs that can estimate their memory cost in bytes. Use it when a worker count alone is not enough to protect a machine from swap thrashing or out-of-memory pressure.

Source is hosted at Codeberg.