Do not buy RAM, compress
Points and comments are a snapshot, not live.
Zram memory compression can yield up to 1:4 ratios, but zswap may be better.
The author, running out of 32 GB RAM, enabled zram to compress inactive memory pages. A test loading 82 websites showed 5.7 GB of data compressed into 1.7 GB of RAM-a 1:3.35 ratio. Zram requires CPU and adds some latency but dramatically increases effective memory capacity. The author recommends reading two articles that argue zswap is superior for most cases, as it integrates with disk swap and handles eviction more gracefully than zram's fixed-capacity block device.
What commenters are saying
Several commenters advocate zswap over zram, citing better integration with kernel memory management and automatic cold-data tiering to disk. Others counter that zram works better for desktop users without swap, especially on low-RAM devices. A third camp notes Fedora and Pop!_OS enable zram by default, while Ubuntu does not. Some argue the choice depends on use case: zswap for servers, zram for embedded or diskless systems.