Whamcloud - gitweb
LU-12585 obdfilter: Use actual I/O bytes in stats 75/46075/1
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 12 Jan 2022 20:40:28 +0000 (15:40 -0500)
committerPatrick Farrell <pfarrell@whamcloud.com>
Wed, 12 Jan 2022 20:40:28 +0000 (15:40 -0500)
commit34cbc31a9e73498d7f9324e942c85fbc44791c83
treefd7c59213f754ec68d0f45840c0850809b117512
parent46ff76137160b66f1d4437b3443859027faae9c4
LU-12585 obdfilter: Use actual I/O bytes in stats

Currently the obdfilter stats note the number of bytes
requested by the client rather than the number of bytes
actually read or written.  This is particularly confusing
for reads because clients can request more data than
exists and some applications do this normally.

This results in statistics that can be off by almost any
amount from the actual number of bytes read.  This patch
moves the stats to be collected after 'commit', which
allows the true number of bytes to be recorded.

It also adds the 'commit' operation to the time recorded in
the stats for each operation, which is reasonable because
the commit must occur before the operation is complete.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I81fe9a6afdad5b48e8421f4aa72b8ef10a0eee93
lustre/include/obd.h
lustre/include/obd_class.h
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_io.c
lustre/obdecho/echo.c
lustre/obdecho/echo_client.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_io.c
lustre/target/tgt_handler.c