onstat -g qst command: Print wait options for mutex and condition queues
Use the onstat -g qst command to display the wait statistics for mutex queues and condition queues (queues of waiters for a mutex or a condition).
The QSTATS configuration parameter must be set to 1 to enable the collection of statistics. For more information, see QSTATS configuration parameter.
Example output
Figure 1. onstat
-g qst command output
Mutex Queue Statistics
name nwaits avg_time max_time avgq maxq nservs avg_time
ddh chai 1 1354863 1354863 1 1 56 1690
Condition Queue Statistics
name nwaits avg_time max_time avgq maxq nservs avg_time
arrived 1 110008 110008 1 1 0 0
logbf0 21 642 4431 1 2 0 0
logbf1 15 475 2519 1 2 0 0
logbf2 19 596 3274 1 2 0 0
bp_cond 1 0 0 1 1 0 0
Output description
- name (string)
- Name of the mutex or condition resource being waited for
- nwaits (decimal)
- Number of times this resource was waited for
- avg_time (decimal)
- Average time spent waiting (in microseconds)
- max_time (decimal)
- Maximum time spent waiting (in microseconds)
- avgq (decimal)
- Average length of the queue
- maxq (decimal)
- Maximum length of the queue
- nservs (decimal)
- Number of times this resource was acquired
- avg_time (decimal, microsecond)
- Average time the resource was held per acquisition (in microseconds)