]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: periodically send perf metrics to MDSes
authorXiubo Li <xiubli@redhat.com>
Thu, 16 Jul 2020 14:05:57 +0000 (10:05 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Aug 2020 09:05:26 +0000 (11:05 +0200)
commitee6b9117681b19f6e7ad9a61ad39e68e3ba346e3
tree3d9626cc829877510c1ac5a557f88c7b5f855bbf
parent3925ef56b307b8bc85f4f06094966b039d357adb
ceph: periodically send perf metrics to MDSes

This will send the caps/read/write/metadata metrics to any available MDS
once per second, which will be the same as the userland client.  It will
skip the MDS sessions which don't support the metric collection, as the
MDSs will close socket connections when they get an unknown type
message.

We can disable the metric sending via the disable_send_metrics module
parameter.

[ jlayton: fix up endianness bug in ceph_mdsc_send_metrics() ]

URL: https://tracker.ceph.com/issues/43215
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/mds_client.h
fs/ceph/metric.c
fs/ceph/metric.h
fs/ceph/super.c
fs/ceph/super.h
include/linux/ceph/ceph_fs.h