Monitor virtual processors with the onstat-g ioq command
Use the onstat-g ioq command to determine
whether you need to allocate additional AIO virtual processors.
The onstat-g ioq command displays the length
of the I/O queues under the column len, as the figure below
shows. You can also see the maximum queue length (since the database
server started) in the maxlen column. If the length of the
I/O queue is growing, I/O requests are accumulating faster than the
AIO virtual processors can process them. If the length of the I/O
queue continues to show that I/O requests are accumulating, consider
adding AIO virtual processors.
Each chunk serviced by the AIO virtual processors has one line
in the onstat-g ioq output, identified by the value gfd in
the q name column. You can correlate the line in onstat
-g ioq with the actual chunk because the chunks are in the same
order as in the onstat -d output. For example,
in the onstat-g ioq output, there are two gfd queues.
The first gfd queue holds requests for root_chunk because
it corresponds to the first chunk shown in the onstat -d output.
Likewise, the second gfd queue holds requests for chunk1 because
it corresponds to the second chunk in the onstat -d output.
If the database server has a mixture of raw devices and cooked
files, the gfd queues correspond only to the cooked
files in onstat -d output.