Remove zram size limit and disable zswap when using zram
- Jul 12, 2021
-
-
Evangelos Foutras authored
When both zswap and zram are active, zswap sits in front of zram and treats it as a backing store. We just want to use zram and not zswap disguising itself as such; disable the latter so we can enjoy useful zramctl statistics. Implemented as tmpfiles.d/zram.conf which disables zswap at runtime.
-
Evangelos Foutras authored
Restarting swap.target doesn't apply configuration changes; instead we can restart systemd-zram-setup@zram0 which seems to do what we wanted.
-
Evangelos Foutras authored
Set "max-zram-size = none" to disable this unwanted limitation which defaulted to creating zram-based swap with a maximum size of 4096MiB. Fixes: dc8fa2bd ("common: Replace deprecated systemd-swap[1] with zram-generator")
-