Download Performance Sentry User Manual

Transcript
Performance Sentry User Manual
Appendix A - Record Format
Windows Server does not measure disk busy directly. The Diskperf command is used to insert a
filter driver into the I/O Manager stack to calculate disk performance statistics. Diskperf
maintains a time difference counter that records the duration of all disk I/O operations per
logical or physical disk and maintains a difference counter that records the I/O completion rate.
This allows Performance Sentry to calculate the following average disk response time counters:
Avg. Disk sec/Read, Avg. Disk sec/Transfer, Avg. Disk sec/Write using a difference counter
called a PERF_AVERAGE_TIMER.
The formula for calculating % Disk sec/Transfer is:
(IO Elapsed Time1 - IO Elapsed Time0) / (# IO Events1 - # IO Events0)
where the result is expressed in seconds (rather than timer units). Because the I/O Elapsed Time
that diskperf accumulates includes queue time in the disk driver and elsewhere, % Disk
sec/Transfer is a straightforward measure of response time.
The formula for calculating % Disk Time is:
(IO Elapsed Time1 - IO Elapsed Time0 ) / Duration
where the result is multiplied by 100 so that it is expressed as a percentage of the interval
duration. Calling this derived value % Disk Time is misleading. Because the accumulated I/O
Elapsed Time includes queue time, it is not unusual for it to be greater than duration. This leads
to a % Disk Time value that is greater than 100%. To eliminate this anomaly, the % Disk Time
counters are capped at 100%. Capping leads to further confusion because the % Disk Read Time
and % Disk Write Time counters may not add up to % Disk Time. For instance, a very busy disk
may report that % Disk Read Time, % Disk Write Time, and % Disk Time are all equal to 100%
busy!
The source of the confusion is that the % Disk Read Time, % Disk Write Time, and % Disk
Time counters are mislabeled. The Avg. Disk Queue Length counters introduced in Windows
NT 4.0 were designed to clear up this confusion. The Avg. Disk Queue Length counter is
calculated using a formula identical to % Disk Time, but without capping and not multiplied by
100 to create a percentage value. If you compare the counters, you easily see that they contain
identical values, except when % Disk Time exceeds 100% and it is subject to capping.
While the Avg. Disk Queue Length counters introduced in Windows NT 4.0 do eliminate some
of the confusion, they do not solve the problem that the % Disk Time counter does not measure
disk utilization. This is addressed in Windows Server with the addition of the % Idle Time
counter. The % Idle Time counter accumulates the amount of time during the measurement
interval that the disk was idle, essentially not servicing any I/O requests.
With the % Idle Time counter, it is possible to gather a complete set of disk performance
statistics for Windows Server machines. You can easily calculate:
% Disk Busy = 100% -% Idle Time
Disk service time = % Disk Busy / Disk Transfers/sec
Disk queue time = % Disk sec/Transfer - Disk service time
135