Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 21 Jul 2002 10:20:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 21 Jul 2002 10:20:02 -0400 Received: from mail.s3.kth.se ([130.237.48.5]:35336 "EHLO elixir.e.kth.se") by vger.kernel.org with ESMTP id ; Sun, 21 Jul 2002 10:20:01 -0400 To: linux-kernel@vger.kernel.org Subject: Re: memory leak? References: From: mru@users.sourceforge.net (=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=) Date: 21 Jul 2002 16:23:06 +0200 In-Reply-To: Rik van Riel's message of "Sun, 21 Jul 2002 11:19:27 -0300 (BRT)" Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 967 Lines: 22 Rik van Riel writes: > > I noticed that doing lots or file accesses causes the used memory to > > increase, *after* subtracting buffers/cache. Here is an example: > > > Here 24 MB of memory have been used up. Repeating the du seems to have > > little effect. This directory has ~3200 subdirs and 13400 files. > > > Is this a memory leak? I get the same results with ext2, ext3, > > reiserfs and nfs. > > See /proc/slabinfo for the numbers, the memory is most likely > being used in the dentry_cache, the inode_cache and in buffer > heads. > > This memory will be reclaimed when the system needs it. Does this mean that free and /proc/meminfo are incorrect? -- M?ns Rullg?rd mru@users.sf.net - 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/