lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
I have a swap partition and I would like to try lz4 and z3fold on the zswap
nano /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX="vga=normal nomodeset iommu=pt"
GRUB_DEVICE=UUID=2da46135-a1a2-4833-ba81-d9802358ddbd
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash cgroup_enable=memory swapaccount=1 zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=20 zswap.zpool=z3fold "
I understand that zswap is enabled already on 22.04 but I put the zswap.enabled in there just in case.
nano /etc/initramfs-tools/modules
lz4
lz4_compress
z3fold
update-grub
update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-5.15.0-47-generic
update-initramfs: Generating /boot/initrd.img-5.4.0-125-generic
After reboot I see
dmesg | grep -i zswap
[ 36.460295] zswap: loaded using pool lzo/zbud
grep -R . /sys/module/zswap/parameters
/sys/module/zswap/parameters/same_filled_pages_enabled:Y
/sys/module/zswap/parameters/enabled:N
/sys/module/zswap/parameters/max_pool_percent:20
/sys/module/zswap/parameters/compressor:lzo
/sys/module/zswap/parameters/zpool:zbud
/sys/module/zswap/parameters/accept_threshold_percent:90
lsmod
z3fold 32768 0
lz4 16384 0
lz4_compress 36864 1 lz4
... etc
Why don't the modules/parameters get enabled?