mbox series

[v7,0/5] ceph: add perf metrics support

Message ID 20200219033851.6548-1-xiubli@redhat.com (mailing list archive)
Headers show
Series ceph: add perf metrics support | expand

Message

Xiubo Li Feb. 19, 2020, 3:38 a.m. UTC
From: Xiubo Li <xiubli@redhat.com>

Changed in V7:
- Rebase to the latest commit
- Address the comments for cap patch.
- Drop the other patches which will send the metrics to ceph cluster for
now.

We can get the metrics from the debugfs:

$ cat /sys/kernel/debug/ceph/0c93a60d-5645-4c46-8568-4c8f63db4c7f.client4267/metrics 
item          total       sum_lat(us)     avg_lat(us)
-----------------------------------------------------
read          13          417000          32076
write         42          131205000       3123928
metadata      104         493000          4740

item          total           miss            hit
-------------------------------------------------
d_lease       204             0               918
caps          204             213             368218


Xiubo Li (5):
  ceph: add global dentry lease metric support
  ceph: add caps perf metric for each session
  ceph: add global read latency metric support
  ceph: add global write latency metric support
  ceph: add global metadata perf metric support

 fs/ceph/acl.c                   |   2 +
 fs/ceph/addr.c                  |  13 ++++
 fs/ceph/caps.c                  |  31 ++++++++++
 fs/ceph/debugfs.c               |  71 ++++++++++++++++++++--
 fs/ceph/dir.c                   |  25 ++++++--
 fs/ceph/file.c                  |  22 +++++++
 fs/ceph/mds_client.c            | 103 +++++++++++++++++++++++++++++++-
 fs/ceph/mds_client.h            |   4 ++
 fs/ceph/metric.h                |  65 ++++++++++++++++++++
 fs/ceph/quota.c                 |   9 ++-
 fs/ceph/super.h                 |  10 ++++
 fs/ceph/xattr.c                 |  17 +++++-
 include/linux/ceph/osd_client.h |   1 +
 net/ceph/osd_client.c           |   2 +
 14 files changed, 360 insertions(+), 15 deletions(-)
 create mode 100644 fs/ceph/metric.h