Hi All,
Can some one help me in finding % CPU Utilization ?
From VMSTAT command, How we can find % utilization ?
Thanks
Hi All,
Can some one help me in finding % CPU Utilization ?
From VMSTAT command, How we can find % utilization ?
Thanks
You can subtract the idle ("id") column from 100 and that is the percent of your CPU used:
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------------------
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
0 0 331429 5036 0 0 0 0 0 0 22 437 266 5 7 88 0 0.02 16.8
0 0 331429 5036 0 0 0 0 0 0 22 253 255 3 4 93 0 0.01 10.4
0 0 331428 5037 0 0 0 0 0 0 28 265 254 3 5 92 0 0.01 11.7
0 0 331428 5037 0 0 0 0 0 0 29 271 254 3 4 93 0 0.01 11.0
When you run "vmstat" you see 5(6) columns in the "cpu" block. They are labeled "us", "sy", "id", and "wa" (on LPARs with a shared processor there are two additional columns "pc" and "ec").
There are two more columns on LPARs with shared processors, "pc" (number of physical processors consumed) and "ec" (entitled processor capacity consumed), which tell you how much of the underlying real hardware ("pc") was used and how much of the resources the LPAR is allowed to allocate was consumed.
Typical problems and their symptoms:
I hope this helps.
bakunin
when looking at cpu utilization, watch the us+sy values but also look at the EC (entitled capacity).
EC can be, if the lpar is uncapped, more than 100%.
Here's an example
System configuration: lcpu=4 mem=2048MB ent=0.20
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------------------
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
0 0 322989 79334 0 0 0 0 0 0 115 54342 5041 40 57 3 0 0.50 247.9
the example shot idle=3%, so CPU utilization is 97%, but the EC value is almost 250% meaning, this LPAR is uncapped and is using 2.5 times is original assigned CPU. So now it's utilizing 97% of (2.5 times 0.2cpu)
when the partition is uncapped. EC is max 100%, so max CPU utilization is 100% of 0.2 CPU