mirror of
https://github.com/Evolution-X-Devices/device_google_walleye
synced 2026-02-01 07:33:36 +00:00
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
21 lines
783 B
Plaintext
21 lines
783 B
Plaintext
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 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
|
|
write /sys/block/dm-1/queue/read_ahead_kb 512
|
|
|
|
on property:sys.boot_completed=1 && property:ro.build.type=user
|
|
write /proc/sys/kernel/modules_disabled 1
|