Linux using zram. The zram module creates RAM-based block devices named /dev/zram<id>...
Linux using zram. The zram module creates RAM-based block devices named /dev/zram<id> (<id> = 0, 1, ). e. Pages written to these disks are compressed and stored in memory itself. This article presents a detailed guide to configuring, tuning, and monitoring zram and swap, along with best practices and security considerations. To check whether zRAM is enabled or not on your system, run the following command: In order to get a better idea about zramctl please consult util-linux documentation, zramctl man-page or zramctl --help. Guide for manually setting up zram on Linux. kernel. I devised a set of two different memory-speed tests “normal memory” and “low memory” tests and ran these with three different zram-configurations (other than the 10% configured above). Starting with kernel version 3. Learn how you can speed up your Ubuntu system by enabling and tweaking ZRAM today. By following the steps in this guide, you can easily install and configure ZRAM to better manage your system’s memory. org Following shows a typical sequence of steps for using zram. Feb 3, 2026 · zram (previously called compcache) is a Linux kernel feature and set of userspace tools for creating compressible RAM-based block devices. zram, formerly called compcache, is a Linux kernel module for creating a compressed block device in RAM, i. - Releases · karem505/linux-zram-optimization I measured swap-use during the tests using the Linux programs free -m and for zram use zramctl --output-all. Here is the whole tutorial about zRam in Ubuntu: zRam is a code inside kernel, that once activated, creates a RAM based block device which acts as a swap disk, but is compressed and stored in memory, allowing very fast I/O and increasing the amount of memory available before the system starts swapping to disk. Unlike traditional swap on SSDs/HDDs, Zram keeps swap data in memory (much faster than disk swap), compressing it to save space and improve speed. 2 and above, so it's Apr 2, 2024 · WHAT IS ZRAM? In brief, zram is a Linux OS feature with which you can create a block device mounted into RAM memory, with on-the-fly compression (so data can be written into zram in compressed form) and decompression (so data is automatically decompressed in zram read operation). The block device created with zram can then be used for swap or as a general-purpose RAM disk. GitHub - karem505/linux-zram-optimization: Apple-style in-RAM memory compression for Linux using zram + zstd. Please be informed that zram maintainers do not develop/maintain util-linux or zramctl, should you have any questions please contact util-linux @ vger. Feb 24, 2023 · Enabling zRAM on Linux In this article, we will see how we can enable zRAM on various Linux distributions. 14. Apple-style in-RAM memory compression for Linux using zram + zstd. zRam is integrated into the Linux kernel 3. a RAM disk with on-the-fly disk compression. It has been included as a module of the mainline Linux kernel since version 3. Oct 14, 2024 · Using ZRAM on Ubuntu can significantly improve your system’s performance, especially if you have limited RAM. 10, should work on the latest Ubuntu as well. Sep 2, 2025 · Modern Linux systems provide versatile tools such as zram and traditional swap to extend physical RAM capabilities. In this guide, we will provide detailed instructions on how to install, configure, and optimize Zram for your Linux system. Apr 25, 2025 · Allocating compressed swap in RAM with Zram streamlines Linux performance on low-memory systems, letting you open more applications and browser tabs without slowdowns from disk swapping. . Nov 5, 2023 · ZRAM is a powerful ramdisk cache for Linux-based systems. Aug 28, 2024 · This is a step by step tutorial shows how to enable zram Kernel module and use as Swap device for better system performance in Ubuntu 24. Mar 15, 2025 · Put simply, Zram is a compressed swap space stored in RAM that reduces the need for disk-based swap when your Linux system is running low on memory. 15, zram supports multiple compression algorithms, which can be changed without a system restart. Dec 4, 2025 · zram, formerly called compcache, is a Linux kernel module for creating a compressed block device in RAM, i. - kurushimee/configure-zram Apr 26, 2025 · By utilizing Zram, you can create a compressed swap space directly in RAM, improving responsiveness and multitasking capabilities without compromising speed. Feb 12, 2016 · Here you go. Tested on Ubuntu 20. Nov 14, 2025 · In this blog post, we have covered the fundamental concepts of ZRAM, discussed its usage methods, explored common practices, and provided best practices to help you effectively use ZRAM on your Linux system. One-command installer for Ubuntu, Debian, Fedora, and Arch. 04 PC/laptop with limited RAM. Check if zRAM is Already Enabled Many Linux distributions already have zRAM enabled, so you wouldn’t want to do the effort again and try to enable it. fvrfvaewrchxwshvtpxkmybwodffhjcxggblxvpivnhmx