Skip to content

Commit

Permalink
sdm710-common: rootdir: Remove IO read_ahead_kb tune
Browse files Browse the repository at this point in the history
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 512KB after boot completion.

This may cause memory pressure.

[B--B: disabled configure_read_ahead_kb_values in init.qcom.post_boot.sh]

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
Signed-off-by: Marco Zanin <mrczn.bb@gmail.com>
  • Loading branch information
Randall Huang authored and B--B committed Jul 30, 2023
1 parent 24d0a21 commit 7c6dbef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion rootdir/bin/init.qcom.post_boot.sh
Expand Up @@ -795,7 +795,7 @@ else

configure_zram_parameters

configure_read_ahead_kb_values
# configure_read_ahead_kb_values

enable_swap
fi
Expand Down
8 changes: 0 additions & 8 deletions rootdir/etc/init.qcom.rc
Expand Up @@ -358,11 +358,6 @@ on post-fs-data
mkdir /data/vendor/swap 0770 root system
chmod 2770 /data/vendor/swap

# 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

# Create vpp directory
mkdir /data/vendor/vpp 0770 media media

Expand Down Expand Up @@ -450,9 +445,6 @@ on property:persist.vendor.sys.rawdump_copy=0

on property:sys.boot_completed=1
write /dev/kmsg "Boot completed "
#Reset read ahead for dm-0 and dm-1 to 512kb
write /sys/block/dm-0/queue/read_ahead_kb 512
write /sys/block/dm-1/queue/read_ahead_kb 512
#WDSP FW boot sysfs node used by STHAL
chown media audio /sys/kernel/wdsp0/boot
chown media audio /sys/kernel/wcd_cpe0/fw_name
Expand Down

0 comments on commit 7c6dbef

Please sign in to comment.