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 <wvw@google.com>
This commit is contained in:
Wei Wang 2018-02-28 14:05:47 -08:00 committed by codeworkx
parent 4d467694ff
commit dabbcf23c7

View file

@ -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