the answer (provided by several people) to my Q was that the system is using
the extra unused mem for disk caching.  The message below is Tzafrir's
suggestion for telling TRUE memory usage (as in, not including the buffering
that is going on).  I include it for the sake of the list archives (maybe
someone will find it helpful).

- N

----- Original Message -----
From: "Tzafrir Cohen" <[EMAIL PROTECTED]>
To: "Nathan Fain" <[EMAIL PROTECTED]>
Sent: Sunday, May 28, 2000 2:26 PM
Subject: Re: Q: Interesting memory usage stat's


> On Sun, 28 May 2000, Nathan Fain wrote:
>
> > so... do you know of a way to tell TRUE memory usage? Buy that I mean
what
> > memory is being used by the process and kernel and not necessarily that
used
> > for disk caching.
>
> I guess you can calculate it as <total> - <cahce> - <buff>
> Alternativly - write a script that will parse /proc/[1-9]*/stat and sum
> for all processses
>
> > Is this setup default for all installations?
>
> I have no idea if there is a way to set limits for those usages. Try going
> over the kernel documentation, I guess.
>
> I quick browsing of the files under /proc shows that
> /proc/sys/vm/pagecache and /proc/sys/vm/pagecache are writable by root.
>
> > thanks
> >
> > ----- Original Message -----
> > From: "Tzafrir Cohen" <[EMAIL PROTECTED]>
> > To: "Nathan Fain" <[EMAIL PROTECTED]>
> > Sent: Sunday, May 28, 2000 1:02 PM
> > Subject: Re: Q: Interesting memory usage stat's
> >
> >
> > > On Sun, 28 May 2000, Nathan Fain wrote:
> > >
> > > > Just recently I started generating graph's of system resource usage
on
> > some
> > > > of my linux machines.On a certain group of machines I noticed a
steady
> > > > level of between 90% and 100% memory usage (while at the same time,
swap
> > > > usage remains flat at 0%).Here is an example of what top shows on
this
> > Red
> > > > Hat machine:
> > > >
> > > > 2:43amup 289 days, 11:38,  1 user,  load average: 0.02, 0.01, 0.00
> > > > 44 processes: 43 sleeping, 1 running, 0 zombie, 0 stopped
> > > > CPU states:0.0% user,0.4% system,  0.0% nice, 99.4% idle
> > > > Mem:1036248K av, 900928K used, 135320K free,26896K shrd, 321320K
buff
> > >
^^^^^^^^^^^^
> > > > Swap: 514040K av, 2056K used, 511984K free              548796K
cached
> > >                                                         ^^^^^^^^^^^^^^
> > > >
> > > > Looking at the graph I jumped but then after investigation and
seeing
> > things
> > > > like the above I'm assuming this is expected behavior.But the Q's
are:
> > >
> > > It is: your system is using unneeded memory for disk caching, buffers,
> > > etc.
> > >
> > > --
> > > Tzafrir Cohen
> > > mailto:[EMAIL PROTECTED]
> > > http://www.technion.ac.il/~tzafrir
> > >
> > >
> > >
> >
> >
>
> --
> Tzafrir Cohen
> mailto:[EMAIL PROTECTED]
> http://www.technion.ac.il/~tzafrir
>
>


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to