Skip to main content

PAGEOUT_RETRY_CAP

Constant PAGEOUT_RETRY_CAP 

Source
pub(crate) const PAGEOUT_RETRY_CAP: u8 = 3;
Available on Unix and crate feature pool only.
Expand description

Consecutive incomplete pageout passes after which an extent stops being advised out until a read faults it back in. Transient declines are kernel-internal page pins that defeat the reclaim’s isolation step (a folio sitting in another CPU’s LRU batch, a momentary swap-slot allocation failure); they clear as soon as the pin drains, so a retry or two recovers them. Persistent declines (no swap device, an exhausted or unswappable cgroup) never clear, and further advice is pure page-table walking. Three passes covers the transient causes while bounding the wasted advice at two extra passes per extent.