[SunHELP] vmstat and "sar -r"
Vivas Inga, Yovana Mery
sunhelp at sunhelp.org
Tue Mar 27 08:44:28 CST 2001
Hi, I understand that the "vmstat" and "sar -r" commands are the same, and
their only difference is that vmstat gives me the data in Kbytes while "sar
-r" in blocks, but when I perform this commands in my Sun 2.5.1. server it
gives me the following:
#vmstat 10 5
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 -- -- -- in sy cs us sy
id
0 0 0 768 1488 0 7 1 0 0 0 0 1 0 0 0 124 365 39 1 0
98
0 0 0 549344 23872 0 9 0 0 0 0 0 5 0 0 0 155 469 55 1 0
98
0 0 0 549344 23872 0 0 0 0 0 0 0 0 0 0 0 134 297 35 0 0
100
0 0 0 549344 23872 0 0 0 0 0 0 0 0 0 0 0 138 293 33 0 0
100
0 0 0 549344 23872 0 0 0 0 0 0 0 2 0 0 0 145 294 33 0 1
99
#sar -r 10 5
SunOS cw2 5.5.1 Generic_103640-29 sun4u 03/27/01
09:17:57 freemem freeswap
09:18:07 2984 1098688
09:18:17 2984 1098688
09:18:27 2984 1098688
09:18:37 2984 1098688
09:18:47 3070 1101789
Average 3001 1099308
As you can see it's not very clear what value of these is the real one, I
mean, freeswap is almost the same in both results, but it doesn't happen the
same with freemem, which differences considerably in each command result.
Can anybody please explain me why happens this?
bye,
Mery
More information about the SunHELP
mailing list