Hacker ApprovedDepartments

zram

Hacker Approved

Tied for most recommended of 3 kernel features

People recommend zram for compressed swap in RAM that beats disk swap on low-memory machines, though it runs out once its compressed space is full.

People recommend zram for compressed swap in RAM that beats disk swap on low-memory machines, though it runs out once its compressed space is full.

45 people gave an opinion

recommend it
31
criticize it
14
approval share
69%
Each figure is one person. RecommendsCriticizes

Recommended in 11 of 13 months

  1. November 2025: not recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 31 people recommend itNeeds 10 or more, met.
  • 2.2 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 11 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Faster than disk swap

    “The performance of a zram device is so much faster than even the latest NVMe drives.”

    Comment from 26 Feb 2026 in “Origin of the rule that swap size should be 2x of the physical memory”

    “'Swapping' to ZRAM is far less painful than actual disk-backed swap.”

    Comment from 20 Apr 2026 in “Reminder: Enable ZRAM on your Linux system to optimize RAM usage”

    “it was an improvement from on disk swap”

    Comment from 11 Sep 2026 in “Stop making swap partitions—use swap files instead”
  • Makes low-memory systems usable

    “it was the difference between barely usable and very usable”

    Comment from 8 Feb 2026 in “Zram as Swap”

    “it will almost double your effective RAM size with ease”

    Comment from 7 Mar 2026 in “Modernizing swapping: virtual swap spaces”

    “makes it feel like 9GiB with no perceptible downside”

    Comment from 11 Oct 2026 in “The RAM shortage is bringing back DDR4”
  • Quick to set up

    “It takes a solid 45 seconds for me to enable zram (compressed RAM as swap) on a fresh Arch install.”

    Comment from 23 Dec 2025 in “Meta is using the Linux scheduler designed for Valve's Steam Deck on its servers”

    “Zram: install one additional package and forget.”

    Comment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”
  • Works on diskless or MMC-only systems

    “The only times I use zram are when all I have to work with for storage is MMC”

    Comment from 24 Dec 2025 in “Meta is using the Linux scheduler designed for Valve's Steam Deck on its servers”

    “If a DRAMless consumer SSD is all that you have, better use zram.”

    Comment from 25 Mar 2026 in “Debunking Zswap and Zram Myths”

    “You can use zram on a diskless system.”

    Comment from 6 Feb 2026 in “Modernizing Linux swapping: introducing the swap table”

What people warn about

Each mark is one comment

  • OOM kills when compressed swap fills

    “this works extremely well but should you exhaust your zram swap serious problems may begin”

    Comment from 24 Sep 2026 in “Swap, ZRAM, Zswap and Hibernate on NixOS”

    “it works pretty well if you don't mind some otherwise preventable kills”

    Comment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”

    “With a zram-only setup, once zram is full, there is nowhere for anonymous pages to go.”

    Comment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”
  • Buggy and advised against regular use

    “Zram is buggy and still advised against regular use”

    Comment from 29 May 2026 in “It's hard to justify buying a Framework 12”

    “quoting instabilities and random weirdness”

    Comment from 20 Apr 2026 in “Reminder: Enable ZRAM on your Linux system to optimize RAM usage”

Other kernel features people recommend

The two most recommended other kernel features, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

zram compared with 2 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
zramThis page311469%11—Approved
zswap31294%11—Approved
MGLRU7188%6——
See all 3 kernel features, ranked

What people said

40 of the 55 comments that mention it, newest first. Each links to the original comment.

“makes it feel like 9GiB with no perceptible downside”

RecommendsComment from 11 Oct 2026 in “The RAM shortage is bringing back DDR4”

“this works extremely well but should you exhaust your zram swap serious problems may begin”

RecommendsComment from 24 Sep 2026 in “Swap, ZRAM, Zswap and Hibernate on NixOS”

“zram is a good choice when data in RAM is very repetetive/compressible”

MixedComment from 11 Sep 2026 in “Stop making swap partitions—use swap files instead”

“I'd recommend at least zram to soften the OOM landing.”

RecommendsComment from 11 Sep 2026 in “Stop making swap partitions—use swap files instead”

“it was an improvement from on disk swap”

RecommendsComment from 11 Sep 2026 in “Stop making swap partitions—use swap files instead”

“In my experience it works really well.”

RecommendsComment from 11 Sep 2026 in “Stop making swap partitions—use swap files instead”

“I am typing right now on such a setup wityh 16 GiB ram”

MixedComment from 11 Sep 2026 in “Stop making swap partitions—use swap files instead”

“have never seen mem usage > 95%, even under absurd workloads and have never been oom-killed ever since”

RecommendsComment from 21 Aug 2026 in “Linux 7.2 Released”

