Hybrid THP Mechanism. Selective Use of Huge Pages by Hot Applications
summary
Proposal implements cgroup-scoped THP in Linux 6.11 with ~500 lines of kernel patch and two new cgroup knobs memory.thp_defrag and memory.thp_enabled, and a separate kernel module that drives dmon for partial THP collapse via dmon. Benchmarks on MySQL show huge page usage drops from ~3 GB to ~800 MB and throughput improves about +1–2% TPS while ARM performance counters show reduced TLB misses; caveats include cgroup hierarchy consistency concerns and detached tasks keeping collapsed huge pages.
AI-written summary · about
chapters (9)
- 0:00Hybrid THP intro
- 1:03TLB and huge pages basics
- 7:36Limitations of Transparent Huge Pages
- 12:15Cgroups THP policy
- 19:19DAMMON overview
- 28:03Partial collapse with DAMMON
- 33:41Benchmarking hybrid THP
- 36:57Future plans
- 40:14Kubernetes & performance Q&A
related talks
47mLinux's Leap Beyond Fixed Pages
14mDecoupling Large Folios from Transparent Huge Pages
45mCurrent Status and Future Plans of DAMON
22mEMD: Fair and Efficient Dynamic Memory De-bloating of Transparent Huge Pages
11mAdvanced Parallel Memory Virtualization
44mLarge Pages in Linux
30mdrm and cgroup memory management - two great tastes
30mMemory tiering
