此内容没有您所选择的语言版本。
9.6. Using queue statistics
Functions with the qsq_ prefix query the statistics averaged since the first queue operation or when qsq_start was called. Since statistics are often fractional, a scale parameter multiplies the result to a more useful scale. For some fractions, a scale of 100 returns percentage numbers.
9.6.1. qsq_blocked 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
General syntax:
qsq_blocked:long (qname:string, scale:long)
qsq_blocked:long (qname:string, scale:long)
This function returns the fraction of elapsed time during which one or more requests were on the wait queue.
9.6.2. qsq_print 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
General syntax:
qsq_print:unknown (qname:string)
qsq_print:unknown (qname:string)
This function prints a line containing the following statistics for the given queue:
- queue name
- average rate of requests per second
- average wait queue length
- average time on the wait queue
- average time to service a request
- percentage of time the wait queue was used
- percentage of time any request was being serviced
9.6.3. qsq_service_time 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
General syntax:
qsq_service_time:long (qname:string, scale:long)
qsq_service_time:long (qname:string, scale:long)
This function returns the average time in microseconds required to service a request once it is removed from the wait queue.
9.6.4. qsq_start 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
General syntax:
qsq_start:unknown (qname:string)
qsq_start:unknown (qname:string)
This function resets the statistics counters for the given queue, and restarts tracking from the moment the function was called. This command is used to create a queue.
9.6.5. qsq_throughput 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
General syntax:
qsq_throughput:long (qname:string, scale:long)
qsq_throughput:long (qname:string, scale:long)
This function returns the average number of requests served per microsecond.
9.6.6. qsq_utilization 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
General syntax:
qsq_utilization:long (qname:string, scale:long)
qsq_utilization:long (qname:string, scale:long)
This function returns the average time in microseconds that at least one request was being serviced.
9.6.7. qsq_wait_queue_length 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
General syntax:
qsq_wait_queue_length:long (qname:string, scale:long)
qsq_wait_queue_length:long (qname:string, scale:long)
This function returns the average length of the wait queue.
9.6.8. qsq_wait_time 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
General syntax:
qsq_wait_time:long (qname:string, scale:long)
qsq_wait_time:long (qname:string, scale:long)
This function returns the average time in microseconds that it took for a request to be serviced (qs_wait() to qs_done()).
9.6.9. A queue example 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
What follows is an example from src/testsuite/systemtap.samples/queue_demo.stp. It uses the randomize feature of the timer probe to simulate queuing activity.
This prints: