Reminder: Enable ZRAM on your Linux system to optimize RAM usage
type0
26 points
10 comments
April 19, 2026
Related Discussions
Found 5 related stories in 108.6ms across 10,324 title embeddings via pgvector HNSW
- Debunking Zswap and Zram Myths javierhonduco · 186 pts · March 24, 2026 · 61% similar
- Ubuntu now requires more RAM than Windows 11 jnord · 137 pts · April 05, 2026 · 56% similar
- Linux Terminal Memory Usage speckx · 50 pts · May 11, 2026 · 53% similar
- Use your Nvidia GPU's VRAM as swap space on Linux tanelpoder · 227 pts · June 02, 2026 · 52% similar
- 7-Zip 26.01 Now Allows Making Use Of Huge Pages On Linux For Faster Compression Bender · 15 pts · April 28, 2026 · 51% similar
Discussion Highlights (4 comments)
iberator
I remember that back in around 2007 i was able to somehow mount a graphical card (ati similar to geforce2?) memory directly in Linux, and put my swap file there :); Great times. Slackware 8.1 i think. as for zram: somehow i dislike it. Nowdays ram is plenty and if not: better to have fast OOM than chug of death with swap. I also remember running NetBSD 1.3.1 and Slackware 3 on 386SZ 26MHZ with 2 mb of ram (nowadays hard limit is 4mb to boot due the large memory pages on x86 afik)
Kim_Bruning
There's also kernel zswap, right? https://www.kernel.org/doc/html/latest/admin-guide/mm/zswap.... Oh right, definitely. Chrisdown wrote an article comparing the two: https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-... Zswap is supposed to degrade more gracefully. There's even some HN comments on it: https://news.ycombinator.com/item?id=47500746
esperent
I've heard ZRAM mentioned before and I've just spent 5 minutes reading articles on it... Which is about the maximum I have time for these days when it comes to esoteric linux internals. What's the downside? Does it use much CPU? If I have enough RAM already, should I still enable it? One article says it can be mapped to /tmp to reduce i/o. Is that a good idea? This article is light on all of these kind of details.
ChocolateGod
You only want to use zram if you've got no swap device (e.g. a raspberry pi). If you do, you'll want zswap instead.