Memory use: which process is consuming it all?

Memory use: which process is consuming it all?

Post by Ableson Al » Fri, 21 Mar 1997 04:00:00



I'm running Slackware 2.0.0, and am finding that ~9 megs of memory are
already used when I boot up.  When I run X and Netscape, that has gone up
to 30 megs.  (These numbers come from 'free'.)  Is this normal?  (It
sounds way too high to me!)  Also, if it _is_ true, why doesn't the memory
usage show upusing ps -amp (all processes + memory info)

eg: right now free gives
             total       used       free     shared    buffers     cached
Mem:         30892      30380        512      21988       1428      12668
-/+ buffers:            16284      14608
Swap:        34268          0      34268

and ps -amp only lists X and Netscape as using over 1 meg (1.4 and 2.6
respectively).  The cache setting in Netscae is set to 3 meg, so it
shouldn't be the problem.  Any ideas/hints would be most appreciated!

Thanks in advance,

Alan Ableson

 
 
 

Memory use: which process is consuming it all?

Post by Mark Ha » Fri, 21 Mar 1997 04:00:00


: I'm running Slackware 2.0.0, and am finding that ~9 megs of memory are
: already used when I boot up.  When I run X and Netscape, that has gone up

yes, and this is good.  unused memory is wasted memory, and Linux
is very good at preventing waste.  the 'free' column is normally
useless, and should be low.  when other memory demands crop up,
the kernel scavenges pages from the other major users of memory,
mainly the page-cache.  it can do this very quickly, since the kernel
works to ensure that only a small fraction of page-cache pages are
dirty; the clean ones can be scavenged with no additional work.

regards, mark hahn.
--

                                        http://neurocog.lrdc.pitt.edu/~hahn/

 
 
 

Memory use: which process is consuming it all?

Post by Bob Hau » Sat, 22 Mar 1997 04:00:00




Quote:> I'm running Slackware 2.0.0, and am finding that ~9 megs of memory are
> already used when I boot up.  
>              total       used       free     shared    buffers     cached
> Mem:         30892      30380        512      21988       1428      12668
> -/+ buffers:            16284      14608
> Swap:        34268          0      34268

This is perfectly normal for any OS with a decent dynamic disk
cache.  You have 14 MB in cache and buffers, which the kernel can
make available in a flash if it needs RAM.  Do not adjust your
set!

It is better to use memory for cache than to have it be free and
do nothing for you.

---

 Wasatch Communications Group               http://www.wasatch.com