From dabbcf23c7280c03d3791dc31f90d61bb35e5916 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Wed, 28 Feb 2018 14:05:47 -0800 Subject: [PATCH] oneplus5: set default readahead to 2048KB Android has been benefiting quicker boot from bigger readahead during boottime than runtime. However, the boottime readahead setting is set when init is established after treble early mount. This patch will make readahead bigger by default so early boot can benefit from it. Readahead will be reset by init on boot_complete. Bug: 62413151 Test: boot walleye 100ms faster Change-Id: Ic9dad5666ce3d4836d73afbcee04cfb875f64f5d Signed-off-by: Wei Wang --- arch/arm64/configs/lineage_oneplus5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/lineage_oneplus5_defconfig b/arch/arm64/configs/lineage_oneplus5_defconfig index 0831634d68ea..944618a1e061 100644 --- a/arch/arm64/configs/lineage_oneplus5_defconfig +++ b/arch/arm64/configs/lineage_oneplus5_defconfig @@ -494,6 +494,7 @@ CONFIG_KSWAPD_CPU_AFFINITY_MASK="f" # CONFIG_IDLE_PAGE_TRACKING is not set # CONFIG_FORCE_ALLOC_FROM_DMA_ZONE is not set # CONFIG_PROCESS_RECLAIM is not set +CONFIG_VM_MAX_READAHEAD=2048 CONFIG_SECCOMP=y # CONFIG_XEN is not set CONFIG_FORCE_MAX_ZONEORDER=11