Android BOF
summary
Reclaim for the multi‑generation (mgu) LRU stalls when pages remain in a movable Zone one index larger than the requested zone, preventing the oldest generation from advancing and causing premature OOM kills; the pragmatic fix is to move pages between generations (older → next younger) like moving ineligible pages to the head of inactive, and a patch implements that. Also discussed: reclaim bails out when swap is full and a possible improvement is to check swap cache entries to avoid repeated rescans.
AI-written summary · about
chapters (8)
- 0:00Introduction to reclaim algorithm
- 3:25Premature OOM kills issue
- 5:36FD script page handling
- 8:04Protection trade-offs for file pages
- 9:30Swap full handling
- 10:36Early OOM kills impact
- 11:18Discardable memory usage
- 12:01Overshooting high watermark
related talks
21mAcclaim: Adaptive Memory Reclaim to Improve User Experience in Android Systems
18mEnd the Senseless Killing: Improving Memory Management for Mobile Operating Systems
16mMGLRU results on Android
49mTrash Talk
27mBad io_uring: A New Era of Rooting for Android
26mBootloops & Coffee: The Daily Grind of an AOSP Developer
36mAndroid memory and games
15mio_uring in Android
