From 798459c745024c9adc8b82ca1f632de9974903cd Mon Sep 17 00:00:00 2001 From: Maggie White Date: Fri, 21 Jul 2017 15:01:14 -0700 Subject: [PATCH] UFS-specific runtime I/O tuning Tested 1/2x, 1x, 2x, and 4x the current readahead buffer and noop and cfq I/O schedulers for /dev/block/sda, which contains /data. The most consistent performance boost was seen across all UFS vendors and storage sizes using cfq and a readahead buffer of 1024. Bug: 38000161 Test: Compared 1P app launch times using app-launcher for schedulers (noop, cfq) and readahead buffer sizes (128,512,1024,2048) Change-Id: Ifcc9145d6f7a77ba4b3844b7892291eb348d9e1c --- init-common.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-common.rc b/init-common.rc index 608b3d3..0e1dec7 100644 --- a/init-common.rc +++ b/init-common.rc @@ -10,7 +10,7 @@ on late-fs on property:sys.boot_completed=1 # end boot time fs tune - write /sys/block/sda/queue/read_ahead_kb 512 + write /sys/block/sda/queue/read_ahead_kb 1024 write /sys/block/sda/queue/nr_requests 128 write /sys/block/sda/queue/iostats 1 write /sys/block/dm-0/queue/read_ahead_kb 512