Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754032AbYLHWdh (ORCPT ); Mon, 8 Dec 2008 17:33:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752949AbYLHWda (ORCPT ); Mon, 8 Dec 2008 17:33:30 -0500 Received: from qw-out-2122.google.com ([74.125.92.24]:7583 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752599AbYLHWd3 (ORCPT ); Mon, 8 Dec 2008 17:33:29 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=O0cwV7cKqYIVwz+3hx0+XkiNND7RjslVPDTngj4krAtTFeoep67M2SmdloKg9TdTlf ezNb/0RlpKCT8BCXh3rBmzu5zsl2W/6IOlouPwDRrVgpCOx68nkdQ7cAa6Rq/r7M9JBw t1egUrTjf60DnvB+4h0wUQkWTMiWrjf+s2g3A= Message-ID: Date: Mon, 8 Dec 2008 23:33:27 +0100 From: "=?ISO-8859-1?Q?Fr=E9d=E9ric_Weisbecker?=" To: "Larry Finger" Subject: Re: How to check for memory leaks Cc: LKML In-Reply-To: <493D9D24.8080406@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <493D9D24.8080406@lwfinger.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 23 2008/12/8 Larry Finger : > What is the best way to check if there is a memory leak? > > If I start a ping running on my system using the rtl8187 driver, and nothing > else active on my system, I see an increase in the "slab" value in /proc/meminfo > of about 65 kB/minute. Is this indicative of a memory leak? When I run the same > test with p54usb, the increase is only 20 kB/min. > > Thanks, > > Larry Hi, You could have a look on kmemleak: http://www.procode.org/kmemleak/ It's up to date version is on the arm development git branch (topic kmemleak): http://www.linux-arm.org/git?p=linux-2.6.git;a=summary -- 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/