Whamcloud - gitweb
LU-12585 obdfilter: Use actual I/O bytes in stats
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 27 Jan 2022 21:40:03 +0000 (16:40 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Feb 2022 04:02:51 +0000 (04:02 +0000)
commitda5223a245c6bf8f48ac634db4f8a05adc42cd96
treec5eb3e9a80e9695f5252a6ffa7f5ccd92296d7e6
parent314960fa51bf70c38ff5a3c8b26739c80646b400
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 just before commit, which
allows the true number of bytes to be recorded but does not
include the commit time in the time stats.  (Since commit
time is not part of the operation latency as experienced by
the client.)

Lustre-change: https://review.whamcloud.com/46075/
Lustre-commit: 34cbc31a9e73498d7f9324e942c85fbc44791c83 (tbd)

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I81fe9a6afdad5b48e8421f4aa72b8ef10a0eee93
Reviewed-on: https://review.whamcloud.com/46076
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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