Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756811Ab2BXKFa (ORCPT ); Fri, 24 Feb 2012 05:05:30 -0500 Received: from mail-tul01m020-f174.google.com ([209.85.214.174]:37827 "EHLO mail-tul01m020-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930Ab2BXKF2 convert rfc822-to-8bit (ORCPT ); Fri, 24 Feb 2012 05:05:28 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of penberg@gmail.com designates 10.182.48.36 as permitted sender) smtp.mail=penberg@gmail.com; dkim=pass header.i=penberg@gmail.com MIME-Version: 1.0 In-Reply-To: References: <20120222115320.GA3107@x61.redhat.com> <20120223152226.GA2014@x61.redhat.com> Date: Fri, 24 Feb 2012 12:05:27 +0200 X-Google-Sender-Auth: hhVzRI6wLD0wH8fOnw6HSzqr95A Message-ID: Subject: Re: [PATCH] oom: add sysctl to enable slab memory dump From: Pekka Enberg To: David Rientjes Cc: Rafael Aquini , linux-mm@kvack.org, Randy Dunlap , Christoph Lameter , Matt Mackall , Rik van Riel , Josef Bacik , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 871 Lines: 16 On Fri, Feb 24, 2012 at 12:03 PM, David Rientjes wrote: > I like how slub handles this when it can't allocate more slab with > slab_out_of_memory() and has the added benefit of still warning even with > __GFP_NORETRY that the oom killer is never called for. ?If there's really > a slab leak happening, there's a good chance that this diagnostic > information is going to be emitted by the offending cache at some point in > time if you're using slub. ?This could easily be extended to slab.c, so > it's even more reason not to include this type of information in the oom > killer. Works for me. Rafael? -- 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/