]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: Add cleanup message with time to rados bench output 8913/head
authorVikhyat Umrao <vumrao@redhat.com>
Mon, 9 May 2016 12:30:28 +0000 (18:00 +0530)
committerVikhyat Umrao <vumrao@redhat.com>
Mon, 9 May 2016 12:30:28 +0000 (18:00 +0530)
Fixes: http://tracker.ceph.com/issues/15704
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
src/common/obj_bencher.cc

index 6cb1e1e20bad7ee90348a43789bf892582e3d4e5..d4b2c1338f0c2edc0a4fcb22d5f3b6456cb2304d 100644 (file)
@@ -226,6 +226,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);
@@ -286,9 +287,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;