Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Linus Gasser <ineiti@gmx.net>
To: axp-list@redhat.com
Subject: Re: locating memory leak??
Date: Fri, 6 Sep 2002 09:04:26 +0200	[thread overview]
Message-ID: <200209060904.26626.ineiti@gmx.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0209052323140.1275-100000@localhost.localdomain>

On Friday 06 September 2002 08:26, John Weez wrote:
> Is there a good tool to aid in detecting which programs/processes might
> contain memory leaks??
>
> Hi i have a fresh install of 7.2. My alpha has 640 megs of ram and slowly
> it dwindles down from 520 megs free to 35 megs free even after i kill most
> of teh servers. TOP doesn;t show any memory intensive programs. Is there a
> better tool to aid in the search???

Hi,
this is a normal behaviour of the kernel. In order to speed up the computer, 
the kernel sets up a cache in the free space of the RAM. So while working on 
your computer, part of your harddisk gets it's place in the memory. If you 
look at /proc/meminfo, you will see something like:

        total:    used:    free:  shared: buffers:  cached:
Mem:  262139904 246239232 15900672        0 11919360 158683136
Swap: 312549376 138129408 174419968
MemTotal:       255996 kB
MemFree:         15528 kB
MemShared:           0 kB
Buffers:         11640 kB
Cached:          89732 kB
SwapCached:      65232 kB
Active:         148524 kB
Inactive:        76024 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       255996 kB
LowFree:         15528 kB
SwapTotal:      305224 kB
SwapFree:       170332 kB

You see that even though there is more or less no memory free in my computer, 
lots of it are going as a cache. This speeds up the computer!

Greets

Ineiti




      reply	other threads:[~2002-09-06  7:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-06  6:26 locating memory leak?? John Weez
2002-09-06  7:04 ` Linus Gasser [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox