this post was submitted on 19 Jun 2024
92 points (100.0% liked)

chat

8150 readers
217 users here now

Chat is a text only community for casual conversation, please keep shitposting to the absolute minimum. This is intended to be a separate space from c/chapotraphouse or the daily megathread. Chat does this by being a long-form community where topics will remain from day to day unlike the megathread, and it is distinct from c/chapotraphouse in that we ask you to engage in this community in a genuine way. Please keep shitposting, bits, and irony to a minimum.

As with all communities posts need to abide by the code of conduct, additionally moderators will remove any posts or comments deemed to be inappropriate.

Thank you and happy chatting!

founded 3 years ago
MODERATORS
 

CS degree is kinda useless, right? I haven't slept the whole night applying and thinking about this...

you are viewing a single comment's thread
view the rest of the comments
[–] asante@hexbear.net 2 points 3 months ago (1 children)

woah thanks! i always thought zram was a better solution than zswap but i'll give zswap a try when i get time.

am i right that you can create zswap block devices and mount them like with zram? (eg. mounting /var/tmp)

[–] unperson@hexbear.net 3 points 3 months ago* (last edited 3 months ago) (1 children)

am i right that you can create zswap block devices and mount them like with zram? (eg. mounting /var/tmp)

zswap is a "front swap", it needs a backing swap to function that's crucial to the design. It automtically goes in front of all the swaps you have enabled.

You could probably put the backing swap on a loop device on a tmpfs, but I don't know how it will handle the loopback. It's a better idea to put it on disk. It can be a slow or write-limited disk, it will not get used much. You definitely should not use zram and zswap at the same time.

[–] asante@hexbear.net 1 points 3 months ago

damn. when i do try out zswap i'll try and do this. but i do a lot of compiling and i prefer not to do all those reads and writes on my hard drive, so i will be sticking with zram for now.

thanks for the advice! it was hard for me to understand the differences at first when i first started looking at them so your comments are helpful.