Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 30 Mar 2001 04:44:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 30 Mar 2001 04:44:50 -0500 Received: from mandrakesoft.mandrakesoft.com ([216.71.84.35]:36936 "EHLO mandrakesoft.mandrakesoft.com") by vger.kernel.org with ESMTP id ; Fri, 30 Mar 2001 04:44:37 -0500 Date: Fri, 30 Mar 2001 03:43:46 -0600 (CST) From: Jeff Garzik To: Jaswinder Singh cc: linux-kernel@vger.kernel.org, Linus Torvalds , Jamey Hicks , Stephen L Johnson Subject: Re: Memory leak in the ramfs file system In-Reply-To: <022101bfd4af$dbb068c0$bba6b3d0@Toshiba> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Jun 2000, Jaswinder Singh wrote: > > What does /proc/slabinfo say? The most likely leak is a dentry leak or > > an inode leak, and both of those should be fairly easy to see in the > > slab info (dentry_cache and inode_cache respectively). > > > > I am attaching details before and during my application . > > Mainly changes are in dentry_cache and inode_cache , but i am attaching > whole /proc/slabinfo for your reference. Would it be possible for you to attached a 'before' picture of slabinfo, as well as 'after'? > > Obviously, it could be a data page leak too, but such a leak should be > > easy to see by creating a few big files and deleting them.. > > > > Linus > > I am also facing one more problem with ramfs. > > du and df shows 0 , so i am also attaching its output. I don't recall how du works exactly... if it uses stat(2), it should not be broken AFAIK. As for 'df', that will definitely show zero, because ramfs does not do filesystem accounting in its present form. You might consider trying a modified version of ramfs, as found in Alan Cox's 'ac' patchkit. This patchkit includes a modified ramfs which supports limiting filesystem size, but more importantly (for you), it should make 'df' work again. Jeff - 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/