]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Add snaptrim duration to pg dump stats.
authorSridhar Seshasayee <sseshasa@redhat.com>
Mon, 14 Mar 2022 20:08:57 +0000 (01:38 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Tue, 15 Mar 2022 19:03:24 +0000 (00:33 +0530)
commita86ead953dc5fa2c78a4fe86700b0c1aba2727af
tree147aab7fc1c95d7252386c41b68b22753f21b490
parent00249dc0cc69d4c065acbb33543d10cb360930dc
osd: Add snaptrim duration to pg dump stats.

Add the snaptrim duration to the json formatted output of the pg dump
stats. Define methods for a PG to set the snaptrim begin time and then to
calculate the total time spent to trim all the objects for the snaps in
the snap_trimq for the PG.

Tests:
  - Librados C and C++ API tests to verify the time spent for a snaptrim
    operation on a PG. These tests use the self-managed snaps APIs.
  - Standalone tests to verify snaptrim duration using rados pool snaps.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
qa/standalone/misc/test-snaptrim-stats.sh
src/osd/PG.h
src/osd/PeeringState.cc
src/osd/PrimaryLogPG.cc
src/osd/osd_types.cc
src/osd/osd_types.h
src/test/librados/snapshots_stats.cc
src/test/librados/snapshots_stats_cxx.cc