diff options
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r-- | mm/vmstat.c | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index d7826af2fb07..9343227c5c60 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -619,8 +619,14 @@ const struct seq_operations pagetypeinfo_op = { | |||
619 | static const char * const vmstat_text[] = { | 619 | static const char * const vmstat_text[] = { |
620 | /* Zoned VM counters */ | 620 | /* Zoned VM counters */ |
621 | "nr_free_pages", | 621 | "nr_free_pages", |
622 | "nr_inactive", | 622 | "nr_inactive_anon", |
623 | "nr_active", | 623 | "nr_active_anon", |
624 | "nr_inactive_file", | ||
625 | "nr_active_file", | ||
626 | #ifdef CONFIG_UNEVICTABLE_LRU | ||
627 | "nr_unevictable", | ||
628 | "nr_mlock", | ||
629 | #endif | ||
624 | "nr_anon_pages", | 630 | "nr_anon_pages", |
625 | "nr_mapped", | 631 | "nr_mapped", |
626 | "nr_file_pages", | 632 | "nr_file_pages", |
@@ -675,6 +681,16 @@ static const char * const vmstat_text[] = { | |||
675 | "htlb_buddy_alloc_success", | 681 | "htlb_buddy_alloc_success", |
676 | "htlb_buddy_alloc_fail", | 682 | "htlb_buddy_alloc_fail", |
677 | #endif | 683 | #endif |
684 | #ifdef CONFIG_UNEVICTABLE_LRU | ||
685 | "unevictable_pgs_culled", | ||
686 | "unevictable_pgs_scanned", | ||
687 | "unevictable_pgs_rescued", | ||
688 | "unevictable_pgs_mlocked", | ||
689 | "unevictable_pgs_munlocked", | ||
690 | "unevictable_pgs_cleared", | ||
691 | "unevictable_pgs_stranded", | ||
692 | "unevictable_pgs_mlockfreed", | ||
693 | #endif | ||
678 | #endif | 694 | #endif |
679 | }; | 695 | }; |
680 | 696 | ||
@@ -688,7 +704,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, | |||
688 | "\n min %lu" | 704 | "\n min %lu" |
689 | "\n low %lu" | 705 | "\n low %lu" |
690 | "\n high %lu" | 706 | "\n high %lu" |
691 | "\n scanned %lu (a: %lu i: %lu)" | 707 | "\n scanned %lu (aa: %lu ia: %lu af: %lu if: %lu)" |
692 | "\n spanned %lu" | 708 | "\n spanned %lu" |
693 | "\n present %lu", | 709 | "\n present %lu", |
694 | zone_page_state(zone, NR_FREE_PAGES), | 710 | zone_page_state(zone, NR_FREE_PAGES), |
@@ -696,7 +712,10 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, | |||
696 | zone->pages_low, | 712 | zone->pages_low, |
697 | zone->pages_high, | 713 | zone->pages_high, |
698 | zone->pages_scanned, | 714 | zone->pages_scanned, |
699 | zone->nr_scan_active, zone->nr_scan_inactive, | 715 | zone->lru[LRU_ACTIVE_ANON].nr_scan, |
716 | zone->lru[LRU_INACTIVE_ANON].nr_scan, | ||
717 | zone->lru[LRU_ACTIVE_FILE].nr_scan, | ||
718 | zone->lru[LRU_INACTIVE_FILE].nr_scan, | ||
700 | zone->spanned_pages, | 719 | zone->spanned_pages, |
701 | zone->present_pages); | 720 | zone->present_pages); |
702 | 721 | ||
@@ -733,10 +752,12 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, | |||
733 | seq_printf(m, | 752 | seq_printf(m, |
734 | "\n all_unreclaimable: %u" | 753 | "\n all_unreclaimable: %u" |
735 | "\n prev_priority: %i" | 754 | "\n prev_priority: %i" |
736 | "\n start_pfn: %lu", | 755 | "\n start_pfn: %lu" |
756 | "\n inactive_ratio: %u", | ||
737 | zone_is_all_unreclaimable(zone), | 757 | zone_is_all_unreclaimable(zone), |
738 | zone->prev_priority, | 758 | zone->prev_priority, |
739 | zone->zone_start_pfn); | 759 | zone->zone_start_pfn, |
760 | zone->inactive_ratio); | ||
740 | seq_putc(m, '\n'); | 761 | seq_putc(m, '\n'); |
741 | } | 762 | } |
742 | 763 | ||