From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with SMTP id 53BF66B0092 for ; Wed, 19 Jan 2011 18:07:34 -0500 (EST) Date: Wed, 19 Jan 2011 17:07:28 -0600 (CST) From: Christoph Lameter Subject: Re: [patch] mm: fix deferred congestion timeout if preferred zone is not allowed In-Reply-To: Message-ID: References: <20110119200625.GD15568@one.firstfloor.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: David Rientjes Cc: Andi Kleen , Minchan Kim , Andrew Morton , Mel Gorman , Johannes Weiner , Wu Fengguang , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Rik van Riel , Jens Axboe , linux-mm@kvack.org List-ID: On Wed, 19 Jan 2011, David Rientjes wrote: > On Wed, 19 Jan 2011, Andi Kleen wrote: > > > cpusets didn't exist when I designed that. But the idea was that > > the kernel has a first choice ("hit") and any other node is a "miss" > > that may need investigation. So yes I would consider cpuset config as an > > intention too and should be counted as hit/miss. > > > > Ok, so there's no additional modification that needs to be made with the > patch (other than perhaps some more descriptive documentation of a > NUMA_HIT and NUMA_MISS). When the kernel passes all zones into the page > allocator, it's relying on cpusets to reduce that zonelist to only > allowable nodes by using ALLOC_CPUSET. If we can allocate from the first > zone allowed by the cpuset, it will be treated as a hit; otherwise, it > will be treated as a miss. That's better than treating everything as a > miss when the cpuset doesn't include the first node. To be more specific: It is the first zone of the zonelist that the cpuset context provided for allocation from the node that the process is currently executing on. -- 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/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org