This command filters the system's memory information for lines containing "Swap" or "Zram". A disabled zRAM will show minimal or zero values in these fields.
On modern flagship devices with 12GB, 16GB, or even 24GB of RAM, zRAM can be largely unnecessary. The entire point of having abundant physical RAM is to avoid needing to compress memory in the first place. Keeping zRAM active on these devices simply wastes CPU cycles and reserves RAM that could otherwise be used for more productive purposes. For devices with 2GB of RAM or more, swap-based mechanisms can sometimes cause more performance problems than they solve. disable zram magisk
In demanding mobile games, the sudden compression of background memory can cause frame drops. Removing zRAM ensures consistent frame delivery. This command filters the system's memory information for
Download a terminal emulator from the Play Store (e.g., Termux) or use adb shell . Grant root access by typing: su Use code with caution. Run the following command to check active swap allocations: cat /proc/swaps Use code with caution. The entire point of having abundant physical RAM
Tap the button at the bottom right to apply the changes. Method 2: Creating a Custom Magisk Boot Script (Advanced)
echo 1 > /sys/block/zram0/reset 2>/dev/null echo 1 > /sys/block/zram1/reset 2>/dev/null