# I was wrong! zswap IS better than zram

DevFeed: [I was wrong! zswap IS better than zram](<https://devfeed.tech/articles/i-was-wrong-zswap-is-better-than-zram-102576.md>)

Original publisher: [Read original article](<https://linuxblog.io/zswap-better-than-zram/>)

Author: Hayden James

Published: 2026-10-27T12:30:49Z

Content type: opinion

Language: en

Sources: [Hayden James](<https://devfeed.tech/sources/hayden-james.md>)

Topics: [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [cgroups](<https://devfeed.tech/topics/cgroups.md>), [GRUB](<https://devfeed.tech/topics/grub.md>), [XFS](<https://devfeed.tech/topics/xfs.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [applications](<https://devfeed.tech/tags/applications.md>), [block](<https://devfeed.tech/tags/block.md>), [blog](<https://devfeed.tech/tags/blog.md>), [boot](<https://devfeed.tech/tags/boot.md>), [builds](<https://devfeed.tech/tags/builds.md>), [cache](<https://devfeed.tech/tags/cache.md>), [caching](<https://devfeed.tech/tags/caching.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [charged](<https://devfeed.tech/tags/charged.md>), [compression](<https://devfeed.tech/tags/compression.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [configure](<https://devfeed.tech/tags/configure.md>), [container](<https://devfeed.tech/tags/container.md>), [containers](<https://devfeed.tech/tags/containers.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cpu-time](<https://devfeed.tech/tags/cpu-time.md>), [demand](<https://devfeed.tech/tags/demand.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [performance](<https://devfeed.tech/tags/performance.md>), [server](<https://devfeed.tech/tags/server.md>), [sysadmins](<https://devfeed.tech/tags/sysadmins.md>), [zram](<https://devfeed.tech/tags/zram.md>), [zswap](<https://devfeed.tech/tags/zswap.md>)

## AI overview

The author now recommends zswap as the usual choice for modern systems with disk swap, especially when swap use is large or variable and storage is fast. Zswap caches compressed pages in RAM up to a pool limit, then evicts pages to backing swap; the author says this uses memory dynamically, reduces NVMe writes, and avoids the performance and suspend/resume problems they encountered after using half their RAM for zram. Their desktop uses zswap with an NVMe swap file. Zram remains useful on small or diskless systems and systems with very slow storage, but the author advises keeping its size around 20-30% of RAM and warns that it can compete with the working set and page cache. For cgroup-limited servers, the author favors zswap because zram memory is not charged to the owning cgroup, while zswap pages are.

## Source excerpt

Update (October 2026): I first published this article on September 1, 2025. In March 2026, kernel developer Chris Down published Debunking zswap and zram myths, which reaches the same conclusion: if in doubt, prefer zswap. Continue reading...