Available on Unix and crate feature
pager only.Expand description
Swap backend for the pager. See mz_ore::pager for the public API.
StructsΒ§
- Swap
Inner π - Storage for a swap-backed handle.
FunctionsΒ§
- advise_
pageout - Proactively reclaims (swaps out) the resident pages of
bytesviaMADV_PAGEOUT, holding RSS at the callerβs budget right now rather than waiting for kernel LRU to reclaim under pressure the waypageout_swapβsMADV_COLDhint does. - copy_
range π - madvise_
aligned π βLinux - Issues
madvise(advice)over the page-aligned interior of the byte range[base_ptr, base_ptr + len_bytes).madviseoperates at page granularity, so the start rounds up and the end rounds down to page boundaries; a range that contains no whole page is skipped so we never advise pages we only partially own. - madvise_
cold πLinux - madvise_
pageout πLinux - page_
size πLinux - pageout_
swap π - read_
at_ πswap - take_
swap π