]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: Add cleanup message with time to rados bench output 9740/head
authorVikhyat Umrao <vumrao@redhat.com>
Mon, 9 May 2016 12:30:28 +0000 (18:00 +0530)
committerVikhyat Umrao <vumrao@redhat.com>
Thu, 16 Jun 2016 04:05:01 +0000 (09:35 +0530)
Fixes: http://tracker.ceph.com/issues/16338
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
(cherry picked from commit 885ebb1650bb4a355600d85ca436c1ecd4916dce)

src/common/obj_bencher.cc

index 9a2215e46162d2787f23d4993c8f0f83acba3228..267806cf4d59745083c1d04010722f6ed999567d 100644 (file)
@@ -231,6 +231,7 @@ int ObjBencher::aio_bench(
   int num_objects = 0;
   int r = 0;
   int prevPid = 0;
+  utime_t runtime;
 
   // default metadata object is used if user does not specify one
   const std::string run_name_meta = (run_name.empty() ? BENCH_LASTRUN_METADATA : run_name);
@@ -291,9 +292,15 @@ int ObjBencher::aio_bench(
       goto out;
     }
 
+    data.start_time = ceph_clock_now(cct);
+    out(cout) << "Cleaning up (deleting benchmark objects)" << std::endl;
+
     r = clean_up(num_objects, prevPid, concurrentios);
     if (r != 0) goto out;
 
+    runtime = ceph_clock_now(cct) - data.start_time;
+    out(cout) << "Clean up completed and total clean up time :" << runtime << std::endl;
+
     // lastrun file
     r = sync_remove(run_name_meta);
     if (r != 0) goto out;