“I calibrated the system to make do with the very generous zram compression ratio of 3”

RecommendsComment from 18 Aug 2026 in “Linux 7.3 improves performance when running out of vRAM”

“zram can create a very good buffer for that sort of thing”

RecommendsComment from 18 Aug 2026 in “Linux 7.3 improves performance when running out of vRAM”

“enabling zram is an improvement”

RecommendsComment from 19 Jul 2026 in “The death and rebirth of my home server”

“adding ZRAM will fly on that machine”

RecommendsComment from 18 Jul 2026 in “Reviving a 15-year-old netbook with Arch Linux”

“ZRAM does miracles under GNU/Linux”

RecommendsComment from 27 Jun 2026 in “Linux on Older Hardware: The Complete Revival Guide”

“you'd want to do that on zram (compressed swap in RAM). It also make wonders.”

RecommendsComment from 27 Jun 2026 in “Linux on Older Hardware: The Complete Revival Guide”

“Zram is buggy and still advised against regular use”

CriticizesComment from 29 May 2026 in “It's hard to justify buying a Framework 12”

“zram + no swap is a surprisingly workable workaround IME”

RecommendsComment from 29 Apr 2026 in “Linux 7.0 Broke PostgreSQL: The Preemption Regression Explained”

“Google strongly recommends using zram on all devices, even on devices with a lot of RAM”

RecommendsComment from 21 Apr 2026 in “Reminder: Enable ZRAM on your Linux system to optimize RAM usage”

“quoting instabilities and random weirdness”

CriticizesComment from 20 Apr 2026 in “Reminder: Enable ZRAM on your Linux system to optimize RAM usage”

“'Swapping' to ZRAM is far less painful than actual disk-backed swap.”

RecommendsComment from 20 Apr 2026 in “Reminder: Enable ZRAM on your Linux system to optimize RAM usage”

“If a DRAMless consumer SSD is all that you have, better use zram.”

RecommendsComment from 25 Mar 2026 in “Debunking Zswap and Zram Myths”

“zram definitely has some caveats with that setup”

MixedComment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”

“Zram: install one additional package and forget.”

RecommendsComment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”

“it works pretty well if you don't mind some otherwise preventable kills”

MixedComment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”

“I use simple bash script to first use fast compression and after 1h recompress it using much stronger compression.”

MixedComment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”

“zramctl gives me live statistics of used and compressed size.”

RecommendsComment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”

“zram + earlyoomd can be tuned not to brown out (at the expense of OOM kills on a subjectively perfectly well performing system)”

MixedComment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”

“With a zram-only setup, once zram is full, there is nowhere for anonymous pages to go.”

CriticizesComment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”

“zram works best when paired with a user-space OOM killer”

RecommendsComment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”

“zram swap otoh should be relatively 'free'”

RecommendsComment from 19 Mar 2026 in “Nvidia greenboost: transparently extend GPU VRAM using system RAM/NVMe”

“it will almost double your effective RAM size with ease”

RecommendsComment from 7 Mar 2026 in “Modernizing swapping: virtual swap spaces”

“on Linux you can actually do that by enabling zram”

RecommendsComment from 26 Feb 2026 in “RAM now represents 35 percent of bill of materials for HP PCs”

“If you have a bunch of stuff running in the background it will help a lot.”

RecommendsComment from 26 Feb 2026 in “RAM now represents 35 percent of bill of materials for HP PCs”

“The performance of a zram device is so much faster than even the latest NVMe drives.”

RecommendsComment from 26 Feb 2026 in “Origin of the rule that swap size should be 2x of the physical memory”

“it was the difference between barely usable and very usable”

RecommendsComment from 8 Feb 2026 in “Zram as Swap”

“You can use zram on a diskless system.”

RecommendsComment from 6 Feb 2026 in “Modernizing Linux swapping: introducing the swap table”

“It is not obsolete. It's also useful for other things.”

RecommendsComment from 5 Feb 2026 in “Modernizing Linux swapping: introducing the swap table”

“Because I'd rather compress ram when running low on memory rather than swapping to my disks.”

RecommendsComment from 5 Feb 2026 in “Modernizing Linux swapping: introducing the swap table”

“I'm working with mostly incompressible AI models so it really didn't help.”

MixedComment from 28 Jan 2026 in “200 MB RAM FreeBSD Desktop”

“The only times I use zram are when all I have to work with for storage is MMC”

MixedComment from 24 Dec 2025 in “Meta is using the Linux scheduler designed for Valve's Steam Deck on its servers”

“It takes a solid 45 seconds for me to enable zram (compressed RAM as swap) on a fresh Arch install.”

RecommendsComment from 23 Dec 2025 in “Meta is using the Linux scheduler designed for Valve's Steam Deck on its servers”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.