storage: Defer blkio class configuration
Move blkio class configuration from on init to on property:sys.boot_completed=1. This improves I/O balance between foreground and background processes during boot, as many background processes compete for I/O resources at that time. Deferring the configuration ensures a smoother user experience by prioritizing foreground processes. Bug: 364960533 Test: forrest build and test on felix Change-Id: If15343d4d96d55032618a4611bf9fdf47105c974
This commit is contained in:
parent
3c88c19581
commit
0af034bf9f
1 changed files with 7 additions and 8 deletions
|
@ -1,11 +1,3 @@
|
|||
on init
|
||||
# Make foreground and background I/O priority different. none-to-rt was
|
||||
# introduced in kernel 5.14. promote-to-rt was introduced in kernel 6.5.
|
||||
# Write none-to-rt first and promote-to-rt next to support both older and
|
||||
# newer kernel versions.
|
||||
write /dev/blkio/blkio.prio.class none-to-rt
|
||||
write /dev/blkio/blkio.prio.class promote-to-rt
|
||||
|
||||
on property:ro.build.type=userdebug
|
||||
write /dev/sys/block/bootdevice/pixel/enable_pixel_ufs_logging 1
|
||||
chown system /dev/sg3
|
||||
|
@ -44,6 +36,13 @@ on init
|
|||
write /dev/sys/block/bootdevice/clkgate_enable 0
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
# Make foreground and background I/O priority different. none-to-rt was
|
||||
# introduced in kernel 5.14. promote-to-rt was introduced in kernel 6.5.
|
||||
# Write none-to-rt first and promote-to-rt next to support both older and
|
||||
# newer kernel versions.
|
||||
write /dev/blkio/blkio.prio.class none-to-rt
|
||||
write /dev/blkio/blkio.prio.class promote-to-rt
|
||||
|
||||
# Health Storage HAL
|
||||
chown system system /dev/sys/block/bootdevice/manual_gc
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue