android_system_core/storaged
David Anderson 0026a14ff2 storaged: Don't duplicate uid_records from proto files.
It is possible for storaged to load the same saved proto file multiple
times, for example, if system_server crashes. In this case we do not
want to fill io_history with duplicate entries. This patch elides
records for which an app+userid record already exists for the same
timestamp.

Bug: 111578975
Test: gtest storaged_test.load_uid_io_proto
Change-Id: I87bc3e37d6464079cece03b5852285d79067b935
Merged-In: I87bc3e37d6464079cece03b5852285d79067b935
2018-08-21 09:20:33 -07:00
..
binder/android/os Provide Recent Disk Perf via IStoraged 2018-01-08 19:06:22 -08:00
include storaged: Don't duplicate uid_records from proto files. 2018-08-21 09:20:33 -07:00
tests storaged: Don't duplicate uid_records from proto files. 2018-08-21 09:20:33 -07:00
tools storaged: add parser for dumpsys storaged output 2017-08-09 15:25:19 -07:00
Android.bp storaged: fix headers. 2018-07-17 15:36:09 -07:00
EventLogTags.logtags storaged: change uid_io reporting 2017-01-30 14:22:49 -08:00
main.cpp Merge "storaged: remove unused includes" am: 0289f35b83 2018-04-06 13:30:11 -07:00
OWNERS storaged: update OWNERS 2018-04-11 18:50:14 -07:00
README.properties storaged: read emmc health data from sysfs 2017-04-03 16:48:14 +00:00
storaged.cpp storaged: Don't duplicate uid_records from proto files. 2018-08-21 09:20:33 -07:00
storaged.proto storaged: align buffer address and size for direct_io 2017-12-13 15:54:55 -08:00
storaged.rc Merge "storaged: lower capabilities in init" am: 183b575e78 2018-04-12 09:41:00 -07:00
storaged_diskstats.cpp storaged: use health HAL to read DiskStats. 2018-01-16 19:24:54 -08:00
storaged_info.cpp storaged: fix divide-by-zero when updating history 2018-03-27 14:51:28 -07:00
storaged_service.cpp Provide Recent Disk Perf via IStoraged 2018-01-08 19:06:22 -08:00
storaged_uid_monitor.cpp storaged: Don't duplicate uid_records from proto files. 2018-08-21 09:20:33 -07:00
storaged_utils.cpp storaged: split proto file into multiple CE areas 2017-10-31 14:31:13 -07:00
uid_info.cpp storaged: use AIDL to generate storaged binder calls. 2017-10-18 13:50:03 -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