From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933827Ab1JDVOs (ORCPT ); Tue, 4 Oct 2011 17:14:48 -0400 Received: from dsl-67-204-24-19.acanac.net ([67.204.24.19]:46324 "EHLO mail.ellipticsemi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933642Ab1JDVOs (ORCPT ); Tue, 4 Oct 2011 17:14:48 -0400 Date: Tue, 4 Oct 2011 17:14:46 -0400 From: Nick Bowler To: Catalin Marinas Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] kmemleak: Report previously found leaks even after an error Message-ID: <20111004211446.GA19503@elliptictech.com> References: <20110929105940.10660.76130.stgit@e102109-lin.cambridge.arm.com> <20110929110239.10660.95998.stgit@e102109-lin.cambridge.arm.com> <20111004174548.GA16209@elliptictech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Elliptic Technologies Inc. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2011-10-04 21:50 +0100, Catalin Marinas wrote: > On 4 October 2011 18:45, Nick Bowler wrote: > > Cool, I'll try this out.  Kmemleak rarely stays alive for more than a > > few days on my desktop before shutting itself down due to an allocation > > failure, so this should be really handy. > > You can have a look at /proc/slabinfo and meminfo and see if there are > any really big leaks. In general the kmemleak objects number is higher > than the sum of all the other slab objects (but I haven't done any > statistics). Hopefully kmemleak doesn't leak memory :) (I should add > some simple checks though). I don't think the failures that cause kmemleak to shut down in my case are actually caused by a memory leak. The machine is rather old and has only 1G of RAM. I think kmemleak is just failing to allocate during a period of real memory pressure. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)