mm/compaction: add tracepoint to observe behaviour of compaction defer
authorJoonsoo Kim <[email protected]>
Wed, 11 Feb 2015 23:27:09 +0000 (15:27 -0800)
committerLinus Torvalds <[email protected]>
Thu, 12 Feb 2015 01:06:04 +0000 (17:06 -0800)
commit24e2716f63e613cf15d3beba3faa0711bcacc427
tree7ab8b73ff2977b76e4a3486730614999ea42e4d3
parent837d026d560c5ef26abeca0441713d82e4e82cad
mm/compaction: add tracepoint to observe behaviour of compaction defer

Compaction deferring logic is heavy hammer that block the way to the
compaction.  It doesn't consider overall system state, so it could prevent
user from doing compaction falsely.  In other words, even if system has
enough range of memory to compact, compaction would be skipped due to
compaction deferring logic.  This patch add new tracepoint to understand
work of deferring logic.  This will also help to check compaction success
and fail.

Signed-off-by: Joonsoo Kim <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/compaction.h
include/trace/events/compaction.h
mm/compaction.c