News for hackers. Stuff that matters.
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 :)
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.
Re:Do not buy RAM, compress by hofiflo on Thursday November 19, 2026 @03:12PM (#50565655)
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!
Re:Do not buy RAM, compress by MayeulC on Friday November 20, 2026 @01:07AM (#50570772)
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.

Re:Do not buy RAM, compress by anthk on Thursday November 19, 2026 @05:34PM (#50567462)
Man my notebook has 2GB of RAM and I used either UBo + ZRAM or bundled adblocking from Waterfox just fine. The NUC with 8GB and ZRAM flies. WIth 16GB you shouldn't need ZRAM at all...