Skip to content

guest: build MGLRU in, off until a guest turns it on - #277

Open
CommaBot wants to merge 1 commit into
losfair:mainfrom
CommaBot:guest-lru-gen
Open

CommaBot wants to merge 1 commit into
losfair:mainfrom
CommaBot:guest-lru-gen

Conversation

@CommaBot

@CommaBot CommaBot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

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_ms makes the kernel OOM-kill instead, but the l4h guest kernel has no CONFIG_LRU_GEN.

What

CONFIG_LRU_GEN=y with CONFIG_LRU_GEN_ENABLED off: other guests run as before; the station turns it on with /sys/kernel/mm/lru_gen/enabled and sets min_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

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant