Unified reclaim: walks page_cache + all VMAs via the SCOMS. More...
import std;import zxfoundation.memory.pmm;import zxfoundation.memory.pmm.types;import zxfoundation.memory.numa;import zxfoundation.memory.page_cache;import zxfoundation.memory.numa.types;import zxfoundation.memory.oom;import zxfoundation.memory.vm;import zxfoundation.memory.vm.types;import zxfoundation.dgp.domain.types;import arch.s390x.mmu.tlb;import lib.error;import zxfoundation.dgp.domain.core;import zxfoundation.base.types;Functions | |
| auto | zxfoundation::memory::reclaim::install (reclaim_fn callback) noexcept -> std::expected< void, lib::kernel_error > |
| Install the reclaim callback used by kswapd and allocation retry. | |
| auto | zxfoundation::memory::reclaim::reclaim_for_allocation (u8 node, u32 target_pages) noexcept -> std::expected< void, lib::kernel_error > |
| Reclaim enough pages to satisfy an allocation retry. | |
| auto | zxfoundation::memory::reclaim::reclaim_node (u8 node, u32 target_pages) noexcept -> std::expected< u32, lib::kernel_error > |
| Reclaim pages on one NUMA node. | |
| auto | zxfoundation::memory::reclaim::reclaim_range (u64 phys_start, u64 phys_end) noexcept -> u32 |
| Evict every resident page whose physical address lies in [phys_start, phys_end). | |
Variables | |
| reclaim_fn | zxfoundation::memory::reclaim::detail::g_reclaimer {nullptr} |
Unified reclaim: walks page_cache + all VMAs via the SCOMS.
SPDX-License-Identifier: Apache-2.0
|
nodiscardexportnoexcept |
Install the reclaim callback used by kswapd and allocation retry.
| [in] | callback | Callback that isolates and reclaims pages. |
|
nodiscardexportnoexcept |
Reclaim enough pages to satisfy an allocation retry.
| [in] | node | Preferred NUMA node. |
| [in] | target_pages | Minimum progress. |
|
nodiscardexportnoexcept |
Reclaim pages on one NUMA node.
| [in] | node | Preferred NUMA node. |
| [in] | target_pages | Minimum requested progress. |
|
nodiscardexportnoexcept |
Evict every resident page whose physical address lies in [phys_start, phys_end).