summaryrefslogtreecommitdiff
path: root/src/common/obj_bencher.h
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-06-05 12:27:56 -0700
committerSamuel Just <sam.just@inktank.com>2013-06-06 11:51:04 -0700
commit02154a24101eeb9bbcb76e6bb17034bb587021ac (patch)
tree3431bf90675cd5de8438a7e6a8f30d6e60e0704b /src/common/obj_bencher.h
parent6f78b6e039ddd475b0317f121a3e0cac407333df (diff)
downloadceph-wip_bench_num.tar.gz
rados: --num-objects will now cause bench to stop after that many objectswip_bench_num
Signed-off-by: Samuel Just <sam.just@inktank.com>
Diffstat (limited to 'src/common/obj_bencher.h')
-rw-r--r--src/common/obj_bencher.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/obj_bencher.h b/src/common/obj_bencher.h
index 60159646ad7..d626eda376d 100644
--- a/src/common/obj_bencher.h
+++ b/src/common/obj_bencher.h
@@ -60,7 +60,7 @@ protected:
int fetch_bench_metadata(const std::string& metadata_file, int* object_size, int* num_objects, int* prevPid);
- int write_bench(int secondsToRun, int concurrentios);
+ int write_bench(int secondsToRun, int maxObjects, int concurrentios);
int seq_read_bench(int secondsToRun, int concurrentios, int num_objects, int writePid);
int clean_up(int num_objects, int prevPid, int concurrentios);
@@ -91,7 +91,9 @@ protected:
public:
ObjBencher() : show_time(false), lock("ObjBencher::lock") {}
virtual ~ObjBencher() {}
- int aio_bench(int operation, int secondsToRun, int concurrentios, int op_size, bool cleanup);
+ int aio_bench(
+ int operation, int secondsToRun, int maxObjectsToCreate,
+ int concurrentios, int op_size, bool cleanup);
int clean_up(const std::string& prefix, int concurrentios);
void set_show_time(bool dt) {