patch-2.4.0-test5 linux/fs/nfsd/stats.c
Next file: linux/fs/nfsd/vfs.c
Previous file: linux/fs/nfsd/nfssvc.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Tue Jul 18 23:04:06 2000
- Orig file:
v2.4.0-test4/linux/fs/nfsd/stats.c
- Orig date:
Mon Mar 27 08:08:30 2000
diff -u --recursive --new-file v2.4.0-test4/linux/fs/nfsd/stats.c linux/fs/nfsd/stats.c
@@ -13,7 +13,7 @@
* io <bytes-read> <bytes-writtten>
* statistics for IO throughput
* th <threads> <fullcnt> <10%-20%> <20%-30%> ... <90%-100%> <100%>
- * time (milliseconds) when nfsd thread usage above thresholds
+ * time (seconds) when nfsd thread usage above thresholds
* and number of times that all threads were in use
* ra cache-size <10% <20% <30% ... <100% not-found
* number of times that read-ahead entry was found that deep in
@@ -58,8 +58,11 @@
nfsdstats.io_write);
/* thread usage: */
len += sprintf(buffer+len, "th %u %u", nfsdstats.th_cnt, nfsdstats.th_fullcnt);
- for (i=0; i<10; i++)
- len += sprintf(buffer+len, " %u", nfsdstats.th_usage[i]);
+ for (i=0; i<10; i++) {
+ unsigned int jifs = nfsdstats.th_usage[i];
+ unsigned int sec = jifs / HZ, msec = (jifs % HZ)*1000/HZ;
+ len += sprintf(buffer+len, " %u.%03u", sec, msec);
+ }
/* newline and ra-cache */
len += sprintf(buffer+len, "\nra %u", nfsdstats.ra_size);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)