On 7/26/05, Yogesh1 Talekar <[EMAIL PROTECTED]> wrote:
> hello,
>
> a newbie question?
>
> What is the difference between the stats provided by top and vmstat command.
> Isn't it true that both extract info from /proc and calculate the
> figures thay show?
>
> Which one should i believe more?
>
> Thanks in advance
>
> Regards
>
> --yogesh
>
> --
Both should be identical. As the information is picked from a common
library, libproc.so
# ldd `which vmstat`
libproc.so.2.0.11 => /lib/libproc.so.2.0.11 (0x40025000)
libc.so.6 => /lib/libc.so.6 (0x40033000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
# ldd `which top`
libproc.so.2.0.11 => /lib/libproc.so.2.0.11 (0x40025000)
libncurses.so.5 => /usr/lib/libncurses.so.5 (0x40033000)
libc.so.6 => /lib/libc.so.6 (0x40072000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
-----
KD.
http://www.geocities.com/kirandivekar/
--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List: ([email protected])
List Information: http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.