]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd:update some documents of rbd bench 17461/head
authorPCzhangPC <pengcheng.zhang@easystack.cn>
Fri, 15 Sep 2017 06:24:26 +0000 (14:24 +0800)
committerPCzhangPC <pengcheng.zhang@easystack.cn>
Fri, 15 Sep 2017 06:24:26 +0000 (14:24 +0800)
Signed-off-by: PCzhangPC <pengcheng.zhang@easystack.cn>
doc/man/8/rbd.rst
src/test/cli/rbd/help.t

index c37ca44749815953cc098f78c69d14c5bd2da3b2..2e68ea02de6c0518b4ab49523f73a4c276f39ac3 100644 (file)
@@ -377,11 +377,11 @@ Commands
   Release a lock on an image. The lock id and locker are
   as output by lock ls.
 
-:command:`bench` --io-type <read | write> [--io-size *size-in-B/K/M/G/T*] [--io-threads *num-ios-in-flight*] [--io-total *size-in-B/K/M/G/T*] [--io-pattern seq | rand] *image-spec*
+:command:`bench` --io-type <read | write | readwrite | rw> [--io-size *size-in-B/K/M/G/T*] [--io-threads *num-ios-in-flight*] [--io-total *size-in-B/K/M/G/T*] [--io-pattern seq | rand] [--rw-mix-read *read proportion in readwrite*] *image-spec*
   Generate a series of IOs to the image and measure the IO throughput and
   latency.  If no suffix is given, unit B is assumed for both --io-size and
   --io-total.  Defaults are: --io-size 4096, --io-threads 16, --io-total 1G,
-  --io-pattern seq.
+  --io-pattern seq, --rw-mix-read 50.
 
 :command:`trash ls` [*pool-name*]
   List all entries from trash.
index c9b9e043c7d2f05385fca45ebeba08f43ea05226..eed9aab9e738f5c0201d59bc5ee56510c3986000 100644 (file)
@@ -123,7 +123,8 @@ Skip test on FreeBSD as it generates different output there.
   rbd help bench
   usage: rbd bench [--pool <pool>] [--image <image>] [--io-size <io-size>] 
                    [--io-threads <io-threads>] [--io-total <io-total>] 
-                   [--io-pattern <io-pattern>] --io-type <io-type> 
+                   [--io-pattern <io-pattern>] 
+                   [--rw-mix-read <rw-mix-read>] --io-type <io-type> 
                    <image-spec> 
   
   Simple benchmark.
@@ -139,7 +140,8 @@ Skip test on FreeBSD as it generates different output there.
     --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)
+    --rw-mix-read arg    read proportion in readwrite (<= 100) [default: 50]
+    --io-type arg        IO type (read , write, or readwrite(rw))
   
   rbd help children
   usage: rbd children [--pool <pool>] [--image <image>] [--snap <snap>]