onstat -g glo command: Print global multithreading information
Use the onstat -g glo command to display global information about multithreading, information about each virtual processor that is running, and cumulative statistics for each virtual-processor class. This information includes CPU use information about the virtual processors, the total number of sessions, and other multithreading global counters.
Example output
Figure 1. onstat
-g glo command output
MT global info:
sessions threads vps lngspins time
0 23 14 0 142
sched calls thread switches yield 0 yield n yield forever
total: 85240 70451 16956 868 37319
per sec: 0 0 0 0 0
Virtual processor summary:
class vps usercpu syscpu total
cpu 1 92.12 0.59 92.71
aio 1 0.05 0.08 0.13
lio 1 0.00 0.00 0.00
pio 1 0.00 0.00 0.00
adm 1 0.00 0.01 0.01
soc 4 0.01 0.01 0.02
msc 1 0.00 0.00 0.00
jvp 1 0.00 0.00 0.00
fifo 1 0.00 0.00 0.00
nyevp 1 0.00 0.00 0.00
yevp 1 0.00 0.00 0.00
total 14 92.18 0.69 92.87
Individual virtual processors:
vp pid class usercpu syscpu total Thread Eff
1 26328 cpu 92.12 0.59 92.71 122.65 75%
2 26330 adm 0.00 0.01 0.01 0.00 0%
3 26331 lio 0.00 0.00 0.00 0.00 0%
4 26332 pio 0.00 0.00 0.00 0.00 0%
5 26333 aio 0.05 0.08 0.13 0.28 45%
6 26334 msc 0.00 0.00 0.00 0.19 0%
7 26335 fifo 0.00 0.00 0.00 0.00 0%
8 26336 nyevp 0.00 0.00 0.00 0.00 0%
9 26337 yevp 0.00 0.00 0.00 0.00 0%
10 26338 jvp 0.00 0.00 0.00 0.00 0%
11 26339 soc 0.00 0.00 0.00 NA NA
12 26340 soc 0.00 0.00 0.00 NA NA
13 26341 soc 0.01 0.01 0.02 NA NA
14 26342 soc 0.00 0.00 0.00 NA NA
tot 92.18 0.69 92.87
Output description
The following table explains
each column in the global information section of the example output.
Column name | Description |
---|---|
sessions | The number of sessions |
threads | The total number of threads |
vps | The total number of virtual processors |
lngspins | The number of times a thread had to spin more than 10,000 times to acquire a latch on a resource |
time | The number of seconds over which the statistics were gathered. Statistics start when the server starts or the statistics are reset by running the onstat -z command. |
sched calls | The total number of scheduled calls. |
thread switches | The total number of switches from one thread to another. |
yield | Statistics on thread yields, which occur when a thread can no longer continue its task until some condition occurs |
The following table explains each column in the virtual
processor summary section of the example output.
Column name | Description |
---|---|
class | The type of virtual processor. |
vps | The number of instances of the class of virtual processor. |
usercpu | The total user time, in seconds, that the class of virtual processor spent running on the CPU. |
syscpu | The total system time, in seconds, the class of virtual processor spent running on the CPU. |
total | The total CPU time for the virtual processor class, as the sum of the user time plus the system time. |
The following table explains each column in the individual
virtual processors section of the example output.
Column name | Description |
---|---|
vp | The virtual processor number. On Windows, the values are thread IDs. |
pid | The Process ID of the oninit process. |
class | The type of virtual processor. |
usercpu | The total user time, in seconds, that the virtual processor spent running on the CPU. |
syscpu | The total system time, in seconds, that the virtual processor spent running on the CPU. |
total | The total CPU time for the virtual processor, as the sum of the user time plus the system time. |
Thread | The total time the threads ran on the virtual processor. |
Eff | Efficiency. The ratio of the total CPU time to the total time the threads ran on the virtual processor. |