Re: CPU vp total time
Posted in 1998
Normand Bedard wrote:
>
> Hi,
> We have a SUN SPARC 2000 with 8 CPU's, 7 of them are bind to Informix.
> We have Informix 7.23 on Solaris 2.4. After running the command "onstat
> -g glo" we get a total cpu time of 161668.46. After 60 seconds, we run
> the command again and get 161535.23.
Other way round I think. :-)
> 161668.46 - 161535.23 =3D 133.23
>
> The CPU vp ran for 133.23 sec. in a 60 sec. interval.
> Is this possible?
Of course.
> Any explanation?
You have more than one CPU?
This total in your case is for all 7 CPU VPs. I would hope that you
actually have at least 7 CPUs. In that case you can have 7 processes
running simultaneously. In which case, 133.23 out of 60 means your CPU
VPs are not working the box too hard.
The list below the totals gives you the individual cpu time per CPU VP.
> onstat -g glo ; sleep 60 ; onstat -g glo>
> Virtual processor summary:
> class vps usercpu syscpu total
> cpu 7 143353.55 18181.68 161535.23
> aio 1 2.18 10.92 13.10
> shm 2 1078.26 92.74 1171.00
> lio 2 0.45 2.59 3.04
> pio 2 0.51 2.49 3.00
> adm 1 0.36 1.13 1.49
> msc 1 21.24 9.95 31.19
> total 16 144456.55 18301.50 162758.05
>
> Individual virtual processors:
> vp pid class usercpu syscpu =
>
> total
> 1 4206 cpu 24048.09 4139.01 =
>
> 28187.10
> 2 4209 adm 0.36 1.13 =
>
> 1.49
> 3 4210 cpu 29365.63 3637.23 =
>
> 33002.86
> 4 4211 cpu 22009.90 2784.06 =
>
> 24793.96
> 5 4212 cpu 18115.16 2090.71 =
>
> 20205.87
> 6 4213 cpu 17191.02 1999.07 =
>
> 19190.09
> 7 4214 cpu 16156.61 1702.32 =
>
> 17858.93
> 8 4215 cpu 16467.14 1829.28 =
>
> 18296.42
> 9 4216 lio 0.22 1.26 =
>
> 1.48
> 12 4217 msc 21.24 9.95 =
>
> 31.19
> 10 4218 pio 0.21 1.22 =
>
> 1.43
> 11 4219 aio 2.18 10.92 =
>
> 13.10
> 13 4220 shm 504.07 43.28 =
>
> 547.35
> 14 4221 shm 574.19 49.46 =
>
> 623.65
> 15 4247 lio 0.23 1.33 =
>
> 1.56
> 16 4248 pio 0.30 1.27 =
>
> 1.57
> tot 144456.55 18301.50 =
>
> 162758.05
>
> INFORMIX-OnLine Version 7.23.UC2 -- On-Line -- Up 1 days 16:54:09 --
> 661816 Kbytes
>
> MT global info:
> sessions threads vps lngspins
> 36 114 16 194 =
>
> sched calls thread switches yield 0 yield n yield
> forever
> total: 156993958 105083765 60470193 525166 43530896 =
>
> per sec: 649 585 94 3 128 =
>
> Virtual processor summary:
> class vps usercpu syscpu total
> cpu 7 143482.48 18185.98 161668.46
> aio 1 2.19 10.93 13.12
> shm 2 1078.26 92.76 1171.02
> lio 2 0.45 2.60 3.05
> pio 2 0.52 2.49 3.01
> adm 1 0.36 1.13 1.49
> msc 1 21.26 9.95 31.21
> total 16 144585.52 18305.84 162891.36
>
> Individual virtual processors:
> vp pid class usercpu syscpu =
>
> total
> 1 4206 cpu 24079.50 4140.75 =
>
> 28220.25
> 2 4209 adm 0.36 1.13 =
>
> 1.49
> 3 4210 cpu 29400.69 3638.63 =
>
> 33039.32
> 4 4211 cpu 22047.24 2784.69 =
>
> 24831.93
> 5 4212 cpu 18134.62 2091.17 =
>
> 20225.79
> 6 4213 cpu 17196.22 1999.10 =
>
> 19195.32
> 7 4214 cpu 16157.02 1702.35 =
>
> 17859.37
> 8 4215 cpu 16467.19 1829.29 =
>
> 18296.48
> 9 4216 lio 0.22 1.26 =
>
> 1.48
> 12 4217 msc 21.26 9.95 =
>
> 31.21
> 10 4218 pio 0.21 1.22 =
>
> 1.43
> 11 4219 aio 2.19 10.93 =
>
> 13.12
> 13 4220 shm 504.07 43.28 =
>
> 547.35
> 14 4221 shm 574.19 49.48 =
>
> 623.67
> 15 4247 lio 0.23 1.34 =
>
> 1.57
> 16 4248 pio 0.31 1.27 =
>
> 1.58
> tot 144585.52 18305.84 =
>
> 162891.36
Hope that helps,
--
Mark.
+----------------------------------------------------------+-----------+
|Mark D. Stock - Informix SA http://www.informix.com |//////// /|
|mailto:mdstock@informix.com http://www.informix.com/idn |///// / //|
|http://www.iiug.org +-----------------------------------+//// / ///|
| Tel: +27 11 807 0313 |If it's slow, the users complain. |/// / ////|
| Fax: +27 11 807 2594 |If it's fast, the users keep quiet.|// / /////|
|Cell: +27 83 250 2325 |Therefore, "No news: travels fast"!|/ ////////|
+----------------------+-----------------------------------+-----------+