3 ms·
Kernel arguments are the primary method: https://wiki.archlinux.org/title/Zswap#Using_kernel_boot_parameters https://wiki.archlinux.org/title/Zswap#Using_kernel
by bilegeek 7mo ago
Kernel arguments are the primary method: https://wiki.archlinux.org/title/Zswap#Using_kernel_boot_parameters https://wiki.archlinux.org/title/Zswap#Using_kernel_boot_par...
Snag: I had issues getting it to use zstd at boot. Not sure if it's a bug or some peculiarity with Debian. Ended up compiling my own kernel for other reasons, and was finally able to get zstd by default, but otherwise I'd have to make/add it to a startup script.
- networked 7mo agoI had the same issue with LZ4. I found a thread about it on the Linux Mint Debian Edition forum and posted my fix there: https://forums.linuxmint.com/viewtopic.php?p=2767087#p2767087 https://forums.linuxmint.com/viewtopic.php?p=2767087#p276708.... In short: add the kernel modules and update GRUB as usual, then install sysfsutils and add the following line at the end of `/etc/sysfs.conf`: module/zswap/parameters/compressor = lz4 # For zstd: #module/zswap/parameters/compressor = zstd Perhaps some kernel change between Linux 6.8 and 6.12 caused the old approach to no longer work.