Re:Do not buy RAM, compress
by hofiflo on Thursday November 19, 2026 @12:29PM
(#50563130)
I have a laptop with soldered RAM, a whole whopping 16GB of it. Without zswap or zram, it’s borderline unusable with web browsing, a bunch of terminals, mail client, etc. open. Maybe it’s a skill issue on my side, but only zram makes it work properly without hickups due to the OOM killer taking too long to kick in. Since switching from zswap to zram, I basically don’t encounter OOM situations and corresponding lockups anymore at all. Just my personal anecdote :)
[ Parent
| on HN ]
Re:Do not buy RAM, compress
by adgjlsfhk1 on Thursday November 19, 2026 @01:28PM
(#50564041)
zswap+earlyoom/systemd-oomd is the optimal combo. Unfortunately, very few desktops ship this/configure it correctly.
I guess that’s where the skill issue is coming in! That’s what I tried but probably my configuration wasn’t ideal. Maybe I should give it another shot!
You can also try the following to let the system detect thrashing and fire up its OOM killer:
echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms
Docs: https://www.kernel.org/doc/html/latest/admin-guide/mm/multig...
In practice I think you may still want a userspace OOM killer that knows a bit more about what processes are preferable to kill.