linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Yasunori Goto <y-goto@jp.fujitsu.com>
To: linux-mm <linux-mm@kvack.org>,
	Linux Kernel ML <linux-kernel@vger.kernel.org>,
	Linux Hotplug Memory Support <lhms-devel@lists.sourceforge.net>
Cc: Joel Schopp <jschopp@austin.ibm.com>
Subject: [Patch] New zone ZONE_EASY_RECLAIM take 4. (mod_page_state info)[7/8]
Date: Tue, 20 Dec 2005 17:53:31 +0900	[thread overview]
Message-ID: <20051220173120.1B16.Y-GOTO@jp.fujitsu.com> (raw)

This patch is add easy reclaim zone information for mod_page_state().

This is new patch at take 4.

Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>


--
Index: zone_reclaim/include/linux/page-flags.h
===================================================================
--- zone_reclaim.orig/include/linux/page-flags.h	2005-12-15 19:48:30.000000000 +0900
+++ zone_reclaim/include/linux/page-flags.h	2005-12-15 21:01:09.000000000 +0900
@@ -109,7 +109,8 @@ struct page_state {
 	unsigned long pswpin;		/* swap reads */
 	unsigned long pswpout;		/* swap writes */
 
-	unsigned long pgalloc_high;	/* page allocations */
+	unsigned long pgalloc_easy_reclaim; /* page allocations */
+	unsigned long pgalloc_high;
 	unsigned long pgalloc_normal;
 	unsigned long pgalloc_dma32;
 	unsigned long pgalloc_dma;
@@ -121,22 +122,26 @@ struct page_state {
 	unsigned long pgfault;		/* faults (major+minor) */
 	unsigned long pgmajfault;	/* faults (major only) */
 
-	unsigned long pgrefill_high;	/* inspected in refill_inactive_zone */
+	unsigned long pgrefill_easy_reclaim;/* inspected in refill_inactive_zone */
+	unsigned long pgrefill_high;
 	unsigned long pgrefill_normal;
 	unsigned long pgrefill_dma32;
 	unsigned long pgrefill_dma;
 
-	unsigned long pgsteal_high;	/* total highmem pages reclaimed */
+	unsigned long pgsteal_easy_reclaim; /* total pages reclaimed */
+	unsigned long pgsteal_high;
 	unsigned long pgsteal_normal;
 	unsigned long pgsteal_dma32;
 	unsigned long pgsteal_dma;
 
-	unsigned long pgscan_kswapd_high;/* total highmem pages scanned */
+	unsigned long pgscan_kswapd_easy_reclaim; /* total pages scanned */
+	unsigned long pgscan_kswapd_high;
 	unsigned long pgscan_kswapd_normal;
 	unsigned long pgscan_kswapd_dma32;
 	unsigned long pgscan_kswapd_dma;
 
-	unsigned long pgscan_direct_high;/* total highmem pages scanned */
+	unsigned long pgscan_direct_easy_reclaim;/* total pages scanned */
+	unsigned long pgscan_direct_high;
 	unsigned long pgscan_direct_normal;
 	unsigned long pgscan_direct_dma32;
 	unsigned long pgscan_direct_dma;
@@ -183,7 +188,9 @@ extern void __mod_page_state_offset(unsi
 #define state_zone_offset(zone, member)					\
 ({									\
 	unsigned offset;						\
-	if (is_highmem(zone))						\
+	if (is_easy_reclaim(zone))					\
+		offset = offsetof(struct page_state, member##_easy_reclaim);\
+	else if (is_highmem(zone))					\
 		offset = offsetof(struct page_state, member##_high);	\
 	else if (is_normal(zone))					\
 		offset = offsetof(struct page_state, member##_normal);	\

-- 
Yasunori Goto 


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

                 reply	other threads:[~2005-12-20  8:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051220173120.1B16.Y-GOTO@jp.fujitsu.com \
    --to=y-goto@jp.fujitsu.com \
    --cc=jschopp@austin.ibm.com \
    --cc=lhms-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox