Do not buy RAM, compress
- ID
- 48620
- Status
- summarized
- Published
- 19 Nov 2026, 4:56 PM
- Fetched
- 20 Nov 2026, 5:08 PM
- Provider
- Hacker News
- Category
- dev-community
- Original URL
- https://curiousbits.nl/blog/do-not-buy-ram-compress/
- Source URL
- https://hnrss.org/best
Summary
- Score
- 7.2
- Created
- 20 Nov 2026, 5:08 PM
- Tags
- Audience
- developersvibe_coderssaas_startup_founders
What happened
The post argues that Linux users should try zram memory compression before buying more RAM: Fedora and Pop!_OS enable it by default, Ubuntu does not, and Amazon Linux only enables it on smaller VMs. The author hit memory limits with 32GB while opening many Firefox tabs and cites compression ratios up to 1:4, with some CPU use and added latency as the tradeoff. It also claims memory compression could have halved cloud spend in earlier SaaS apps where CPUs were underused but instances were upgraded for memory.
Why it matters
If you run Linux workstations or cloud VMs, check whether zram is active before sizing up, especially on Ubuntu where it is off by default. For SaaS founders, the concrete decision is to test memory compression on CPU-idle, memory-bound instances before paying for the next RAM tier, while measuring latency-sensitive paths because the 1:4 gain is not free.
Discussion angle
Where in your stack is memory the bottleneck while CPU sits idle, and which latency-sensitive services should not be compressed?