All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

How to Enable ZRAM on Linux Systems for Better Memory Optimization

By

type0

1mo ago· 4 min readen

Summary

The article discusses enabling ZRAM (compressed RAM) on Linux systems to optimize memory usage and potentially save money on hardware upgrades. The author shares personal experience with Firefox crashes due to memory issues on a 16GB RAM system and explains how ZRAM can help by compressing memory pages in RAM rather than swapping to disk. The article serves as a reminder/tutorial for Linux users to configure ZRAM for better performance without purchasing additional RAM.

Key quotes

· 4 pulled
With the price of RAM getting out of control, it might be a good idea to remind Linux users to enable ZRAM so they can get better performance without upgrading memory, or save money on their next single board computer by selecting a board with the right amount of memory.
In recent days, I found Firefox crashing often due to running out of memory on my system with 16GB of RAM, and the Linux 7.0 release reminded me about ZRAM, since there were some related changes.
ZRAM is a Linux kernel feature that provides a compressed block device in RAM, which can be used as swap space. Instead of swapping memory pages to disk, they are compressed and stored in RAM, which is much faster than disk I/O.
The main benefit is that you can effectively increase the amount of available memory without adding more physical RAM, which is especially useful on systems with limited memory or when RAM prices are high.
Snippet from the RSS feed
With the price of RAM getting out of control, it might be a good idea to remind Linux users to enable ZRAM so they can get better performance without upgrading memory, or save money on their next single board computer by selecting a board with the right a

You might also wanna read