v1
2026-10-02
THP 缺页异步压缩失败去重 · v1
按迁移模式拆分压缩延迟状态,失败异步直接压缩单独延迟,减少 THP 反复扫描碎片节点。
原始补丁链接
子 Patch(2)
1/2
mm/compaction: keep compaction deferral state per migration mode
try_to_compact_pages() defers a zone only after sync compaction fails, so a failed async direct compaction is never deferred and repeats the same futile zone scan on the next attempt. Deferring async
2/2
mm/compaction: defer failed async direct compaction
A THP fault on a MADV_HUGEPAGE VMA first tries the local node only, with __GFP_THISNODE | __GFP_NORETRY, and runs a single round of async direct compaction there before falling back to other nodes. A