Skip to content

ceph: forward average read/write/metadata latency

Venky Shankar ceph-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 2/24 patches 2 repliesIn review
  2. v3 Latest4 patches 7 repliesIn review
  3. v2 posting 1/24 patches 14 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches4 repliesSuperseded

Changes in v3 from the cover letter

- rework average/stdev handling by maintaining sum of squares and calculating standard deviation when sending metrics

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ceph: use "struct ceph_timespec" for r/w/m latenciesfs/ceph/metric.c fs/ceph/metric.h+10 -130 replies
2/4ceph: track average/stdev r/w/m latencyfs/ceph/metric.c fs/ceph/metric.h+31 -357 replies
3/4ceph: include average/stddev r/w/m latency in mds metricsfs/ceph/metric.c fs/ceph/metric.h+63 -310 replies
4/4ceph: use tracked average r/w/m latencies to display metrics in debugfsfs/ceph/debugfs.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] ceph: forward average read/write/metadata latency

v3:
- rework average/stdev handling by maintaining sum of squares and calculating standard deviation when sending metrics

Right now, cumulative read/write/metadata latencies are tracked and are periodically forwarded to the MDS. These meterics are not particularly useful. A much more useful metric is the average latency and standard deviation (stdev) which is what this series of patches aims to do.

The userspace (libcephfs+tool) changes are here::

          https://github.com/ceph/ceph/pull/41397

The math involved in keeping track of the average latency and stdev are adjusted to closely mimic how its done in user space ceph (with some restrictions obviously) as per::

NEW_AVG = OLD_AVG + ((latency - OLD_AVG) / total_ops) NEW_STDEV = SQRT(SQ_SUM / (total_ops - 1))

Note that the cumulative latencies are still forwarded to the MDS but the tool (cephfs-top) ignores it altogether.

Venky Shankar (4):
ceph: use "struct ceph_timespec" for r/w/m latencies
ceph: track average/stdev r/w/m latency
ceph: include average/stddev r/w/m latency in mds metrics
ceph: use tracked average r/w/m latencies to display metrics in
debugfs

 fs/ceph/debugfs.c |   6 +--
 fs/ceph/metric.c  | 109 ++++++++++++++++++++++++----------------------
 fs/ceph/metric.h  |  62 ++++++++++++++++----------
 3 files changed, 101 insertions(+), 76 deletions(-)
Signature · 1 line
2.31.1