Originally posted by sdack
View Post
GRUB_CMDLINE_LINUX_DEFAULT="zswap.max_pool_percent =25 zswap.compressor=lz4 zswap.enabled=1 quiet"
The ZSWAP feature needs to be enabled on boot and it is easiest to pass the arguments with grub to the kernel. Even when you have a desktop or server and think you do not need it should you at least take a look at it. With LZ4 as compressor/decompressor does it achieve compression ratios in the range from 1:2 to 1:4 and with speeds of 200MB/s-500MB/s for compression and 1GB/s-2GB/s for decompression. Even when you use a very fast SSD for swapping will it reduce the I/O and extend its life.
Comment