]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
src/ceph_osd, osd: Implement running benchmark during OSD creation
authorSridhar Seshasayee <sseshasa@redhat.com>
Mon, 23 Jun 2025 08:25:18 +0000 (13:55 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Wed, 16 Jul 2025 19:16:55 +0000 (00:46 +0530)
commit74925d762144d2b7ac8a5682db66cdbeb4fe2dae
treec46866e65c3b56a9ef1a96c521b4317deb2e45f3
parentdde7f4a01e7eef44e0da9378f609ee900d7202d6
src/ceph_osd, osd: Implement running benchmark during OSD creation

The changeset implements the following:

1. Adds an option called "--run-benchmark" to the ceph-osd process to enable
   running the existing osd benchmark during the creation of the OSD but before
   it's added to the cluster. If the option is specified, the benchmark is run
   just after 'mkfs' is performed on the OSD.
2. A separate OSDBenchTest class is created that can be instantiated when the
   benchmark is needed to be run. The class has interfaces to perform precheck,
   prefill, run the actual randwrite test and do the cleanup. It also has
   interfaces to extract the metrics. The new class in used where applicable
   and maintains the existing behavior of the "bench" command.
3. The vstart.sh script is modified to run the benchmark and store the results
   for each OSD in ceph.conf. This currently prevents the execution of the
   existing benchmark during the OSD boot-up.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
Fixes: https://tracker.ceph.com/issues/71941
src/ceph_osd.cc
src/osd/OSD.cc
src/osd/OSD.h
src/vstart.sh