7 ms·
Zswap has improved to the point where it is now preferable over Zram. https://linuxblog.io/zswap-better-than-zram/ https://linuxblog.io/zswap-better-than-zram/
by lotharcable 6d ago
Zswap has improved to the point where it is now preferable over Zram.
https://linuxblog.io/zswap-better-than-zram/ https://linuxblog.io/zswap-better-than-zram/
There is a few other people documenting the same thing if you look around.
As far as Linux and swap goes, very generally speaking: if you don't have a application that specifically advises against having swap you are almost always better off with it.
If you don't end up using it then it costs you almost nothing. If you end up using it then it just makes your system more efficient because you are giving up performance for less used memory to make way for more used memory. Zswap sweetens the deal.
In the distant past having swap on a desktop was irritating because file system operations from nightly crons would end up pushing your applications into swap. Then when you go to use your desktop in the morning it will grid away at the disk until the memory was loaded back into main. This sort of behavior has been mostly solved for a couple decades now, but somehow the idea that "swap is bad and slow" still persists.