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)
commit7914b4ea4dcf93c79c8df31e0b673861035c2a62
treeaa6171136f19716579a38eb63e8b251811bfff60
parent9a87be5fa20456beb85306ee8b0b351241731a7e
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