zswap
If in doubt, prefer to use zswap.
zswap sits in front of your disk swap, compresses pages in RAM, and automatically tiers cold data to disk. It integrates directly with the kernel’s memory management and distributes pressure gracefully. - Debunking zswap and zram myths / HN / chatgpt
# check if activated
cat /sys/module/zswap/parameters/enabled # Y => enabled
Written on May 14, 2026, Last update on
disk
linux-system