Testen ob zswap im Kernel aktiviert ist”CONFIG_ZSWAP=y”
cat /boot/config-`uname -r` | grep -i zswap
Grub config ändern
nano /etc/default/grub
Ändern der GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash zswap.enabled=1 zswap.compressor=lz4"
Grub updaten
update-grub
Aktivieren Lz4
echo lz4 >> /etc/initramfs-tools/modules
echo lz4_compress >> /etc/initramfs-tools/modules
update-initramfs -u
Rechner neustarten und Testen ob ZSWAP aktiviert ist.
cat /sys/module/zswap/parameters/enabled
dmesg | grep -i zswap