Skip to content

Commit 99d463a

Browse files
committed
crimson/tools/store_bench: update example, switch to --debug
Signed-off-by: Matan Breizman <[email protected]>
1 parent 2092ad0 commit 99d463a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/crimson/tools/store_bench/store-bench.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Usage should be:
1010
*
11-
* crimson-store-bench --store-path <path>
11+
* crimson-store-bench --store-path <path> --duration <seconds> --work-load-type <type>
1212
*
1313
* where <path> is a directory containing a file block. block should either
1414
* be a symlink to an actual block device or a file truncated to an appropriate
@@ -21,7 +21,7 @@
2121
mkdir store_bench_dir
2222
touch store_bench_dir/block
2323
truncate -s 10G store_bench_dir/block
24-
./build/bin/crimson-store-bench --store-path store_bench_dir --smp 4 "$@"
24+
./build/bin/crimson-store-bench --store-path store_bench_dir --smp 4 --duration 10 --work-load-type pg_log --seastore_device_size 10G
2525
*/
2626

2727
#include <random>
@@ -786,9 +786,8 @@ int main(int argc, char **argv) {
786786
*/
787787
("store-path", po::value<std::string>(&store_path)->required(),
788788
"path to store, <store-path>/block should "
789-
"be a symlink to the target device for bluestore or seastore")(
790-
"debug", po::value<bool>(&debug)->default_value(false),
791-
"enable debugging")
789+
"be a symlink to the target device for bluestore or seastore")
790+
("debug", po::bool_switch(&debug), "enable debugging")
792791
("work-load-type",
793792
po::value<std::string>(&work_load_type)->required(),
794793
"work load type: pg_log or rgw_index")

0 commit comments

Comments
 (0)