platform_system_core/storaged
David Munoz Constantine 360a3f67c4 storaged: use correct accumulate variable for publishing disk stats
In the publish function, the variable mAccumulate_pub is used to log
disk performance. However, the variable mAccumulate is used to log disk
stats. The variable mAccumulate is only populated during a stall event.
The publish function is used to log disk stats on a periodic timer,
therefore, it should not rely on stall events to log stats. Instead,
it should rely on the appropriately named mAccumulate_pub variable.

Test: storaged unit tests

Change-Id: I30e00f2c69618705d3f308630b7e023bfc5e384e
Signed-off-by: David Munoz Constantine <dmunozc@squareup.com>
2023-02-13 15:45:20 -08:00
..
binder/android/os
include storaged: use health HAL 2021-12-06 23:09:37 -08:00
tests Suppress clang-analyzer-security.FloatLoopCounter warnings 2023-01-11 14:21:46 -08:00
tools
Android.bp storage: Update health AIDL HAL to V2 2023-01-21 15:20:41 +08:00
EventLogTags.logtags
main.cpp storaged: ignore SIGPIPE 2020-03-18 13:53:15 -07:00
OWNERS storaged: update OWNERS 2018-04-11 18:50:14 -07:00
README.properties
storaged.cpp storaged: Fix deprecated usages of protobuf API. 2022-09-25 08:18:20 +00:00
storaged.proto
storaged.rc Replace writepid with task_profiles command for cgroup migration 2021-06-24 17:24:20 +00:00
storaged_diskstats.cpp storaged: use correct accumulate variable for publishing disk stats 2023-02-13 15:45:20 -08:00
storaged_info.cpp storaged: Fix bug in empty check 2021-12-08 10:15:04 -08:00
storaged_service.cpp Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00
storaged_uid_monitor.cpp storaged: replace LOG_TO() macros with LOG() 2020-01-10 17:10:58 -08:00
storaged_utils.cpp
uid_info.cpp Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00

ro.storaged.event.interval    # interval storaged scans for IO stats, in seconds
ro.storaged.event.perf_check  # check for time spent in event loop, in microseconds
ro.storaged.disk_stats_pub    # interval storaged publish disk stats, in seconds
ro.storaged.uid_io.interval   # interval storaged checks Per UID IO usage, in seconds
ro.storaged.uid_io.threshold  # Per UID IO usage limit, in bytes