Add current and max thrashing levels in LmkKillOccurred reports
Thrashing threshold tuning requires collecting thrashing level data from
the field and correlating these levels with other indications of device
being non-responsive.
Include current and max thrashing levels in the lmkd kill reports. Max
thrashing level captures the highest level seen since the last kill report.
Bug: 194433891
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: If6dbe32a1faad55ac02a513144a535a16c09bf35
diff --git a/stats/atoms.proto b/stats/atoms.proto
index a69c9e1..552d5a3 100644
--- a/stats/atoms.proto
+++ b/stats/atoms.proto
@@ -4620,6 +4620,12 @@
// What triggered the LMK event.
optional Reason reason = 13;
+
+ // Current thrashing levels (workingset_refaults/filecache in %).
+ optional int32 thrashing = 14;
+
+ // Max thrashing levels (workingset_refaults/filecache in %).
+ optional int32 max_thrashing = 15;
}
/*