sm6375-common: Change readahead to 128KiB on post-boot

Reduce readahead from 512KiB to 128KiB to reduce thrashing when we
have a lot of apps running.

Bug: 110908295
Bug: 80426378
Test: manual - device boots
Test: manual - check app launch does not take long
Test: cts-tradefed.sh run cts -m CtsCameraTestCases
Change-Id: I59c1f2f8a6fbb5e0d956ba07a40a2bfac3b61481
This commit is contained in:
Miguel de Dios 2024-07-17 19:38:04 +05:30 committed by Anand S
parent 3586166e3f
commit e7be3c83e4
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61

View file

@ -82,7 +82,7 @@ function configure_read_ahead_kb_values() {
if [ $MemTotal -le 3145728 ]; then
ra_kb=128
else
ra_kb=512
ra_kb=128
fi
if [ -f /sys/block/mmcblk0/bdi/read_ahead_kb ]; then
echo $ra_kb > /sys/block/mmcblk0/bdi/read_ahead_kb