mm: mm_event: add compaction stat
authorMinchan Kim <minchan@google.com>
Wed, 27 Jun 2018 13:04:37 +0000 (22:04 +0900)
committerPDO SCM Team <hudsoncm@motorola.com>
Fri, 15 Nov 2019 06:58:43 +0000 (00:58 -0600)
commitec1a809b8df3ec409a883d407ea5a57eae5649ab
treeaa6171136f19716579a38eb63e8b251811bfff60
parent0ae5e8ec252ec4baa6dbe5056c919b5f1d1e088f
mm: mm_event: add compaction stat

This patch adds compaction mm_event stat so that we could keep track
latency of compaction as well as count of the event.

Under heavy memory fragmentation, high-order page allocation(e.g.
fork, ION memory allocation) triggers compaction, which is
another major part of latency. Let's track it down, too.

Mot-CRs-fixed: (CR)

Bug: 80168800
Change-Id: Ia3da9324f123ba2542863eafaf72024b5351785b
Signed-off-by: Minchan Kim <minchan@google.com>
Reviewed-on: https://gerrit.mot.com/1453722
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
mm/compaction.c