doc /proc/diskstats fields

This commit is contained in:
Doug MacEachern 2006-06-21 17:53:15 +00:00
parent 5d6e5c1e8e
commit 954b01b441
1 changed files with 11 additions and 3 deletions

View File

@ -1287,9 +1287,17 @@ static int get_iostat_proc_dstat(sigar_t *sigar,
"%lu %lu %lu %lu " "%lu %lu %lu %lu "
"%lu %lu %lu %lu " "%lu %lu %lu %lu "
"%lu %lu %lu", "%lu %lu %lu",
&rio, &rmerge, &rsect, &ruse, &rio, /* 1 # reads issued */
&wio, &wmerge, &wsect, &wuse, &rmerge, /* 2 # reads merged */
&running, &use, &aveq); &rsect, /* 3 # sectors read */
&ruse, /* 4 # millis spent reading */
&wio, /* 5 # writes completed */
&wmerge, /* 6 # writes merged */
&wsect, /* 7 # sectors written */
&wuse, /* 8 # millis spent writing */
&running, /* 9 # I/Os currently in progress */
&use, /* 10 # millis spent doing I/Os */
&aveq); /* 11 # of millis spent doing I/Os (weighted) */
if (num == 11) { if (num == 11) {
fsusage->disk_queue = aveq / 1000; fsusage->disk_queue = aveq / 1000;