I was wrong! zswap IS better than zram | LinuxBlog.io
Rule of thumb / TL;DR:If your system only uses swap occasionally and keeping swap demand within ~20–30% of your physical RAM as zram is enough, ZRAM is
September 1, 2025 by Hayden James, in Blog Linux Rule of thumb / TL;DR: If your system only uses swap occasionally and keeping swap demand within ~20–30% of your physical RAM as zram is enough, ZRAM is the simpler and more effective option. But if swap use regularly pushes far beyond that, is unpredictable, or if your system has fast storage (NVMe), Zswap is the better choice. It dynamically compresses and caches hot pages in RAM, evicts cold ones to disk swap, and delivers smoother performance under heavy pressure. For years I’ve championed zram as the best swap‑related feature you could…
saved by
related reading
- How to Rack 30 Petabytes of Storage | blogsi.inc
- What Every Programmer Should Know About Memorypeople.freebsd.org
- How To Add Swap Space on Ubuntu | DigitalOceandigitalocean.com
- NYSRGnotes.ekzhang.com
- How I helped fix sleep-wake hangs on Linux with AMD GPUs | nyanpasu64's blognyanpasu64.gitlab.io
- A Close Look at SRAM for Inference in the Age of HBM Supremacyviksnewsletter.com
- A Close Look at SRAM for Inference in the Age of HBM Supremacyviksnewsletter.com
- What Every Programmer Should Know About Memoryakkadia.org
- What every programmer should know about memory, Part 1 [LWN.net]lwn.net
- Smaller and faster data compression with Zstandard - Engineering at Metaengineering.fb.com
- DRAM、NAND Flash 最近貴到炸,你還搞不懂記憶體的差異嗎? - 寫點科普 Lynnkopu.chat
- ZPAQ - Wikipediaen.wikipedia.org