Files
pawlet_rpi_common/slow_storage.mk
oxmc 90fa070c80 slow_storage: add ro.hw_timeout_multiplier=4 for USB I/O stalls
USB drive I/O stalls block jbd2 journal commits, which hangs system_server
threads in uninterruptible sleep. The Android Watchdog fires at 30s and
kills zygote before the drive recovers. Multiplying timeouts by 4 (120s)
gives the USB drive enough time to complete without triggering the Watchdog.
2026-06-07 01:31:37 -07:00

17 lines
634 B
Makefile

# slow_storage.mk — optional include for devices with slow storage (SD card / USB).
#
# Limits dex2oat thread count and CPU affinity so background AOT compilation
# cannot starve system_server and trigger the Android Watchdog.
#
# Usage (in a device makefile, e.g. pawlet_rpi4.mk):
# include device/pawlet/rpi/slow_storage.mk
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.boot-dex2oat-cpu-set=0,1 \
dalvik.vm.boot-dex2oat-threads=2 \
dalvik.vm.dex2oat-cpu-set=0,1 \
dalvik.vm.dex2oat-threads=2 \
dalvik.vm.background-dex2oat-cpu-set=0 \
dalvik.vm.background-dex2oat-threads=1 \
ro.hw_timeout_multiplier=4