What a Counter Counts

Someone once said that if you can't measure it, you can't manage it. Unfortunately, just being able to measure something does not guarantee that you can manage it. But it's a start.

Fundamental to Performance Monitor is the concept of a counter. On hardware devices, counters count visits to the device (in the fancy parlance of the previous section, visits(device)). The Physical Disk device has, for example, a count of disk transfers made, expressed as Transfers/sec. The service(device) is sometimes also provided, as in Avg. Disk sec/IO in the case of Physical Disks. Often we break down these visits into categories to better indicate the cause of the activity. To continue the example, we provide the counters Disk Reads/sec and Disk Writes/sec so you can gain a better understanding of the cause of disk congestion.

We have a strong bias for expressing counters as rates per second, and timers as the fraction of time that a device is used (expressed as a percentage). The advantage of this approach is that if a counter is observed over a five-minute period and then compared to its value over a 10-second period, the numbers are comparable if they are expressed as a fraction of time or a rate over time.

You'll have to deal with this a lot, so let's take an example to make this concept clear. Suppose we have one counter that is timing disk operation, and another that is counting disk transfers. Table 2.1 shows a simple case with absolute counter values.

Table 2.1 Absolute Counter Values

10-second interval

5-minute interval

Disk time

8.654 seconds

225.621 seconds

Disk transfers

258 transfers

9024.8 transfers

|


Looking at these two sets of data, it is actually a bit difficult to see which one has the busier disk. Look at the same situation in Table 2.2, expressed as rates and utilizations:

Table 2.2 Relative Counter Values

10-second interval

5-minute interval

Disk time

86.54%

75.20%

Disk transfers

25.800 Transfers/sec

30.080 Transfers/sec

|


Now we can see that over the five minute interval the disk was slightly less busy, yet handled more transfers. How can this be? Either there was less seeking/rotation on each transfer, or fewer bytes per transfer. To determine which, see the Average Disk Bytes/IO counter for this disk. But we won't fuss with that now because the real point here is that Table 2.2 is directly relevant, and Table 2.1 is not. Now you can see why Performance Monitor will display nearly all of its data in the form shown in Table 2.2.