Is zram a viable alternative to outright disabling swap?
I’ve had success with it on Arch Linux (non-server, non-NAS), but I’m wondering if it would serve SCALE users well?
- No need for a swap partition / swap-on-disk
- Anything that needs to be “swapped” will remain in RAM in a compressed format (ZSTD)
So under ideal conditions, it never gets used. However, to prevent OOM situations, there’s a non-disk safety net that should theoretically work at the speed of your RAM.
I’m not sure if there are caveats of zram in the presence of ZFS, however.