Xymon Mailing List Archive search

Solaris vmstat and sar

list Lars Ebeling
Mon, 3 Dec 2007 19:27:49 +0100
Message-Id: <006501c835da$35b47260$user-a73ca09b698f@xymon.invalid>

Hello,

I don't think you should compare like that. They are snapshots and only reflecting the status at that moment.

I did vmstat -n 5 5 on HP-UX and got:
VM                                                                                   memory                     page                          faults             avm    free   re   at    pi   po    fr   de    sr     in     sy    cs       65466    9823   22    8     2    0     0    0     1    113      3   139    CPU                                                                               cpu          procs                                                         us sy id    r     b     w                                                     37  4 60    2     0     0                                                       65466    9675    6    4     1    0     0    0     0    113    377    87      2  1 96    2     0     0                                                       71121    8536  174   43     5    0     0    0     0    117   6766   142     23 13 65    2     4     0                                                       71121    8991  201   98     3    0     0    0     0     98   8594   238     65 24 12    2     4     0                                                       84056    8990   86   34     1    0     0    0     0    103   3979   120      5  3 92    5     1     0                                                    #                                                                             
Here you can see that idle varies 60% 96% 65% 12% 92%


Regards
Lars
  ----- Original Message -----   From: James Wade   To: user-ae9b8668bcde@xymon.invalid   Sent: Monday, December 03, 2007 7:10 PM
  Subject: [hobbit] Solaris vmstat and sar


  All,

   
  Solaris vmstat is crummy for CPU Utilization.

   
  If I do a vmstat on a Solaris box that's having high load,

  I get 67% idle, yet sar shows 3% idle.

   
  Has anyone seen this before?

   
  sar -u 1 1

   
  12:08:40    %usr    %sys    %wio   %idle

  12:08:41      46      44       6       4

   
  vmstat 1 1

   kthr      memory            page            disk          faults      cpu   r b w   swap  free  re  mf pi po fr de sr s3 s3 s9 s1   in   sy   cs us sy id
   0 4 0 68897248 24039040 673 3180 1550 15 14 0 0 12 12 0 0 12901 44078 19363 18 15 67

  So, what's the work around because Hobbit is using vmstat?

  James