The piece argues that Linux users and cloud operators should enable zram - compressed memory - before buying more RAM or upgrading machines. As workloads become more parallel, memory pressure rises, while adding physical memory can be expensive or impossible. Compression is already used on Windows, macOS, and many Android devices, but Linux support varies: Fedora and Pop!_OS enable it by default, Ubuntu does not, and Amazon Linux enables it only on smaller virtual machines. The tradeoff is modest extra CPU use and some latency in exchange for substantially greater effective capacity; compression ratios can reach roughly 4:1. The author recalls that earlier SaaS workloads often prompted machine upgrades despite underused CPUs, suggesting memory compression could sometimes have avoided those costs.
A desktop test illustrates the benefit: opening dozens of websites in Firefox on a system with 32 GB of RAM pushed memory demand beyond available physical capacity. Some application data moved into zram rather than requiring an immediate hardware upgrade. The reported figures show 5.7 GB of data occupying 1.7 GB of RAM, a compression ratio of about 3.35:1. The recommendation is to use compression to get more from existing computers and cloud instances, potentially reducing spending while accommodating heavier workloads. Readers interested in enabling it are directed to the Arch Linux wiki for setup guidance.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.