HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

vmstat: wrong CPU utilization

 
SOLVED
Go to solution
Sunny Jaisinghani
Trusted Contributor

vmstat: wrong CPU utilization

Hello Gurus,

vmstat and sar are reporting different CPU utilization. Obviously vmstat is wrong.

#/> vmstat 1 5
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
3 0 0 1402961 764103 3 0 0 0 0 0 0 380 107285 356 8948552826880 317 266
3 0 0 1402961 763980 10 2 0 0 0 0 0 348 204006 426 100 0 100
3 0 0 1402961 764046 8 1 0 0 0 0 0 346 203873 420 100 0 100
3 0 0 1402961 764046 7 0 0 0 0 0 0 346 203860 417 100 0 100
3 0 0 1402961 764046 5 0 0 0 0 0 0 348 203932 408 100 0 100


#/> sar -u 1 5

HP-UX B.11.11 U 9000/800 10/29/09

02:10:44 %usr %sys %wio %idle
02:10:45 33 17 0 50
02:10:46 32 17 0 51
02:10:47 27 22 0 51
02:10:48 33 17 0 50
02:10:49 31 19 0 50

Average 31 18 0 50

But, i am not able to figure what is wrong. Am i missing some patch

The OS is 11iv1

thanks
Sunny
3 REPLIES
Solution

Re: vmstat: wrong CPU utilization

PHCO_25979 has defect desriptions that match what you are seeing, but it's a _very_ old patch - if you don't have it you don't patch very often!

HTH

Duncan

HTH

Duncan
Julián Aimar
Frequent Advisor

Re: vmstat: wrong CPU utilization

Hi,

PHCO_25979:
( SR:8606229310 CR:JAGad98363 )
vmstat(1) reports wrong values for CPU percentages: user time 'us', system time 'sy' and idle time 'id'.

install patch, link

https://www11.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_25979&sel={hpux:11.11,}&BC=main|search|


JEA
Sunny Jaisinghani
Trusted Contributor

Re: vmstat: wrong CPU utilization

The patch is not installed on the server.

Yes it is not frequently patched.

I hope once the server is properly patched the issue will get resolved.

Thanks