MEGA: Overcoming Traditional Problems with OS Huge Page Management

Analyze and address the fundamental problems with Linux huge page management — fragmentation, bloat, fault latency, non-swappability

Featured image

Venue: SYSTOR 2019
Link: ACM DL

Topic: Huge pages (2MB) reduce TLB miss overhead significantly, but the Linux kernel’s huge page support introduces fragmentation, memory bloat, high fault latency, and inability to swap. MEGA analyzes these problems and proposes refinements.


Summary

TLB misses account for up to 50% of execution time in memory-intensive workloads. Huge pages (2MB vs. 4KB) reduce TLB pressure — fewer entries needed, cheaper miss handling (stops at 4th-level page table in Linux’s 5-level walk). But current Linux huge page management introduces new problems. MEGA demonstrates these benefits and drawbacks, and argues that modern OSes must refine their huge page mechanisms.


Background

Benefits of huge pages

Problems with huge pages in Linux

1. Increased page fault latency

2. Memory bloating

3. Fragmentation

4. Not swappable or migratable


Key Idea

MEGA’s approach


Evaluation


Meeting Notes

(to be filled)