gs101: tweak memory management
- set lmkd's swap_free_low_percentage to 100 - decrease swappiness to 60 This tweak also aligns the policy with P23. Test: boots with correct settings Bug: 299975853 Change-Id: I0ed7088ddf2ff2fa0feca2197e5cc03c7f5c6778 Signed-off-by: Martin Liu <liumartin@google.com>
This commit is contained in:
parent
16f7cffd2d
commit
1540e87a66
2 changed files with 5 additions and 1 deletions
|
@ -717,7 +717,7 @@ on property:sys.boot_completed=1
|
||||||
|
|
||||||
# Enable ZRAM on boot_complete
|
# Enable ZRAM on boot_complete
|
||||||
swapon_all /vendor/etc/fstab.${ro.board.platform}
|
swapon_all /vendor/etc/fstab.${ro.board.platform}
|
||||||
write /proc/sys/vm/swappiness 100
|
write /proc/sys/vm/swappiness 60
|
||||||
|
|
||||||
# Force empty CMA
|
# Force empty CMA
|
||||||
write /sys/kernel/vendor_mm/cma/farawimg/force_empty 1
|
write /sys/kernel/vendor_mm/cma/farawimg/force_empty 1
|
||||||
|
|
|
@ -1131,5 +1131,9 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
# Call deleteAllKeys if vold detects a factory reset
|
# Call deleteAllKeys if vold detects a factory reset
|
||||||
PRODUCT_VENDOR_PROPERTIES += ro.crypto.metadata_init_delete_all_keys.enabled=true
|
PRODUCT_VENDOR_PROPERTIES += ro.crypto.metadata_init_delete_all_keys.enabled=true
|
||||||
|
|
||||||
|
# Increase lmkd aggressiveness
|
||||||
|
PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
|
ro.lmk.swap_free_low_percentage=100
|
||||||
|
|
||||||
# Hardware Info Collection
|
# Hardware Info Collection
|
||||||
include hardware/google/pixel/HardwareInfo/HardwareInfo.mk
|
include hardware/google/pixel/HardwareInfo/HardwareInfo.mk
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue