Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344781
b: refs/heads/master
c: 397487d
h: refs/heads/master
i:
  344779: fde54a1
v: v3
  • Loading branch information
Mel Gorman committed Dec 11, 2012
1 parent 342fa40 commit a19dcd6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b2a2d4a18fffac3c4872021529b0657896db788
refs/heads/master: 397487db696cae0b026a474a5cd66f4e372995e6
2 changes: 2 additions & 0 deletions trunk/include/linux/vm_event_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT,
PGMIGRATE_SUCCESS, PGMIGRATE_FAIL,
#endif
#ifdef CONFIG_COMPACTION
COMPACTMIGRATE_SCANNED, COMPACTFREE_SCANNED,
COMPACTISOLATED,
COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS,
#endif
#ifdef CONFIG_HUGETLB_PAGE
Expand Down
8 changes: 8 additions & 0 deletions trunk/mm/compaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ static unsigned long isolate_freepages_block(struct compact_control *cc,
if (blockpfn == end_pfn)
update_pageblock_skip(cc, valid_page, total_isolated, false);

count_vm_events(COMPACTFREE_SCANNED, nr_scanned);
if (total_isolated)
count_vm_events(COMPACTISOLATED, total_isolated);

return total_isolated;
}

Expand Down Expand Up @@ -646,6 +650,10 @@ isolate_migratepages_range(struct zone *zone, struct compact_control *cc,

trace_mm_compaction_isolate_migratepages(nr_scanned, nr_isolated);

count_vm_events(COMPACTMIGRATE_SCANNED, nr_scanned);
if (nr_isolated)
count_vm_events(COMPACTISOLATED, nr_isolated);

return low_pfn;
}

Expand Down
3 changes: 3 additions & 0 deletions trunk/mm/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,9 @@ const char * const vmstat_text[] = {
"pgmigrate_fail",
#endif
#ifdef CONFIG_COMPACTION
"compact_migrate_scanned",
"compact_free_scanned",
"compact_isolated",
"compact_stall",
"compact_fail",
"compact_success",
Expand Down

0 comments on commit a19dcd6

Please sign in to comment.