From e7be3c83e4427476ce4343053adfca1db1a6bb67 Mon Sep 17 00:00:00 2001 From: Miguel de Dios Date: Wed, 17 Jul 2024 19:38:04 +0530 Subject: [PATCH] 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 --- rootdir/bin/init.kernel.post_boot-blair.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootdir/bin/init.kernel.post_boot-blair.sh b/rootdir/bin/init.kernel.post_boot-blair.sh index 78afb07..84c6e4f 100644 --- a/rootdir/bin/init.kernel.post_boot-blair.sh +++ b/rootdir/bin/init.kernel.post_boot-blair.sh @@ -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