News for hackers. Stuff that matters.
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

There are no comments on this comment yet.