From 79b6695689eabce5ada0efcee8740696c419f4db Mon Sep 17 00:00:00 2001 From: zy751713126 Date: Tue, 25 Apr 2017 10:52:12 +0800 Subject: [PATCH] rbd/bench: add notes of default values, it's more easy to use Signed-off-by: Zheng Yin --- src/test/cli/rbd/help.t | 8 ++++---- src/tools/rbd/action/Bench.cc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/cli/rbd/help.t b/src/test/cli/rbd/help.t index 8d4d5f59c3c43..b775c37ab8965 100644 --- a/src/test/cli/rbd/help.t +++ b/src/test/cli/rbd/help.t @@ -121,10 +121,10 @@ Optional arguments -p [ --pool ] arg pool name --image arg image name - --io-size arg IO size (in B/K/M/G/T) - --io-threads arg ios in flight - --io-total arg total size for IO (in B/K/M/G/T) - --io-pattern arg IO pattern (rand or seq) + --io-size arg IO size (in B/K/M/G/T) [default: 4K] + --io-threads arg ios in flight [default: 16] + --io-total arg total size for IO (in B/K/M/G/T) [default: 1G] + --io-pattern arg IO pattern (rand or seq) [default: seq] --io-type arg IO type (read or write) rbd help children diff --git a/src/tools/rbd/action/Bench.cc b/src/tools/rbd/action/Bench.cc index f40c899fd4895..d985922a7b193 100644 --- a/src/tools/rbd/action/Bench.cc +++ b/src/tools/rbd/action/Bench.cc @@ -314,10 +314,10 @@ void add_bench_common_options(po::options_description *positional, at::add_image_spec_options(positional, options, at::ARGUMENT_MODIFIER_NONE); options->add_options() - ("io-size", po::value(), "IO size (in B/K/M/G/T)") - ("io-threads", po::value(), "ios in flight") - ("io-total", po::value(), "total size for IO (in B/K/M/G/T)") - ("io-pattern", po::value(), "IO pattern (rand or seq)"); + ("io-size", po::value(), "IO size (in B/K/M/G/T) [default: 4K]") + ("io-threads", po::value(), "ios in flight [default: 16]") + ("io-total", po::value(), "total size for IO (in B/K/M/G/T) [default: 1G]") + ("io-pattern", po::value(), "IO pattern (rand or seq) [default: seq]"); } void get_arguments_for_write(po::options_description *positional, -- 2.39.5