mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 13:46:26 -08:00
X6837: 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> Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
parent
98eb5f6660
commit
ccb6340abd
|
@ -190,20 +190,6 @@ on post-fs-data
|
|||
write /sys/kernel/mm/swap/vma_ra_enabled false
|
||||
swapon_all /vendor/etc/fstab.mt6789
|
||||
|
||||
# boot time fs tune
|
||||
write /sys/block/mmcblk0/queue/iostats 0
|
||||
write /sys/block/mmcblk0/queue/read_ahead_kb 2048
|
||||
write /sys/block/mmcblk0/queue/nr_requests 256
|
||||
write /sys/block/sdc/queue/iostats 0
|
||||
write /sys/block/sdc/queue/read_ahead_kb 2048
|
||||
write /sys/block/sdc/queue/nr_requests 256
|
||||
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
|
||||
write /sys/block/dm-3/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-4/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-5/queue/read_ahead_kb 2048
|
||||
|
||||
chown system system /mnt/vendor/nvcfg
|
||||
chmod 0771 /mnt/vendor/nvcfg
|
||||
restorecon_recursive /mnt/vendor/nvcfg
|
||||
|
@ -1011,6 +997,7 @@ on property:sys.boot_completed=1
|
|||
write /proc/sys/vm/dirty_expire_centisecs 3000
|
||||
write /proc/sys/vm/dirty_background_ratio 10
|
||||
|
||||
<<<<<<< HEAD:rootdir/etc/init/hw/init.mt6789.rc
|
||||
write /sys/block/mmcblk0/queue/iostats 1
|
||||
write /sys/block/mmcblk0/queue/read_ahead_kb 512
|
||||
write /sys/block/mmcblk0/queue/nr_requests 128
|
||||
|
@ -1064,6 +1051,14 @@ on property:sys.boot_completed=1
|
|||
# user system
|
||||
# group gps system radio
|
||||
# class main
|
||||
=======
|
||||
# Setup runtime cpusets
|
||||
write /dev/cpuset/top-app/cpus 0-7
|
||||
write /dev/cpuset/foreground/cpus 0-5,7
|
||||
write /dev/cpuset/background/cpus 4-5
|
||||
write /dev/cpuset/system-background/cpus 2-5
|
||||
write /dev/cpuset/restricted/cpus 2-5
|
||||
>>>>>>> 2214b06 (pissarro: remove IO read_ahead_kb tune):rootdir/etc/init.mt6877.rc
|
||||
|
||||
# Battery info
|
||||
on property:persist.vendor.mediatek.fg.disable=1
|
||||
|
|
Loading…
Reference in a new issue