mm: mm_event: add special kernel allocation stat
authorMinchan Kim <minchan@google.com>
Mon, 6 Aug 2018 06:12:44 +0000 (15:12 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:07 +0000 (17:37 +0800)
commitd0ed86f8db092af704d10b33242d56bf663cccc2
tree1522e01572cc9ee3619d086769b099f9ff42f0d7
parent06ea15dc6d7fb7fe263d7dcd6d650dfb40f8fdcf
mm: mm_event: add special kernel allocation stat

Record the count of special page allocation on the process context.

This patch aims for accounting of special page allocation which
consumed a lot by android system.
At this moment, ION system heap is good candidate(it could cover
other kernel allocation in future).
With that, we could keep tracking burst kernel allocation owner
so that it would be useful to find places caused by lmk, reclaim,
compaction latency.

Mot-CRs-fixed: (CR)

Bug: 80168800
Change-Id: I5942fd940d98baa2eb814f66b076cb37ecd3b4aa
Signed-off-by: Minchan Kim <minchan@google.com>
Reviewed-on: https://gerrit.mot.com/1453724
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
drivers/staging/android/ion/ion_page_pool.c
include/linux/mm_event.h
include/trace/events/mm_event.h
mm/mm_event.c