Repository navigation
Conversation
A swapless guest (Monoid Machine's station) thrashes on program page cache near its memory size and stalls for minutes without reaching the OOM killer. With MGLRU it can set min_ttl_ms so the kernel OOM-kills instead. Off by default, so other guests run as before. Co-authored-by: Heyang Zhou <heyang@cue.surf> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Monoid Machine's station VM has no swap. Near its memory size it thrashes on program page cache, never reaches the OOM killer, and stalls until dom0 restarts it for 60 s of missed heartbeats (seen twice on a GCE machine). MGLRU's
min_ttl_msmakes the kernel OOM-kill instead, but the l4h guest kernel has noCONFIG_LRU_GEN.What
CONFIG_LRU_GEN=ywithCONFIG_LRU_GEN_ENABLEDoff: other guests run as before; the station turns it on with/sys/kernel/mm/lru_gen/enabledand setsmin_ttl_ms(AFK-surf/monoid-machine, tmpfiles).Tested
CI's kernel builds (x86_64, aarch64) and tests.
Model: Claude Opus 5.5.
🤖 Generated with Claude Code