RetroFed Forum
Your home away from modern life.
We all know there's only one option
Post Reply
AuthorMessage
potatoguy mbin.potato-guy.space potatoguy@mbin.potato-guy.space
Joined: 2026-02-09
Quote

breaking bad he was a zswap boy, she was a zram girl
330   Original
jimmux programming.dev jimmux@programming.dev
Joined: 2023-06-19
#2 · Quote Reply

Is it possible to have both? I'm finding zram works well until it doesn't.

23
potatoguy mbin.potato-guy.space potatoguy@mbin.potato-guy.space
Joined: 2026-02-09
#3 · Quote Reply

Is it possible to have both? I'm finding zram works well until it doesn't.

I got corrected some time ago about this, it seems it's possible, but not advisable. Like, if zram started, zswap will disable itself.

If you want to test zswap, you could create a swap file, disable systemds zram service and put the zswap variables into the kernel variables, also checking if swappiness is at the normal values, instead of the tuned ones for zram.

23
Avid Amoeba lemmy.ca avidamoeba@lemmy.ca
Joined: 2023-07-05
#4 · (edited) Quote Reply

/swapfile

59
muusemuuse sh.itjust.works muusemuuse@sh.itjust.works
Joined: 2025-06-25
#5 · Quote Reply

I never could get a clear understanding of these. I just throw a partition on the nvme for swap as a failover. If it starts to fill, treat it like the countdown timer in uplink.

25
starik lemmy.zip starik@lemmy.zip
Joined: 2025-12-08
#6 · Quote Reply

[deleted]
1
ElectroLisa piefed.blahaj.zone ElectroLisa@piefed.blahaj.zone
Joined: 2025-06-07
#7 · Quote Reply

/swapfile

sudo swapon /deeznuts is my favourite as it's a valid command

35
barryamelton lemmy.world barryamelton@lemmy.world
Joined: 2023-07-13
#8 · Quote Reply

I never could get a clear understanding of these. I just throw a partition on the nvme for swap as a failover. If it starts to fill, treat it like the countdown timer in uplink.

upvote for uplink reference.

8
bright_side_ piefed.world bright_side_@piefed.world
Joined: 2025-09-03
#9 · Quote Reply

[deleted]

magnets

2
EmK lemmy.ca EmK@lemmy.ca
Joined: 2025-10-18
#10 · Quote Reply

Just to be super nerdy, here's an amazingly well-written article on the subject from someone with a lot of credibility: https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html

tldr; prefer zswap

32
quantumvoid0 programming.dev quantumvoid0@programming.dev
Joined: 2026-05-04
#11 · Quote Reply

Just to be super nerdy, here's an amazingly well-written article on the subject from someone with a lot of credibility: https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html tldr; prefer zswap

i prefer ram

5
SaharaMaleikuhm feddit.org SaharaMaleikuhm@feddit.org
Joined: 2024-07-23
#12 · (edited) Quote Reply

Just to be super nerdy, here's an amazingly well-written article on the subject from someone with a lot of credibility: https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html tldr; prefer zswap

What a load of bull. Zram is so much more useful. That guy does not even know you can set up a fallback device for zram.
Don't trust any fool with a blog.
Probably written and "researched" with ChatGPT.

-8
Avid Amoeba lemmy.ca avidamoeba@lemmy.ca
Joined: 2023-07-05
#13 · Quote Reply

sudo swapon /deeznuts is my favourite as it's a valid command

You have to fallocate /deeznuts first.

7
gartheom lemmy.world gartheom@lemmy.world
Joined: 2023-06-12
#14 · Quote Reply

What a load of bull. Zram is so much more useful. That guy does not even know you can set up a fallback device for zram. Don't trust any fool with a blog. Probably written and "researched" with ChatGPT.

You should read the article. It has a section specifically on using a zram fallback device and how its performance compares to a similar zswap setup.

9
crater2150 feddit.org crater2150@feddit.org
Joined: 2024-06-29
#15 · Quote Reply

What a load of bull. Zram is so much more useful. That guy does not even know you can set up a fallback device for zram. Don't trust any fool with a blog. Probably written and "researched" with ChatGPT.

"That guy" works full time as a kernel developer on the Linux memory management.

14
forestbeasts pawb.social forestbeasts@pawb.social
Joined: 2023-06-09
#16 · Quote Reply

You have to fallocate /deeznuts first.

or dd(eeznuts) it!

4
moonpiedumplings programming.dev moonpiedumplings@programming.dev
Joined: 2023-08-10
#17 · (edited) Quote Reply

Just to be super nerdy, here's an amazingly well-written article on the subject from someone with a lot of credibility: https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html tldr; prefer zswap

In my testing, zram has much, much better compression than zswap.

The points about LRU inversion, cgroups, and so on are valid, but at the end of the day, I don't really care. I was able to open as many firefox tabs as I wanted with zram, but I could not do so with zswap, and that's what matters to me.

The author of a blogpost is a facebook engineer. Millions of ultra high performance Linux servers are a very different usecase than a single desktop. It's perfectly reasonable for a solution for one to not be appropriate for the other.

14
DonutsRMeh lemmy.world DonutsRMeh@lemmy.world
Joined: 2025-03-13
#18 · Quote Reply

Just switched to zswap on my cachyOS install and I can feel the difference. I had freezes where the system chugs when I have several processes running. Now, I don't get them anymore. Not gonna pretend that I understand everything about them fully, but I searched online and some folks recommended zswap and I went with it.

4
RiderExMachina lemmy.ml RiderExMachina@lemmy.ml
Joined: 2021-05-19
#19 · Quote Reply

Can I make it z-any more obvious?

2
mazzilius_marsti lemmy.world mazzilius_marsti@lemmy.world
Joined: 2024-07-15
#20 · Quote Reply

theres zswap?

1
Post Reply
Back to top