v2
2026-10-26
收紧KSM零页重映射 · v2
修复THP拆分无条件零页重映射绕过KSM的pages_to_scan和use_zero_pages策略,并用split_underused_thp门控。
原始补丁链接
子 Patch(2)
1/2
mm/huge_memory.c: skip zero-page remapping when underused THP shrinker is disabled
[mm/huge_memory.c: skip zero-page remapping when underused THP shrinker is disabled] The zero-page remapping in __folio_split() was added to support the underused THP shrinker. When the shrinker is di
2/2
mm/ksm: prevent zero-page remapping during ksmd-triggered THP splits
Since commit b1f202060afe (“mm: remap unused subpages to shared zeropage when splitting isolated thp”), splitting an anonymous THP remaps all zero-filled subpages to the shared zeropage via TTU_USE_SH