Debunking zswap and zram myths
Summary
The article compares zswap and zram in Linux swap management, explaining zswap's kernel-integrated tiering versus zram's block-device approach. It covers architectural differences, handling of incompressible data, per-cgroup writeback modes, and real-world considerations (Fedora, Android, Instagram) with practical guidance to prefer zswap with disk-backed swap for most workloads, while reserving zram for embedded or diskless contexts.