The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* cpusets: only wakeup kswapd for zones in the current cpuset
@ 2006-02-08 18:11 Christoph Lameter
  2006-05-23  1:23 ` Paul Jackson
  0 siblings, 1 reply; 9+ messages in thread
From: Christoph Lameter @ 2006-02-08 18:11 UTC (permalink / raw)
  To: linux-kernel


---------- Forwarded message ----------
Date: Wed, 8 Feb 2006 09:45:03 -0800 (PST)
From: Christoph Lameter <clameter@engr.sgi.com>
To: akpm@osdl.org
Cc: pj@sgi.com
Subject: cpusets: only wakeup kswapd for zones in the current cpuset

If we get under some memory pressure in a cpuset (we only scan zones
that are in the cpuset for memory) then kswapd is woken
up for all zones. This patch only wakes up kswapd in zones that are
part of the current cpuset.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

Index: linux-2.6.16-rc2/mm/page_alloc.c
===================================================================
--- linux-2.6.16-rc2.orig/mm/page_alloc.c	2006-02-02 22:03:08.000000000 -0800
+++ linux-2.6.16-rc2/mm/page_alloc.c	2006-02-08 00:05:09.000000000 -0800
@@ -923,7 +923,8 @@ restart:
 		goto got_pg;
 
 	do {
-		wakeup_kswapd(*z, order);
+		if (cpuset_zone_allowed(*z, gfp_mask))
+			wakeup_kswapd(*z, order);
 	} while (*(++z));
 
 	/*


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-05-23 16:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-08 18:11 cpusets: only wakeup kswapd for zones in the current cpuset Christoph Lameter
2006-05-23  1:23 ` Paul Jackson
2006-05-23  1:59   ` Christoph Lameter
2006-05-23  2:22     ` Paul Jackson
2006-05-23  2:28       ` Christoph Lameter
2006-05-23  6:35         ` [PATCH] cpuset: remove extra cpuset_zone_allowed check in __alloc_pages Chris Wright
2006-05-23  6:35           ` Paul Jackson
2006-05-23 16:29           ` Christoph Lameter
2006-05-23 16:38             ` Paul Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox