init: gs101: improve first cma allocation latency for faceauth
When the system boot, migrate big mapped movable pages created by Android boot sequence(e.g., zygote) out of cma to improve first cma allocation. The test with cma trace shows cma allocation reduction from 136ms to 25ms. Test: atest com.google.android.camera.pts.SecurePreviewTest with cma trace Bug: 218731671 Signed-off-by: Minchan Kim <minchan@google.com> Change-Id: Iaa2a2f8c0c3256face3ce9cd21fa4acd6fb531ea
This commit is contained in:
parent
7ff2746e0a
commit
e09098ee34
1 changed files with 3 additions and 0 deletions
|
@ -687,6 +687,9 @@ on property:sys.boot_completed=1
|
|||
swapon_all /vendor/etc/fstab.${ro.board.platform}
|
||||
write /proc/sys/vm/swappiness 100
|
||||
|
||||
# Force empty CMA
|
||||
write /sys/kernel/vendor_mm/cma/farawimg/force_empty 1
|
||||
|
||||
# Back to default VM settings
|
||||
write /proc/sys/vm/dirty_expire_centisecs 3000
|
||||
write /proc/sys/vm/dirty_background_ratio 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue