# Queue-length Algorithm Counter Types

Queue-length algorithm counter types increment the number of items in a queue at each sample interval as specified by the appropriate frequency property—Frequency_PerfTime, and so on. The cooked result divides by the number of samples to produce the average queue length.

An example is the **AvgDiskQueueLength** property in the
**Win32_PerfRawData_PerfDisk_LogicalDisk** that uses the PERF_COUNTER_100NS_QUEUELEN_TYPE counter type.

CounterType Constant | Description |
---|---|

PERF_COUNTER_QUEUELEN_TYPE Decimal 4523008 | Average length of a queue to a resource over time. It shows the difference between the queue lengths observed during the last two sample intervals divided by the duration of the interval. |

PERF_COUNTER_LARGE_QUEUELEN_TYPE Decimal 4523264 | Average length of a queue to a resource over time. Counters of this type display the difference between the queue lengths observed during the last two sample intervals, divided by the duration of the interval. |

PERF_COUNTER_100NS_QUEUELEN_TYPE Decimal 5571840 | Average length of a queue to a resource over time in 100 nanosecond units. |

PERF_COUNTER_OBJ_TIME_QUEUELEN_TYPE Decimal 6620416 | Time an object is in a queue. |

## Related topics

Show: