mm: compaction: add missing kcompactd wakeup trace event
Add missing kcompactd wakeup trace event for proactive compaction, meanwhile use order = -1 and the highest zone index of the pgdat for the kcompactd wakeup trace event by proactive compaction. Link: https://lkml.kernel.org/r/cbf8097a2d8a1b6800991f2a21575550d3613ce6.1673342761.git.baolin.wang@linux.alibaba.com Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
1bfb7684db
commit
8fff8b6f8d
@ -2730,6 +2730,8 @@ int compaction_proactiveness_sysctl_handler(struct ctl_table *table, int write,
|
||||
continue;
|
||||
|
||||
pgdat->proactive_compact_trigger = true;
|
||||
trace_mm_compaction_wakeup_kcompactd(pgdat->node_id, -1,
|
||||
pgdat->nr_zones - 1);
|
||||
wake_up_interruptible(&pgdat->kcompactd_wait);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user