io-stats: new counters

Add new counters and statistics for:

a) total read data - since process start, last interval and per fd
b) total write data - since process start, last interval and per fd
c) counts of read IO block size - since process start, last interval and per fd
d) counts of write IO block size - since process start, last interval and per fd
e) counts of all FOP types passing through it

Usage:

1. For dumping global stats

sh# setfattr -n io-stats-dump /tmp/filename /mnt/gluster

2. For enabling per-fd stats

option dump-fd-stats on

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 268 (Add timing instrumentation code)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=268
This commit is contained in:
Anand Avati 2010-03-04 04:00:53 +00:00 committed by Anand V. Avati
parent 90fbc2d6e3
commit 2970ec5447

File diff suppressed because it is too large Load Diff