551ceefa4c
Adds four fstab.zram.{25p,50p,75p,none} variants copied to vendor/etc.
init.rpi4.rc activates swap at boot_complete using persist.vendor.zram.size.
Adds vm.min_free_kbytes/lowmem_reserve_ratio memory tuning on init.
SELinux: declares vendor_zram_config_prop for persist.vendor.zram.size.
17 lines
443 B
Plaintext
17 lines
443 B
Plaintext
import /vendor/etc/init/hw/init.${ro.hardware}.usb.rc
|
|
|
|
on init
|
|
symlink /sdcard /storage/sdcard0
|
|
|
|
# Memory reserve tuning for RPi 4
|
|
write /proc/sys/vm/min_free_kbytes 27386
|
|
write /proc/sys/vm/lowmem_reserve_ratio "0 0 0"
|
|
|
|
on fs
|
|
mount_all /vendor/etc/fstab.rpi4 --early
|
|
|
|
on late-fs
|
|
mount_all /vendor/etc/fstab.rpi4 --late
|
|
|
|
on property:sys.boot_completed=1
|
|
swapon_all /vendor/etc/fstab.zram.${persist.vendor.zram.size} |