1
Debunking Zswap and Zram Myths
zswap and zram are fundamentally different approaches with different philosophies. If in doubt, use zswap.
Linux SRE and developer living in London, England, currently helping Meta scale to over 3 billion users.
Visit chrisdown.name → RSS feedOn Hacker News Jan 2020 – Mar 2026
Systems & Performance 4Infrastructure & DevOps 3Software Engineering 1
zswap and zram are fundamentally different approaches with different philosophies. If in doubt, use zswap.
tl;dr: Having swap is a reasonably important part of a well functioning system. Without it, sane memory management becomes harder to achieve.
A few months ago I got a report from a service owner that their service was crashing when trying to access certain files stored in tmpfs. This service provid...