Working zswap configuration (different from zram)

FYI: Using kernel parameters for this does not work as expected because the modules for the things you configure must be built into the kernel for that to function.

systemd-tmpfilesd would probably be the best solution as the kernel should be able to load those module automatically once booted and you don’t really care about zswap in the initrd.

1 Like