Whamcloud - gitweb
LU-12585 mdt: Add read/write latency to MDT stats 29/46229/4
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 27 Jan 2022 21:42:23 +0000 (16:42 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 7 Feb 2022 04:44:14 +0000 (04:44 +0000)
commita942fc916871eebe6615fe8e29471e2386d46f1d
treecff7f610a3968f0e3f4bc1ff594880f44aae3a39
parent1c98e950fa7c9fac3d7494278abebee7c64c5397
LU-12585 mdt: Add read/write latency to MDT stats

The MDT does not currently record latency stats for reads
and writes.

Add this, and change the naming to be the same as for the
OFD.

Note on this:
Existing naming on the MDT uses "read/write" instead of
"{read,write}_bytes", which is inconsistent with OFD and
also inconsistent within the MDT, since other ops without
the "_bytes" suffix are latency.

It's not ideal to change the names of existing stats, but I
decided this was less problematic than leaving them
inconsistent.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I7b7a5742678cbe0269086f37877833e877a5ca5f
Reviewed-on: https://review.whamcloud.com/46229
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Aurelien Degremont <degremoa@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_io.c
lustre/mdt/mdt_lproc.c