zuma: tweak memory management

- set lmkd's swap_free_low_percentage to 100
- decrease swappiness to 60

Test: boots with correct settings
Bug: 288432219
Change-Id: Ie9fc39b03b25ee231190e12e312485794d0f8686
This commit is contained in:
Tim Murray 2023-06-26 17:26:13 -07:00
parent 8a52fe3d73
commit 5f975896d4
2 changed files with 5 additions and 1 deletions

View file

@ -752,7 +752,7 @@ on property:sys.boot_completed=1
# Enable ZRAM on boot_complete
swapon_all /vendor/etc/fstab.${ro.board.platform}
write /proc/sys/vm/swappiness 100
write /proc/sys/vm/swappiness 60
# Adjust watermark level
write /proc/sys/vm/watermark_scale_factor 200

View file

@ -1139,6 +1139,10 @@ PRODUCT_VENDOR_PROPERTIES += ro.crypto.metadata_init_delete_all_keys.enabled?=tr
PRODUCT_PROPERTY_OVERRIDES += \
ro.crypto.volume.options=aes-256-xts:aes-256-hctr2
# Increase lmkd aggressiveness
PRODUCT_PROPERTY_OVERRIDES += \
ro.lmk.swap_free_low_percentage=100
# Hardware Info Collection
include hardware/google/pixel/HardwareInfo/HardwareInfo.mk