Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 21 Jul 2002 10:07:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 21 Jul 2002 10:07:41 -0400 Received: from admin.nni.com ([216.107.0.51]:34568 "EHLO admin.nni.com") by vger.kernel.org with ESMTP id ; Sun, 21 Jul 2002 10:07:41 -0400 Date: Mon, 22 Jul 2002 10:08:40 -0400 From: Andrew Rodland To: mru@users.sourceforge.net (M) Cc: linux-kernel@vger.kernel.org Subject: Re: memory leak? Message-Id: <20020722100840.2599c2f3.arodland@noln.com> In-Reply-To: References: X-Mailer: Sylpheed version 0.7.8claws55 (GTK+ 1.2.10; i386-debian-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1836 Lines: 46 On 21 Jul 2002 16:00:09 +0200 mru@users.sourceforge.net (M) wrote: > > I noticed that doing lots or file accesses causes the used memory to > increase, *after* subtracting buffers/cache. Here is an example: > > $ free > total used free shared buffers > cached > Mem: 773776 30024 743752 0 1992 > 10424-/+ buffers/cache: 17608 756168 > Swap: 81904 0 81904 > $ du > /dev/null > $ free > total used free shared buffers > cached > Mem: 773776 78008 695768 0 26328 > 10472-/+ buffers/cache: 41208 732568 > Swap: 81904 0 81904 > > 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. > > After a few hours use about 200 MB are used, apperently for > nothing. Killing all processed and unmounting file systems doesn't > help. > > Is this a memory leak? I get the same results with ext2, ext3, > reiserfs and nfs. wow! I've been seeing this, too, but I thought I was just reading something wrong. Especially after my nightly cron jobs (which involve a 'find /') run, I'll often find myself with 80% of physical RAM used, and nobody (as far as 'top' can see) using it. You didn't specify which kernel you're using, but I'm running 2.4.19-rc1-ac1 plus some patches, and I've seen it since at least about pre9-ac*. I might try to narrow it down more if it could be useful. --hobbs - 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/