mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mm/compaction: print current range where compaction work
It'd be useful to know current range where compaction work for detailed analysis. With it, we can know pageblock where we actually scan and isolate, and, how much pages we try in that pageblock and can guess why it doesn't become freepage with pageblock order roughly. Signed-off-by: Joonsoo Kim <[email protected]> Acked-by: 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]>
This commit is contained in:
parent
16c4a097a0
commit
e34d85f0e3
2 changed files with 29 additions and 10 deletions
|
|
@ -430,11 +430,12 @@ isolate_fail:
|
|||
|
||||
}
|
||||
|
||||
trace_mm_compaction_isolate_freepages(*start_pfn, blockpfn,
|
||||
nr_scanned, total_isolated);
|
||||
|
||||
/* Record how far we have got within the block */
|
||||
*start_pfn = blockpfn;
|
||||
|
||||
trace_mm_compaction_isolate_freepages(nr_scanned, total_isolated);
|
||||
|
||||
/*
|
||||
* If strict isolation is requested by CMA then check that all the
|
||||
* pages requested were isolated. If there were any failures, 0 is
|
||||
|
|
@ -590,6 +591,7 @@ isolate_migratepages_block(struct compact_control *cc, unsigned long low_pfn,
|
|||
unsigned long flags = 0;
|
||||
bool locked = false;
|
||||
struct page *page = NULL, *valid_page = NULL;
|
||||
unsigned long start_pfn = low_pfn;
|
||||
|
||||
/*
|
||||
* Ensure that there are not too many pages isolated from the LRU
|
||||
|
|
@ -750,7 +752,8 @@ isolate_success:
|
|||
if (low_pfn == end_pfn)
|
||||
update_pageblock_skip(cc, valid_page, nr_isolated, true);
|
||||
|
||||
trace_mm_compaction_isolate_migratepages(nr_scanned, nr_isolated);
|
||||
trace_mm_compaction_isolate_migratepages(start_pfn, low_pfn,
|
||||
nr_scanned, nr_isolated);
|
||||
|
||||
count_compact_events(COMPACTMIGRATE_SCANNED, nr_scanned);
|
||||
if (nr_isolated)
|
||||
|
|
|
|||
Loading…
Reference in a new issue