this post was submitted on 17 Sep 2025
27 points (100.0% liked)
Linux
10993 readers
349 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you put swap in zram, you are paging from RAM to RAM. May as well just not use swap and save the cycles.
The point is compression.
zswap is specifically built to this end and far better suited to it.
zram is great, but it is simply a ramdisk and inappropriate to ops task. It cannot dynamically grow/shrink or deal with hot/cold pages.
zswapis not better than modernzramin any way. And you can set up the latter with writeback anyway.But that's not OP's problem since "swap gets hardly touched" in OP's case.