Have you ever noticed that your An Android smartphone with 2โ4 GB of RAM suddenly starts working faster than some flagships with 8 GB? Or why even budget devices rarely freeze when multitasking? The secret often lies in technology Z-RAM (or zSwap in new versions of Android), which not all users know about. This is not magic or a marketing gimmick - but a real optimization mechanism built into the Linux kernel on which Android runs.
In this article we will look at what it is Z-RAM, how it works at the system level, what pros and cons it brings for the user, and why some โgurusโ recommend it turn off. You will also learn how to check whether Z-RAM is active on your device, and what to do if it eats the battery or, conversely, is preventing lags. Spoiler: in 2026, its role has become even more important due to the increase in memory requirements of applications.
And yes - we will not convince you to โturn on/offโ this function thoughtlessly. Instead, you will receive objective analysis taking into account different scenarios: from gaming smartphones to weak devices on Android Go. Let's go!
What is Z-RAM and why do you need it in Android
Z-RAM (or Compressed RAM) is a real-time RAM compression technology originally developed for Linux. It appeared in Android back in the era of KitKat (4.4), but began to be actively used in Lollipop (5.0). The idea is simple: instead of โoffloadingโ unused applications into slow internal memory (as the standard one does), the system compresses their data and stores it in swap), the system compresses their data and stores it in RAM, but in a compressed form.
Why is this important? Imagine having Samsung Galaxy A14 e with 4 GB of RAM. Without Z-RAM, when you open 10 tabs in Chrome and start Genshin Impact the system would have to kill background processes to free up memory. With Z-RAM, it will simply compress the data of inactive tabs (for example, with a ratio of 2:1 or 3:1) and leave them in RAM. When you return to the tab, the data will be unzipped on the fly, and the application will continue to work without rebooting.
Key advantages of the technology:
- ๐ Reducing lags when multitasking, applications are restarted less often.
- ๐ฑ Battery saving โno need to constantly load data from a slow drive.
- ๐ฐ Extending the life of budget smartphones โ 2โ3 GB of RAM works like 4โ6 GB.
- ๐ง Automatic configuration โin most firmware, Z-RAM is enabled by default.
However, there is a downside: data compression/decompression requires processor resources. On weak chips (for example Helio G35 or Snapdragon 4xx) this can lead to overheating or increased power consumption. But more on that later.
How Z-RAM differs from regular SWAP and virtual memory
Many people confuse Z-RAM with a classic swappartition or virtual memory (virtual memory). Let's look at the differences:
| Technology | Where the data is stored | Access speed | CPU load | Battery consumption |
|---|---|---|---|---|
| Z-RAM | Compressed data in RAM | โก Very high (RAM) | ๐ฅ Medium (compression/decompression) | ๐ข Low (no access to the drive) |
| Classic SWAP | File on internal memory | ๐ข Low (10โ100 times slower than RAM) | ๐ข Low | ๐ด High (constant writes/reads) |
| zSwap (new standard) | Compressed data in RAM + disk reserve | โก High (priority - RAM) | ๐ฅ Medium/high | ๐ก Medium (rare disk accesses) |
In modern versions of Android (starting from Android 12), instead of pure Z-RAM, a hybrid approach is often used. It first tries to compress the data in RAM, and if there is not enough memory, it transfers it to disk. This is a compromise between speed and reliability. zSwap - hybrid approach. It first tries to compress the data in RAM, and if there is not enough memory, it transfers it to disk. It's a trade-off between speed and reliability.
Important: on devices with UFS 3.1/4.0 (for example, Samsung Galaxy S23 or OnePlus 11) the difference between Z-RAM and SWAP is less noticeable due to the high speed of the drive. But on devices with eMMC 5.1 (budget Redmi, Realme), classic SWAP can slow down the system.
โ ๏ธ Attention: On some custom firmware (for example, LineageOS or Pixel Experience) Z-RAM may be disabled by default. Check the kernel settings through applications like Kernel Adiutor or FrancoKernel Manager.
How to check if Z-RAM is enabled on your Android
You can find out if Z-RAM is active without root access, but for detailed information you will need special utilities. Here are step-by-step guide:
Method 1: Via ADB (without root)
Connect your smartphone to the PC and run the command:
adb shell cat /proc/swaps
If the output contains a line with zram0 or zswap - technology works. Example output:
Filename Type Size Used Priority
/zram0 partition 1048572 524288 100
Method 2: Through applications (root required)
Install one of the applications:
- ๐ CPU-Z (section
System โ Memory) - ๐ ๏ธ Kernel Adiutor (tab
Memory) - ๐ DevCheck (section
Hardware โ Memory)
Look for parameters like ZRAM size, Compressed RAM or Swap total.
Method 3: Through Termux (without root)
Install Termux from F-Droid and run:
termux-setup-storage
cat /proc/meminfo | grep -i zram
If commands return empty output - Z-RAM is disabled or not supported by your kernel.
โ๏ธ Checking Z-RAM on Android
Pros and cons of Z-RAM: is it worth disabling it?
Now the main question: does Z-RAM bring more benefit or harm? depending on your device and usage scenarios. Let's look at it in detail.
Advantages of Z-RAM
- ๐ฎ Better multitasking - applications are less likely to restart when switching.
- ๐ Battery saving on devices with slow drives (eMMC).
- ๐ธ Extending the life of old smartphones โ2 GB of RAM works like 3โ4 GB.
- ๐ก๏ธ Less wear and tear memory โno permanent writes to the disk (relevant for eMMC).
Disadvantages of Z-RAM
- ๐ฅ Increased load on the CPU โdata compression requires processor resources.
- ๐ก๏ธ Possible overheating on weak chips (for example, Snapdragon 4xx or Helio A22).
- โก Increased battery consumption on flagships with UFS 3.1+ (due to active CPU usage).
- ๐ข Lags when intensive compression - if the RAM is full to capacity.
Key conclusion: on budget smartphones (up to 4 GB RAM, eMMC) Z-RAM is almost always useful. On flagships (8+ GB RAM, UFS 3.1+) its impact is minimal, and sometimes it even interferes due to CPU load.
On devices with 6+ GB of RAM and a flagship-level processor (Snapdragon 8 Gen 2, Dimensity 9000+), Z-RAM can be disabled - the performance gain will be minimal and the load on the CPU will be minimal will decrease.
How to disable or configure Z-RAM on Android
If you decide to experiment with Z-RAM settings, here are instructions for different scenarios. Attention: Changes to kernel parameters can lead to unstable system operation!
Disabling Z-RAM via ADB (without root)
To temporarily disable it, do:
adb shellsu
echo 1 > /sys/block/zram0/reset
swapoff /dev/block/zram0
To get everything back:
mkswap /dev/block/zram0
swapon /dev/block/zram0
Adjusting the size of Z-RAM (requires root)
By default, Android allocates up to 50% of the total RAM for Z-RAM. You can change this via:
echo 2G > /sys/block/zram0/disksize
Where 2G is the desired size (can be specified in megabytes, for example, 1024M).
Disable via Magisk (for custom firmware)
If you have it installed Magisk, use modules like:
- ๐ง ZRAM Swap Disabler
- โ๏ธ KernelSU (for fine tuning)
โ ๏ธ Attention: On some devices (for example, Xiaomi with firmware MIUI) disabling Z-RAM can lead to spontaneous reboots due to the aggressive memory manager. Make a backup before experiments!
What happens if you completely disable Z-RAM?
On devices with 2โ3 GB This will lead to frequent โkillsโ of background applications and lags during multitasking. On flagships (8+ GB), the difference will be almost unnoticeable, but the load on the CPU may decrease slightly.
Z-RAM and games: does it affect FPS and heating?
Gamers often ask: does Z-RAM interfere with games? data-i="195">Let's compare using an example? The answer is ambiguous. On the one hand, data compression in RAM reduces the number of โunloadsโ of textures from memory, which is useful for Genshin Impact, Call of Duty Mobile or PUBG. On the other hand, the additional load on the CPU can reduce FPS on weak devices.
Let's compare using an example Redmi Note 11 (Snapdragon 680, 6 GB of RAM):
- ๐ฎ C Z-RAM: stable 40โ45 FPS at Genshin Impact (average settings), but the CPU temperature reaches 48ยฐC.
- ๐ฎ Without Z-RAM: 38โ42 FPS, but the temperature drops to 43ยฐC, and the battery drains 5โ7% slower.
Conclusion: if your smartphone gets warm in gamestry disabling Z-RAM. If you experience texture twitching or long loading levels, turn it back on.
On flagships (for example, ASUS ROG Phone 7 or Black Shark 5 Pro) the difference will be minimal - their processors (Snapdragon 8+ Gen 1) can easily cope with the load from compression.
For maximum performance in games on weak devices, try a combination: disable Z-RAM, but enable Game Mode in the settings and set the FPS limit to 30-40 frames. This will reduce the load on the CPU and reduce heating.
Z-RAM vs zSwap: which is better for Android in 2026?
With the release Android 12 Google began actively promoting zSwap as a replacement for the classic Z-RAM. What is the difference and what is better?
| Parameter | Z-RAM | zSwap |
|---|---|---|
| Data storage | Only in RAM | RAM + disk reserve |
| Speed | โก Maximum | โก High (but there may be delays when accessing the disk) |
| Reliability | ๐ข No risk of data loss | ๐ก In case of failure, loss of unsaved data is possible data |
| Suitable for | Devices with low RAM (2โ4 GB) | Devices with 6+ GB RAM and fast UFS |
In 2026 zSwap becomes the standard solution for most firmware, including Pixel, Samsung One UI i OxygenOS. It adapts more flexibly to different scenarios: for example, if there is a lack of memory, it first compresses data in RAM, and if this does not help, transfers it to disk.
However, on devices with eMMC 5.1 (budget Samsung A-series, Motorola Moto GzSwap may perform worse than Z-RAM due to the slow speed of writing to disk. In such cases, it is better to forcefully enable classic Z-RAM through the kernel settings.
FAQ: Frequently asked questions about Z-RAM on Android
โ Does Z-RAM eat up the battery? How to check this?
Yes, Z-RAM can increase battery consumption by 5-15% due to CPU load. To check its effect:
- Disable Z-RAM (see instructions above).
- Use the smartphone as usual for 1-2 days.
- Compare data from
Settings โ Batteryor application AccuBattery.
If the difference is more than 10%, consider disabling Z-RAM or reducing its size.
โ Is it possible to increase the size of Z-RAM by more than 50% of the RAM?
Technically yes, but this not recommended. When exceeding 50โ60% of the total RAM volume, the system begins to spend too many resources on compression/decompression, which leads to:
- ๐ข Noticeable lags when switching between applications.
- ๐ฅ Overheating of the processor (especially on MediaTek Helio).
- โก Accelerated battery discharge.
Optimal Z-RAM size:
- 2 GB RAM โ 512 MB โ 1 GB Z-RAM
- 4 GB RAM โ 1โ1.5 GB Z-RAM
- 6+ GB RAM โ 1โ2 GB or completely disabled
โ Why is there no Z-RAM on my Xiaomi/Realme/Samsung?
There are several reasons:
- The manufacturer disabled it in the firmware (for example, in MIUI for Redmi Note 12 Z-RAM works only on models with 6+ GB of RAM).
- You have a custom kernel, where Z-RAM is replaced by zSwap or another mechanism.
- The device uses an alternative SWAP (for example, a file on disk).
To check, run the command:
adb shell grep -i zram /proc/swaps
If the output is empty, Z-RAM is valid disabled.
โ Does Z-RAM affect the loading speed of applications?
Yes, but indirectly. Z-RAM does not speed up the launch of applications directly, but:
- โ Plus: If the application was already in compressed form in RAM, it will be restored faster than if it had to be loaded from disk.
- โ Minus: If the CPU is busy compressing/decompressing, the first launch of the application may be slower by 10โ20%.
On in practice, the difference is noticeable only on weak devices (for example, Snapdragon 4xx or Helio A20).
โ Can Z-RAM be used on tablets and TV boxes?
Yes, Z-RAM works on any devices running Android/Linux, including:
- ๐บ TV boxes (for example, NVIDIA Shield, Xiaomi Mi Box).
- ๐ฑ Tablets (Samsung Tab S8, Lenovo Tab P11).
- ๐ฅ๏ธ Mini-PC on Android (for example, GMK NucBox).
On TV boxes Z-RAM is especially useful, since they often have little RAM (2โ3 GB) and work with heavy applications like Kodi or Netflix 4K.