v1
2026-09-14
swap 区域预留支持主动卸载 · v1
提出 offload-only swap area 策略,限制普通回收不得向仅用于主动卸载的 swap 区发起新后端写入。
原始补丁链接
子 Patch(3)
1/3
mm: restrict offload-only swap to proactive reclaim
Some swap backends need memory to accept writes, making them useful for deliberate cold-page offload but unsuitable dependencies for reclaim under acute memory pressure. Add SWAP_FLAG_OFFLOAD_ONLY to
2/3
selftests: zram: cover offload-only swap policy
Add zram tests for proactive offload, fallback to conventional swap under ordinary pressure, zswap bypass, discard policy and data recovery after swapoff. Pin reclaim transitions to one CPU to exercis
3/3
selftests: zram: cover retained offload-only entries
Faulting and dirtying one page of a swapped-out large folio can leave sibling PTEs referring to its existing offload-only swap allocation. Exercise this path with zram behind dm-delay: ordinary reclai