|
|
Log in / Subscribe / Register

zram?

zram?

Posted Oct 11, 2026 7:58 UTC (Sun) by fraetor (subscriber, #161147)
In reply to: zram? by tux3
Parent article: The [vx]swap showdown

So the xswap approach described in the article is for getting the diskless behaviour of zram out of zswap, without all the associated baggage of treating it as a block device?


to post comments

zram?

Posted Oct 11, 2026 12:19 UTC (Sun) by intelfx (subscriber, #130118) [Link] (4 responses)

So the xswap approach described in the article is for getting the diskless behaviour of zram out of zswap, without all the associated baggage of treating it as a block device?

Yes, that’s about it. Using zram for swap is really in many ways an unacceptable abuse of mm, but people insist on doing it because they do not want, for whatever reasons, to allocate real disk space to back zswap.

zram?

Posted Oct 12, 2026 0:05 UTC (Mon) by gmprice (subscriber, #167884) [Link]

It's not they don't want to allocate disk to back zswap - it's that they don't want to have *dead* space allocated to support zswap.

If there's a page actively compressed in zswap, it allocated a writeback slot in disk - even though it's unused. It's not really feasible to know ahead of time how much disk you'll need to support zswapped entries (you might have highly compressible memory, and not have provisioned enough disk).

It makes fully utilizing the system very difficult, and wastes exabytes of storage space for scaled deployments.

zram?

Posted Oct 22, 2026 22:15 UTC (Thu) by mrugiero (guest, #153040) [Link] (2 responses)

There are environments where allocating disk space is simply not an option, for example diskless embedded devices. If all you have is a ROM and RAM, zswap is currently unusable. Which is also why it is actually being handled. If it were just a whim, I believe the maintainers would just kill zram without a viable replacement.

zram?

Posted Oct 25, 2026 15:37 UTC (Sun) by JanC_ (subscriber, #34940) [Link] (1 responses)

Killing zram would also kill zram use cases that are not related to swapping, so I don’t think the plan is to remove it entirely, just to replace one current use case for it.

zram?

Posted Oct 26, 2026 13:28 UTC (Mon) by mrugiero (guest, #153040) [Link]

What are those non-swap use cases for zram?


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds