From 08e352d88b0ad3f6e3e085ccdd25314b0287b16f Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 8 Jan 2019 11:01:01 -0800 Subject: [PATCH] Boottime: remove all block-related tunes including readahead size With a request size fix, 2MB-sized readahead would not be a way to gain boottime. taimen - PVT - Hynix 128GB - boot_complete timestamp (avg of 100 loop) Base [1] : 10.943 New [2] : 10.7495 taimen - PVT - Hynix 128GB - boot_complete timestamp + fastboot -w (avg of 100 loop) Base [1] : 32.5857 New [2] : 31.7474 [1] w/o this CL, revert commit 7c37954411e9 ("mm: readahead back to 128KB") [2] w/ this CL, keep commit 7c37954411e9 ("mm: readahead back to 128KB") Bug: 122246531 Bug: 120757803 Change-Id: I2c3236b0b0cd4f2a8610a1af64de694f8a4d7997 Signed-off-by: Jaegeuk Kim --- init-common.rc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/init-common.rc b/init-common.rc index 0dcc3f0..f0434e7 100644 --- a/init-common.rc +++ b/init-common.rc @@ -1,21 +1,3 @@ -on late-fs - # boot time fs tune - write /sys/block/sda/queue/iostats 0 - write /sys/block/sda/queue/scheduler cfq - write /sys/block/sda/queue/iosched/slice_idle 0 - write /sys/block/sda/queue/read_ahead_kb 2048 - write /sys/block/sda/queue/nr_requests 256 - write /sys/block/dm-0/queue/read_ahead_kb 2048 - write /sys/block/dm-1/queue/read_ahead_kb 2048 - -on property:sys.boot_completed=1 - # end boot time fs tune - write /sys/block/sda/queue/read_ahead_kb 128 - write /sys/block/sda/queue/nr_requests 128 - write /sys/block/sda/queue/iostats 1 - write /sys/block/dm-0/queue/read_ahead_kb 128 - write /sys/block/dm-1/queue/read_ahead_kb 128 - on property:sys.boot_completed=1 && property:ro.build.type=user write /proc/sys/kernel/modules_disabled 1