public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: should I trust 'free' or 'top'?
@ 2002-02-04  9:41 Martin Knoblauch
  0 siblings, 0 replies; 12+ messages in thread
From: Martin Knoblauch @ 2002-02-04  9:41 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org; +Cc: wli

> Re: should I trust 'free' or 'top'?
> 
> 
> On Fri, Feb 01, 2002 at 11:24:16AM -0800, Adam McKenna wrote:
> > adam@xpdb:~$ uptime
> > 11:21am up 42 days, 18:53, 3 users, load average: 54.72, 21.21, 17.60
> > adam@xpdb:~$ free
> > total used free shared buffers cached
> > Mem: 5528464 5522744 5720 0 476 5349784
> > -/+ buffers/cache: 172484 5355980
> > Swap: 2939804 1302368 1637436
> > As you can see, there are supposedly 5.3 gigs of memory free (not counting
> > memory used for cache). However, the box is swapping like mad (about 10 megs
> > every 2 seconds according to vmstat) and the load is skyrocketing.
> 
> That 5.3GB is without kernel caches. I see 5.7MB...
> 

 And this is the problem. Caches should make the system behave better
and not get into its ways ...

 It is time that one of the approches gets accepted for the current
"stable" mainline. I do not care much which it is for 2.4.x. Both rmap
and -aa seem to fix most of the problems. Having one of them accepted
should make it easier to fix-up the remaining pathological cases.

Martin
-- 
------------------------------------------------------------------
Martin Knoblauch         |    email:  Martin.Knoblauch@TeraPort.de
TeraPort GmbH            |    Phone:  +49-89-510857-309
C+ITS                    |    Fax:    +49-89-510857-111
http://www.teraport.de   |    Mobile: +49-170-4904759

^ permalink raw reply	[flat|nested] 12+ messages in thread
* should I trust 'free' or 'top'?
@ 2002-02-01 19:24 Adam McKenna
  2002-02-01 19:50 ` Peter Makholm
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Adam McKenna @ 2002-02-01 19:24 UTC (permalink / raw)
  To: linux-kernel

There have been a lot of issues lately on our oracle servers with runaway
processes and swapping, enough that I feel compelled to report them here.  We
have tried all different kernels from 2.4.6 to 2.4.16, and the problem seems
to happen with all of them (but is more pronounced on certain kernels)

Basically, what happens is that after an unspecified amount of time, the
boxes will become unresponsve and start swapping wildly.  At that time, I
will login to the box to see what is going on, and I generally see something
like this:

adam@xpdb:~$ uptime
 11:21am  up 42 days, 18:53,  3 users,  load average: 54.72, 21.21, 17.60
adam@xpdb:~$ free
             total       used       free     shared    buffers     cached
Mem:       5528464    5522744       5720          0        476    5349784
-/+ buffers/cache:     172484    5355980
Swap:      2939804    1302368    1637436

As you can see, there are supposedly 5.3 gigs of memory free (not counting
memory used for cache).  However, the box is swapping like mad (about 10 megs
every 2 seconds according to vmstat) and the load is skyrocketing.

Now top, on the other hand, has a very different idea about the amount of
free memory:

CPU states:  0.0% user,  0.1% system,  0.1% nice,  0.0% idle
Mem:  5528464K av, 5523484K used,   4980K free,      0K shrd,    340K buff
Swap: 2939804K av, 1082008K used, 1857796K free                5351892K
cached

So, what am I supposed to believe?  Is 'free' a useful tool?  Is it providing
accurate results?  I'm constantly fielding questions from people who want to
know why a box is swapping, even though 'free' reports a whole bunch of
memory free, and I'm tired of not having an answer for them.

Thanks,

--Adam
-- 
Adam McKenna <adam@flounder.net>   | GPG: 17A4 11F7 5E7E C2E7 08AA
http://flounder.net/publickey.html |      38B0 05D0 8BF7 2C6D 110A

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-02-04  9:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-04  9:41 should I trust 'free' or 'top'? Martin Knoblauch
  -- strict thread matches above, loose matches on Subject: below --
2002-02-01 19:24 Adam McKenna
2002-02-01 19:50 ` Peter Makholm
2002-02-01 19:58 ` Alan Cox
2002-02-02  7:18   ` Buddy Lumpkin
2002-02-02 17:09     ` Denis Vlasenko
2002-02-02 17:11     ` Alan Cox
2002-02-02 19:58       ` David Lang
2002-02-02 20:35         ` Alan Cox
2002-02-01 20:11 ` William Lee Irwin III
2002-02-01 20:32   ` Adam McKenna
2002-02-01 21:41     ` William Lee Irwin III

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