From: Matan Breizman Date: Mon, 18 Aug 2025 13:59:28 +0000 (+0000) Subject: crimson/tools/store_bench: update example, switch to --debug X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=99d463a7d73cccb1061753910f2948c00f99564f;p=ceph.git crimson/tools/store_bench: update example, switch to --debug Signed-off-by: Matan Breizman --- diff --git a/src/crimson/tools/store_bench/store-bench.cc b/src/crimson/tools/store_bench/store-bench.cc index 9e062d0bd03..1312cbcb453 100644 --- a/src/crimson/tools/store_bench/store-bench.cc +++ b/src/crimson/tools/store_bench/store-bench.cc @@ -8,7 +8,7 @@ * * Usage should be: * - * crimson-store-bench --store-path + * crimson-store-bench --store-path --duration --work-load-type * * where is a directory containing a file block. block should either * be a symlink to an actual block device or a file truncated to an appropriate @@ -21,7 +21,7 @@ mkdir store_bench_dir touch store_bench_dir/block truncate -s 10G store_bench_dir/block - ./build/bin/crimson-store-bench --store-path store_bench_dir --smp 4 "$@" + ./build/bin/crimson-store-bench --store-path store_bench_dir --smp 4 --duration 10 --work-load-type pg_log --seastore_device_size 10G */ #include @@ -786,9 +786,8 @@ int main(int argc, char **argv) { */ ("store-path", po::value(&store_path)->required(), "path to store, /block should " - "be a symlink to the target device for bluestore or seastore")( - "debug", po::value(&debug)->default_value(false), - "enable debugging") + "be a symlink to the target device for bluestore or seastore") + ("debug", po::bool_switch(&debug), "enable debugging") ("work-load-type", po::value(&work_load_type)->required(), "work load type: pg_log or rgw_index")