]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd/bench: add notes of default values, it's more easy to use 14762/head
authorzy751713126 <zhengyin@chinac.com>
Tue, 25 Apr 2017 02:52:12 +0000 (10:52 +0800)
committerzy751713126 <zhengyin@chinac.com>
Tue, 25 Apr 2017 10:08:43 +0000 (18:08 +0800)
Signed-off-by: Zheng Yin <zhengyin@chinac.com>
src/test/cli/rbd/help.t
src/tools/rbd/action/Bench.cc

index 8d4d5f59c3c4308ef5482d04a74ed15cf43fc709..b775c37ab8965153bd55c8e984381f85706dd31b 100644 (file)
   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
index f40c899fd48957529ea736d620b7432297b83d1a..d985922a7b193ce6bd1e037fbcceede271011012 100644 (file)
@@ -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<Size>(), "IO size (in B/K/M/G/T)")
-    ("io-threads", po::value<uint32_t>(), "ios in flight")
-    ("io-total", po::value<Size>(), "total size for IO (in B/K/M/G/T)")
-    ("io-pattern", po::value<IOPattern>(), "IO pattern (rand or seq)");
+    ("io-size", po::value<Size>(), "IO size (in B/K/M/G/T) [default: 4K]")
+    ("io-threads", po::value<uint32_t>(), "ios in flight [default: 16]")
+    ("io-total", po::value<Size>(), "total size for IO (in B/K/M/G/T) [default: 1G]")
+    ("io-pattern", po::value<IOPattern>(), "IO pattern (rand or seq) [default: seq]");
 }
 
 void get_arguments_for_write(po::options_description *positional,