sm8350-common: rootdir: Remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the boot process, services initialized at this time would keep 2048KB ra value even though we adjust the ra value to 128KB after boot completion. This may cause memory pressure. Bug: 174700194 Signed-off-by: Randall Huang <huangrandall@google.com> Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
This commit is contained in:
parent
163cec32a7
commit
e5413336ca
@ -38,12 +38,6 @@ on init
|
||||
write /dev/cpuctl/foreground/cpu.uclamp.colocate 0
|
||||
write /dev/cpuctl/top-app/cpu.uclamp.colocate 1
|
||||
|
||||
on post-fs
|
||||
# Set aggressive read ahead for dm-0 and dm-1 during boot up
|
||||
write /sys/block/dm-0/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-1/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-2/queue/read_ahead_kb 2048
|
||||
|
||||
on early-boot
|
||||
# Allow subsystem (modem etc) debugging
|
||||
write /sys/kernel/boot_adsp/boot 1
|
||||
@ -76,11 +70,6 @@ service kernel-post-boot /vendor/bin/sh /vendor/bin/init.kernel.post_boot-lahain
|
||||
oneshot
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
# Reset read ahead for dm-0, dm-1 and dm-2 to 512kb
|
||||
write /sys/block/dm-0/queue/read_ahead_kb 512
|
||||
write /sys/block/dm-1/queue/read_ahead_kb 512
|
||||
write /sys/block/dm-2/queue/read_ahead_kb 512
|
||||
|
||||
start kernel-post-boot
|
||||
|
||||
service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance.conf
|
||||
|
Loading…
Reference in New Issue
Block a user