From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934368AbXEPU70 (ORCPT ); Wed, 16 May 2007 16:59:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760566AbXEPU7G (ORCPT ); Wed, 16 May 2007 16:59:06 -0400 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:44530 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1762085AbXEPU7E (ORCPT ); Wed, 16 May 2007 16:59:04 -0400 Date: Wed, 16 May 2007 13:59:04 -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: <1179348898.2912.57.camel@lappy> Message-ID: References: <20070514131904.440041502@chello.nl> <20070514161224.GC11115@waste.org> <1179164453.2942.26.camel@lappy> <1179170912.2942.37.camel@lappy> <1179250036.7173.7.camel@twins> <1179298771.7173.16.camel@twins> <1179343521.2912.20.camel@lappy> <1179346738.2912.39.camel@lappy> <1179348039.2912.48.camel@lappy> <1179348898.2912.57.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 Wed, 16 May 2007, Peter Zijlstra wrote: > > I do not see any distinction between DMA and regular memory. If we need > > DMA memory to complete the transaction then this wont work? > > If network relies on slabs that are cpuset constrained and the page > allocator reserves do not match that, then yes, it goes bang. So if I put a 32 bit network card in a 64 bit system -> bang? > > Is there some indicator somewhere that indicates that we are in trouble? I > > just see the ranks. > > Yes, and page->rank will only ever be 0 if the page was allocated with > ALLOC_NO_WATERMARKS, and that only ever happens if we're in dire > straights and entitled to it. > > Otherwise it'll be ALLOC_WMARK_MIN or somesuch. How we know that we are out of trouble? Just try another alloc and see? If that is the case then we may be failing allocations after the memory situation has cleared up.