akopytov / sysbench

Scriptable database and system performance benchmark
GNU General Public License v2.0
6.06k stars 1.08k forks source link

Report latency for read, write and fsync separately in fileio tests #208

Open mdcallag opened 6 years ago

mdcallag commented 6 years ago

For sysbench fileio I want to see latency metrics for read, write and fsync. Today it reports one result, which I assume combines read and write and ignores fsync. But when one of the three is slow (read, write or fsync) then that is difficult to see with the current reporting.

The fio tool reports separate latency metrics for reads and writes, and after asking, Jens just added latency metrics for fsync. In my recent tests, fsync was by far the slowest operation and that slowness was confusing.

I know this is open source so I don't expect anyone to jump on this request, but it would be nice to have.

akopytov commented 6 years ago

Mark, yes, this is precisely what I'm working on right now: allow tests to define custom counters and latency histograms. fio reporting separate read/write stats was one of the examples I wanted to use to explain the feature.