I no longer use disk swap for servers, instead opting for Zram with a maximum is 50% of RAM capacity and a high swapiness value.
It'd be cool if Zram could apply to the RAM itself (like macOS) rather than needing a fake swap device.
It'd be cool if Zram could apply to the RAM itself (like macOS) rather than needing a fake swap device.
https://github.com/CachyOS/CachyOS-Settings/blob/master/usr/...
Resulting in https://i.postimg.cc/hP37vvpJ/screenieshottie.png
Good enough...
https://docs.kernel.org/admin-guide/mm/zswap.html
The cgroup accounting also now works in zswap.
zram based swap isn't free. Its efficiency depends on the compression ratio (and cost).