mm: introduce NR_UNRECLAIMABLE_PAGES

Introduce NR_UNRECLAIMABLE_PAGES memory counter which accounts
the pages that cannot be reclaimed under memory pressure.

Change-Id: I9afe50537b0d3c2e7ffc07916b23cce4329e3679
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
[guptap@codeaurora.org: split resident_page_types change]
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
This commit is contained in:
Vijayanand Jitta 2019-03-04 15:27:50 +05:30 • committed by Prakash Gupta
commit bfe3637f89
2 changed files with 6 additions and 0 deletions

View file

@ -259,6 +259,9 @@ enum node_stat_item {
NR_DIRTIED, /* page dirtyings since bootup */
NR_WRITTEN, /* page writings since bootup */
NR_KERNEL_MISC_RECLAIMABLE, /* reclaimable non-slab kernel pages */
#ifdef CONFIG_MM_STAT_UNRECLAIMABLE_PAGES
NR_UNRECLAIMABLE_PAGES,
#endif
NR_VM_NODE_STAT_ITEMS
};

View file

@ -1170,6 +1170,9 @@ const char * const vmstat_text[] = {
"nr_dirtied",
"nr_written",
"nr_kernel_misc_reclaimable",
#ifdef CONFIG_MM_STAT_UNRECLAIMABLE_PAGES
"nr_unreclaimable_pages",
#endif
/* enum writeback_stat_item counters */
"nr_dirty_threshold",