Remix.run Logo
Mashimo 8 hours ago

Is this advice also applicable to Desktops installations?

therealmarv 5 hours ago | parent | next [-]

The better distros have it (ZRAM) enabled by default for desktops (I think PopOS and Fedora). In my personal experience every desktop Linux should use memory compression (except you have an absurd amount of RAM) because it helps so much, especially with everything related to browser and/or electron usage!

Windows and macOS have it enabled by default for many years (even if it works a little different there).

captn3m0 5 hours ago | parent [-]

I did an Archinstall setup this weekend, and that also suggested zram.

Schlaefer 2 hours ago | parent [-]

Because it's an easy solution esp. to a rather new installer: setting up swap on disk (partition or file, if file which file system, if partition w/o encryption, ...). Zram: install one additional package and forget.

See also the "zram on Fedora" section in the article.

stdbrouw 3 hours ago | parent | prev [-]

I get the impression that most desktop users enable zram or zswap to get a little bit more out of their RAM but there is never any real worry about OOM, not regularly anyway, so then (according to the principles laid out in the article) it shouldn't matter much.

On my workstation, I run statistical simulations in R which can be wasteful with memory and cause a lot of transient memory pressure, and for that scenario I do like that zswap works alongside regular swap. Especially when combined with the advice from https://makedebianfunagainandlearnhowtodoothercoolstufftoo.c... to wake up kswapd early, it really does seem to make a difference.