Well I agree with Richard, OK proc filesystem gathers statistics ( anybody knows after 
how much
time it polls for stat ).
In man of top, there is no reference to /proc/meminfo while in free it is 
there...because man proc
also says that it
is giving you a visual aid for /dev/kmem(kernel data-structures).
Man of top only talks about a configuration file /etc/toprc
man  of top describes it as :
       top  provides  an  ongoing  look at processor activity in real time.  It 
displays a listing
of the most CPU-intensive
       tasks on the system, and can provide an interactive interface for manipulating 
processes.
It can sort the  tasks  by
       CPU  usage,  memory  usage  and runtime.  can be better configured than the 
standard top
from the procps suite.
        Most features can either be selected by an interactive command or by 
specifying the feature
in the personal  or
        system-wide  configuration file. See below for more information.
while description of free is :
       free  displays the total amount of free and used physical and swap memory in 
the system, as
well as the shared memory   and buffers used by the kernel.

I think now  that top is doing for the processor ( related to tasks and processes ) 
while free goes
for memory works.
comments welcomed....I know I am too much on to the man pages.

- GAURAV.


Richard Adams wrote:

> On Wed, 19 Jan 2000,  Ray Olszewski wrote about,  Re: Detecting Zombies running on 
>the system?:
> > At 05:13 PM 1/19/00 +0000, Richard Adams wrote::
> > >> Is there anyways to detect any Zombie processes running on the system?  Is
> > >> there a way to grep for em in the `ps aux` output?
> > >
> > >One word tells all;
> > >
> > >top
> >
> >
> > Actually, quite a bit less than "all". In particular, top doesn't report the
> > true amount of available RAM, that is, the amount available including cache
> > and buffers. Its reporting is equivalent to only the first of the two lines
> > that "free" reports. Those numbers are VERY misleading, especially on a
> > system that goeas a long time between reboots.
> >
>
> I dont quite understand why you say this, top gets its info from the same
> file as free itself which is /proc/meminfo, now i belive top shows memory
> in the same way as free -o.
>
> The buffers line is not shown, but then that information is given per
> program in tops output.
>
> As to the output being different, i dont see your point, if what you say is
> true, then you must be saying /proc/meminfo does not work properly after x
> days of uptime.
>
> >
> > ------------------------------------"Never tell me the odds!"---
> > Ray Olszewski                                        -- Han Solo
> > Palo Alto, CA                                  [EMAIL PROTECTED]
> > ----------------------------------------------------------------
> --
> Regards Richard
> [EMAIL PROTECTED]
> http://people.zeelandnet.nl/pa3gcu/
> Happy New Year

--
|-------------------------------------------------|
|                    GAURAV                       |
|-------------------------------------------------|
| Please feel free to                             |
| mailto:[EMAIL PROTECTED] (Office Email-id) |
| or (at Other Email-ids)                         |
| mailto:[EMAIL PROTECTED]                   |
| mailto:[EMAIL PROTECTED]                     |
|-------------------------------------------------|
|    L  o  v  e  r     o  f     1  I  N  U  X     |
|     Open Invit to all....to talk on 1INUX       |
|-------------------------------------------------|

Reply via email to