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
Output description
The following table explains
each column in the global information section of the example output.
Table 1. Description of the columns in the virtual processor summary
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.
Table 2. Description
of the columns in the virtual processor summary
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.
Table 3. Description
of the columns for the individual virtual processors
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.
Have feedback?
Google Analytics is used to store comments and ratings. To provide a comment or rating for a topic, click Accept All Cookies or Allow All in Cookie Preferences in the footer of this page.