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
- Untangling Lifetimes: The Arena Allocator - by Ryan Fleurydgtlgrove.com
- How To Add Swap Space on Ubuntu | DigitalOceandigitalocean.com
- What Every Programmer Should Know About Memorypeople.freebsd.org
- How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance: a Worklogsiboehm.com
- Your RAM Has a 60 Year Old Design Flaw. I Bypassed It.youtube.com
- 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
- How I helped fix sleep-wake hangs on Linux with AMD GPUs | nyanpasu64's blognyanpasu64.gitlab.io
- Memory location matters for performancepythonspeed.com
- What Every Programmer Should Know About Memoryakkadia.org
- My Updated ZSH Config 2025 - Scott Spencescottspence.com
- Memory access is O(N^[1/3])vitalik.eth.limo