File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/crimson/tools/store_bench Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 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
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" )
You can’t perform that action at this time.
0 commit comments