mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: Enable ZRAM
Change-Id: Icd48749ad781ba48592fbcc2dc7c3ad88c659a57 Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
parent
cf69a175e8
commit
cb0a5bcccb
5 changed files with 20 additions and 1 deletions
1
rootdir/etc/fstab.enableswap
Normal file
1
rootdir/etc/fstab.enableswap
Normal file
|
|
@ -0,0 +1 @@
|
|||
/dev/block/zram0 none swap defaults zramsize=2147483648,max_comp_streams=8
|
||||
|
|
@ -4,6 +4,13 @@ on init
|
|||
# Disable vendor overlay
|
||||
mount none /vendor/lost+found /vendor/overlay bind
|
||||
|
||||
# ZRAM parameters
|
||||
write /proc/sys/vm/page-cluster 0
|
||||
write /proc/sys/vm/swappiness 100
|
||||
|
||||
on fs
|
||||
swapon_all /system/etc/fstab.enableswap
|
||||
|
||||
service argos-daemon /system/bin/true
|
||||
oneshot
|
||||
disabled
|
||||
|
|
|
|||
Loading…
Reference in a new issue