Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfe3637f authored by Vijayanand Jitta's avatar Vijayanand Jitta Committed by Prakash Gupta
Browse files

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: default avatarVijayanand Jitta <vjitta@codeaurora.org>
[guptap@codeaurora.org: split resident_page_types change]
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent c99ba85d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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
};

+3 −0
Original line number Diff line number Diff line
@@ -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",