mm: mm_event: add special kernel allocation stat
authorMinchan Kim <minchan@google.com>
Mon, 6 Aug 2018 06:12:44 +0000 (15:12 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:01 +0000 (20:24 +0300)
commit194888a1d71e7167c977fd17682d7197c1ad2d21
tree99f50d638c9d335ff0475bc2a86d010a52c8597c
parentb0e795fb07b0dbd726c06367635903a1b18c3caf
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