mm: compaction: add trace event for fast freepages isolation
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Thu, 25 May 2023 12:54:00 +0000 (20:54 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Jun 2023 23:25:43 +0000 (16:25 -0700)
commit447ba88658faa8dbfd29d557daa38b7d88f460ec
tree7fd79bfd55176801ce5f106d4fda5361206e7913
parent8b71b499ff98fdcda7efefc146841a8b4d26813d
mm: compaction: add trace event for fast freepages isolation

The fast_isolate_freepages() can also isolate freepages, but we can not
know the fast isolation efficiency to understand the fast isolation
pressure.  So add a trace event to show some numbers to help to understand
the efficiency for fast freepages isolation.

Link: https://lkml.kernel.org/r/78d2932d0160d122c15372aceb3f2c45460a17fc.1685018752.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/trace/events/compaction.h
mm/compaction.c