Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

ZRAM? How to edit disksize?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ZRAM? How to edit disksize?

    I have a Kata Box 2 with s905 SoC with 1GB of ram

    My current ZRAM value is set at 500MB with a swappiness of 60%
    I can disable zram or change the swappiness of my ZRAM but I cant seem to change the disk size.

    I tried this in the terminal with su

    swapoff /dev/block/zram0

    echo 1 > /sys/block/zram0/reset

    busybox echo 157286400 > /sys/block/zram0/disksize <- I want to lower it from 500mb to 150mb

    mkswap /dev/block/zram0

    swapon /dev/block/zram0

    I checked the value of /sys/block/zram0/disksize and its still set at 500mb or nothing has changed.

    I tried to edit the manually but its not saving at all.
Working...
X