From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx169.postini.com [74.125.245.169]) by kanga.kvack.org (Postfix) with SMTP id 14BBC6B004A for ; Fri, 24 Feb 2012 16:52:40 -0500 (EST) Received: by vbip1 with SMTP id p1so2630462vbi.14 for ; Fri, 24 Feb 2012 13:52:39 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20120222115320.GA3107@x61.redhat.com> <20120223150238.GA15427@dhcp231-144.rdu.redhat.com> <20120224151025.GA1848@localhost.localdomain> Date: Fri, 24 Feb 2012 23:52:38 +0200 Message-ID: Subject: Re: [PATCH] oom: add sysctl to enable slab memory dump From: Pekka Enberg Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Josef Bacik , Rafael Aquini , linux-mm@kvack.org, Randy Dunlap , Christoph Lameter , Matt Mackall , Rik van Riel , linux-kernel@vger.kernel.org On Fri, 24 Feb 2012, Josef Bacik wrote: >> Um well yeah, I'm rewriting a chunk of btrfs which was rapantly leaking = memory >> so the OOM just couldn't keep up with how much I was sucking down. =A0Th= is is >> strictly a developer is doing something stupid and needs help pointing o= ut what >> it is sort of moment, not a day to day OOM. On Fri, Feb 24, 2012 at 11:45 PM, David Rientjes wrot= e: > If you're debugging new kernel code and you realize that excessive amount > of memory is being consumed so that nothing can even fork, you may want t= o > try cat /proc/slabinfo before you get into that condition the next time > around, although I already suspect that you know the cache you're leaking= . > It doesn't mean we need to add hundreds of lines of code to the kernel. > Try kmemleak. Kmemleak is a wonderful tool but it's also pretty heavy-weight which makes it inconvenient in many cases. Pekka -- 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 internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org