Re: 2.6.26-rc: nfsd hangs for a few sec

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mel Gorman <mel@...>
Cc: Alexander Beregalov <a.beregalov@...>, <kernel-testers@...>, kernel list <linux-kernel@...>, <linux-mm@...>, Lee Schermerhorn <lee.schermerhorn@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>, Hugh Dickins <hugh@...>, Nick Piggin <nickpiggin@...>, Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>, <bfields@...>, <neilb@...>, <linux-nfs@...>
Date: Saturday, June 21, 2008 - 8:18 pm

On Sat, 21 Jun 2008, Mel Gorman wrote:


Before the change we walk all zones of the zonelist.


After the change we walk only zones for GFP_KERNEL. Meaning no HIGHMEM 
and MOVABLE zones. Doesnt that mean that reclaim is limited to ZONE_DMA 
and ZONE_NORMAL? Is that really intended?

If not then the following patch should return us to old behavior:

---
 mm/vmscan.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: linux-2.6/mm/vmscan.c
===================================================================
--- linux-2.6.orig/mm/vmscan.c	2008-06-21 17:15:45.597627317 -0700
+++ linux-2.6/mm/vmscan.c	2008-06-21 17:17:16.273293260 -0700
@@ -1249,13 +1249,12 @@ static unsigned long shrink_zone(int pri
 static unsigned long shrink_zones(int priority, struct zonelist *zonelist,
 					struct scan_control *sc)
 {
-	enum zone_type high_zoneidx = gfp_zone(sc->gfp_mask);
 	unsigned long nr_reclaimed = 0;
 	struct zoneref *z;
 	struct zone *zone;
 
 	sc->all_unreclaimable = 1;
-	for_each_zone_zonelist(zone, z, zonelist, high_zoneidx) {
+	for_each_zone_zonelist(zone, z, zonelist, MAX_NR_ZONES - 1) {
 		if (!populated_zone(zone))
 			continue;
 		/*
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.26-rc: nfsd hangs for a few sec, Alexander Beregalov, (Sat Jun 21, 8:57 am)
Re: 2.6.26-rc: nfsd hangs for a few sec, Mel Gorman, (Sat Jun 21, 6:41 pm)
Re: 2.6.26-rc: nfsd hangs for a few sec, Alexander Beregalov, (Sat Jun 21, 10:10 pm)
Re: 2.6.26-rc: nfsd hangs for a few sec, Christoph Lameter, (Sat Jun 21, 8:18 pm)
Re: 2.6.26-rc: nfsd hangs for a few sec, Mel Gorman, (Sat Jun 21, 9:38 pm)
Re: 2.6.26-rc: nfsd hangs for a few sec, Christoph Lameter, (Sun Jun 22, 12:13 am)
Re: 2.6.26-rc: nfsd hangs for a few sec, Mel Gorman, (Sun Jun 22, 1:07 pm)
Re: 2.6.26-rc: nfsd hangs for a few sec, Christoph Lameter, (Sat Jun 21, 7:46 pm)
Re: 2.6.26-rc: nfsd hangs for a few sec, Linus Torvalds, (Sat Jun 21, 7:54 pm)
Re: 2.6.26-rc: nfsd hangs for a few sec, Linus Torvalds, (Sat Jun 21, 2:36 pm)