From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760768AbXEQTZP (ORCPT ); Thu, 17 May 2007 15:25:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756228AbXEQTZC (ORCPT ); Thu, 17 May 2007 15:25:02 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:59297 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756157AbXEQTZB (ORCPT ); Thu, 17 May 2007 15:25:01 -0400 Date: Thu, 17 May 2007 12:24:54 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Peter Zijlstra cc: Matt Mackall , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Thomas Graf , David Miller , Andrew Morton , Daniel Phillips , Pekka Enberg Subject: Re: [PATCH 0/5] make slab gfp fair In-Reply-To: <1179429499.2925.26.camel@lappy> Message-ID: References: <20070514131904.440041502@chello.nl> <1179385718.27354.17.camel@twins> <20070517175327.GX11115@waste.org> <1179429499.2925.26.camel@lappy> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 May 2007, Peter Zijlstra wrote: > The proposed patch doesn't change how the kernel functions at this > point; it just enforces an existing rule better. Well I'd say it controls the allocation failures. And that only works if one can consider the system having a single zone. Lets say the system has two cpusets A and B. A allocs from node 1 and B allocs from node 2. Two processes one in A and one in B run on the same processor. Node 1 gets very low in memory so your patch kicks in and sets up the global memory emergency situation with the reserve slab. Now the process in B will either fail although it has plenty of memory on node 2. Or it may just clear the emergency slab and then the next critical alloc of the process in A that is low on memory will fail.