@SleveMcDichael@programming.dev
2026-09-13 22:51 UTC
Please, for the love of who ever you hold in high esteem, use swap. See: chrisdown.name/2018/01/…/in-defence-of-swap.html
Now I don’t really like the whole “Heres an article from some rando to prove my point” thing, but anecdotally, the article does line up with my experience (with 32 gigs of system memory). Namely, when I went without swap I experienced frequent system lock-ups, when I added swap on zram, lock ups still happened but less frequently, and when I eventually added disk swap on the recommendation of this article lock ups never happened again.
Replies (2)
-
@kopasz7@sh.itjust.works 2026-09-13 23:22
The add some nuance to this. Do not use ZRAM in combination with swap. There’s ZSWAP for that which does what you would expect, without clogging up your RAM and gracefully handling a hacking device. (ZRAM is just another block device for the kernel, so you will get LRU inversion if it fills up and you have another layer of swap on disk. Meaning your cold pages will be in needlessly stuck zram.)
-
@auzy1@lemmy.world 2026-09-15 07:45
Use Swap FILE though… Not Swap Partition