News for hackers. Stuff that matters.
[dead]
Re:Do not buy RAM, compress by speed_spread on Thursday November 19, 2026 @06:34AM (#50558821)
What if I loathe swap? The I/O hit of hitting swap, even with SSD, always mean a severely degraded desktop experience. I often end up closing applications to free up RAM or would just order more RAM back when it didn't involve taking a third mortgage.

I would rather have the system tell me there's not enough memory than try to pretend there's an infinite amount of it and then slow to a crawl without apparent reason. Unix memory allocation is daft. Desktop swap to block never worked, never will.

Re:Do not buy RAM, compress by rid on Thursday November 19, 2026 @06:51AM (#50558946)
ZSwap actually stays in RAM, it allows you to keep the swap in RAM just in a compressed format, so everything stays fast.

We use it heavily in our cloud env and it works great:

  NAME       ALGORITHM DISKSIZE   DATA  COMPR  TOTAL STREAMS MOUNTPOINT
  /dev/zram0 zstd        249.7G 241.2G 100.4G 101.9G     128 [SWAP]
  # free -m
                 total        used        free      shared  buff/cache   available
  Mem:          511338      300249       11742       25662      250930      211089
  Swap:         255669      255118         550
Re:Do not buy RAM, compress by izacus on Thursday November 19, 2026 @10:37AM (#50561500)
You seem to be fundamentally misunderstanding what zswap is and are instead griping about something unrelated.
Re:Do not buy RAM, compress by mrob on Thursday November 19, 2026 @11:50AM (#50562576)
Agreed. IMO, zswap is the one that requires a "highly specific reason", while zram (with lz4) should be enabled by default.
Re:Do not buy RAM, compress by adgjlsfhk1 on Thursday November 19, 2026 @01:34PM (#50564143)
You still want swap, The part you're missing is a good oom strategy. Your system slowing a ton has to do with needing to access swapped memory. Swap is still very useful when you have background tasks that aren't running, but are still using a bunch of RAM. The trick is that if you suddenly start reading a lot of that data repeatedly while being in that sate, you need to oom something quickly.
Re:Do not buy RAM, compress by keybored on Thursday November 19, 2026 @07:04AM (#50559018)
I enjoyed that Zram article a lot way back when.

( https://news.ycombinator.com/item?id=47500746 )

It’s long and more satisfying than this In These AI Times wrapper.