Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761329AbZFKJwF (ORCPT ); Thu, 11 Jun 2009 05:52:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762328AbZFKJvp (ORCPT ); Thu, 11 Jun 2009 05:51:45 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:34677 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755166AbZFKJvo (ORCPT ); Thu, 11 Jun 2009 05:51:44 -0400 Subject: Re: [PATCH 1/2] SLUB: Out-of-memory diagnostics From: Pekka Enberg To: Mel Gorman Cc: linux-kernel@vger.kernel.org, cl@linux-foundation.org, Larry.Finger@lwfinger.net In-Reply-To: <20090611094728.GA7302@csn.ul.ie> References: <20090611094728.GA7302@csn.ul.ie> Date: Thu, 11 Jun 2009 12:51:44 +0300 Message-Id: <1244713904.17483.21.camel@penberg-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.24.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1510 Lines: 41 Hi Mel, On Thu, 2009-06-11 at 10:47 +0100, Mel Gorman wrote: > On Thu, Jun 11, 2009 at 11:43:46AM +0300, Pekka J Enberg wrote: > > From: Pekka Enberg > > > > As suggested by Mel Gorman, add out-of-memory diagnostics to the SLUB allocator > > to make debugging OOM conditions easier. > > Picky - make debugging page allocation failures easier. OOM in this > context might be conflated with the OOM-killer. > > > This patch helped hunt down a nasty > > OOM issue that popped up every now that was caused by SLUB debugging code which > > forced 4096 byte allocations to use order 1 pages even in the fallback case. > > > > An example print out looks like this: > > > > > > SLUB: Unable to allocate memory on node -1 (gfp=20) > > node -1 is an implementation detail. Can it print "current" instead? No > biggie, I know what it means and I suppose anyone debugging an allocation > failure will know too. I'd rather keep it as-is because as you say anyone debugging an allocation failure will know what it means. On Thu, 2009-06-11 at 10:47 +0100, Mel Gorman wrote: > gfp is in hex right so gfp=0x20? gfp=20 might have someone thinking it's > the decimal value. Fixed. Thanks! Pekka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/