Hacker ApprovedDepartments

zswap

Hacker Approved

Tied for most recommended of 3 kernel features

Compresses pages going to swap in RAM, cutting disk reads and writes; many people prefer it to zram and use it on low-RAM machines.

Compresses pages going to swap in RAM, cutting disk reads and writes; many people prefer it to zram and use it on low-RAM machines.

33 people gave an opinion

recommend it
31
criticize it
2
approval share
94%
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.
  • 16 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

  • Preferred over zram

    “Zswap has improved to the point where it is now preferable over Zram.”

    Comment from 12 Sep 2026 in “Stop making swap partitions—use swap files instead”

    “The main point is to use zswap over swap plus zram.”

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

    “Zswap is better than ZRAM for this use case.”

    Comment from 18 Jul 2026 in “Reviving a 15-year-old netbook with Arch Linux”
  • Cuts disk reads and writes

    “This compresses everything going to swap, and decompresses it coming back: less disk reads and writes, and less space used.”

    Comment from 22 Jan 2026 in “200 MB RAM FreeBSD Desktop”

    “You should consider some sort of swap on ram like zswap rather than thrashing your nvme.”

    Comment from 21 Jan 2026 in “200 MB RAM FreeBSD Desktop”

    “having disk swap can actually decrease disk I/O”

    Comment from 24 Mar 2026 in “Debunking Zswap and Zram Myths”
  • Dynamically sized compressed pool

    “zswap is dynamically managed by the kernel and zswap sends out compressed pages to swap”

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

    “it's not a fixed RAM storage, it merely compresses pages in RAM up to a variable limit”

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

    “It confers most of the benefits of zram swap, plus being able to evict to non-RAM”

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

    “solves a lot of the issues with freezing under memory pressure”

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

    “Current zswap+oomd behavior is the best choice imho.”

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

    “Zswap is supposed to degrade more gracefully.”

    Comment from 19 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.

zswap compared with 2 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
zswapThis page31294%11—Approved
zram311469%11—Approved
MGLRU7188%6——
See all 3 kernel features, ranked

What people said

39 of the 45 comments that mention it, newest first. Each links to the original comment.

“Using Zswap might help you.”

RecommendsComment from 18 Oct 2026 in “Codex Desktop continuously generates Crashpad pending dumps”

“imposing latency spikes on old page access”

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

“zswap is way better than zram”

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

“Zswap has improved to the point where it is now preferable over Zram.”

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

“Zswap doesn't have that problem.”

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

“Zswap is even better than that.”

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

“I've expanded my zswap and disabled zram”

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

“Or zswap instead of zram.”

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

“solves a lot of the issues with freezing under memory pressure”

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

“Meanwhile zswap (of no relation with zfs) is free performance.”

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

“zswap will be polluting your SSD all the time”

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

“zram and swap together can lead to priority inversion”

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

“The main point is to use zswap over swap plus zram.”

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

“Zswap is better than ZRAM for this use case.”

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

“if disk-backed swap is in play, then zswap is the best option”

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

“My recommendation for RAM constrained systems would be to use zswap combined with a generous amount of swap space.”

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

“zswap is dynamically managed by the kernel and zswap sends out compressed pages to swap”

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

“Current zswap+oomd behavior is the best choice imho.”

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

“zswap works well in my experience. Don't need both.”

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

“Zsawp itself is enabled by default in Asahi.”

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

“an easy "compress my ram" option that plays nicely with cgroups”

RecommendsComment from 24 May 2026 in “Swap tables, flash-friendly swap, swap_ops, and more”

“If you do, you'll want zswap instead.”

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

“The architecture of zswap does make more sense, because you might as well combine the low speed and latency of compression”

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

“Zswap is supposed to degrade more gracefully.”

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

“zswap many years ago would not handle hibernation "well"”

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

“it really does seem to make a difference”

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

“I had issues getting it to use zstd at boot. Not sure if it's a bug or some peculiarity with Debian.”

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

“Having two slightly different systems is weird.”

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

“With an SSD that cannot support even 10 MB/s of synchronous writes, it browns out”

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

“having disk swap can actually decrease disk I/O”

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

“zswap has been a great boon for one of my workloads”

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

“you should prefer zswap if you have a device that can be used for swap”

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

“it's not a fixed RAM storage, it merely compresses pages in RAM up to a variable limit”

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

“the pool size is limited by the amount of swap space you've allocated”

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

“worked great on my old laptop which had a max of 4GB RAM”

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

“Linux supports proper memory compression in the form of zswap”

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

“This compresses everything going to swap, and decompresses it coming back: less disk reads and writes, and less space used.”

RecommendsComment from 22 Jan 2026 in “200 MB RAM FreeBSD Desktop”

“You should consider some sort of swap on ram like zswap rather than thrashing your nvme.”

RecommendsComment from 21 Jan 2026 in “200 MB RAM FreeBSD Desktop”

“It confers most of the benefits of zram swap, plus being able to evict to non-RAM”

RecommendsComment from 24 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.