mirror of
https://github.com/followmsi/android_device_asus_deb.git
synced 2024-11-06 22:06:28 +00:00
deb: Enable and uze ZRAM
Change-Id: Idd94fe045ee7b0a631dcc174bf3e4ad1f19fe62f
This commit is contained in:
parent
9b7d17b388
commit
bc1d0ffd83
2 changed files with 8 additions and 0 deletions
|
@ -26,3 +26,4 @@
|
|||
/dev/block/platform/msm_sdcc.1/by-name/rpmb /rpmb emmc defaults defaults
|
||||
/dev/block/platform/msm_sdcc.1/by-name/abootb /abootb emmc defaults defaults
|
||||
/devices/platform/msm_hsusb_host/usb* auto auto defaults voldmanaged=usb:auto,noemulatedsd
|
||||
/dev/block/zram0 none swap defaults zramsize=536870912,notrim
|
||||
|
|
|
@ -141,6 +141,13 @@ on boot
|
|||
on property:sys.boot_completed=1
|
||||
setprop sys.io.scheduler bfq
|
||||
write /sys/block/mmcblk0/bdi/read_ahead_kb 256
|
||||
write /sys/block/zram0/comp_algorithm lz4
|
||||
write /sys/block/zram0/max_comp_streams 4
|
||||
write /sys/block/zram0/disksize 536870912
|
||||
write /proc/sys/vm/page-cluster 0
|
||||
write /proc/sys/vm/swappiness 60
|
||||
# Enable ZRAM on boot_complete
|
||||
swapon_all ./fstab.flo
|
||||
|
||||
on post-fs
|
||||
# Allow writing to the kernel trace log.
|
||||
|
|
Loading…
Reference in a new issue