top | item 37825035

(no title)

dmacvicar | 2 years ago

One can also use zswap: https://docs.kernel.org/admin-guide/mm/zswap.html https://wiki.archlinux.org/title/Zswap

which I find easier to setup. Just enable it and it manages itself. You can still keep swap on disk, but it will act as a buffer in between, trading CPU cycles for potentially reduced swap I/O.

I think Arch has it enabled by default, but I am not sure about that. I had to enable it manually on Tumbleweed because my rolling install is years old.

discuss

order

bandrami|2 years ago

Fedora does that on some (but not all) disk/ram size combos. IIRC the installer won't put swap on nvme unless you tell it to explicitly, and will always set up the smaller of 4g or half of physical memory as zram.