diff options
author | Dongsheng Yang <dongsheng.yang@easystack.cn> | 2016-05-13 10:57:32 +0200 |
---|---|---|
committer | Dongsheng Yang <dongsheng.yang@easystack.cn> | 2016-06-20 07:24:44 +0200 |
commit | 23a135d2a8a9fc5acb8d833419d564eac8f3933b (patch) | |
tree | efefd913cc8806e6b9bbbdbb36c93e20610c6f47 /doc/man | |
parent | tools/rbd: make bench-write invisible to user (diff) | |
download | ceph-23a135d2a8a9fc5acb8d833419d564eac8f3933b.tar.xz ceph-23a135d2a8a9fc5acb8d833419d564eac8f3933b.zip |
tools/rbd: introduce a simple bench for read
Currently, we have a bench-write for in rbd tool, but we don't have
a simple bench for read.
This patch add a new subcommand of bench, with an option of --io-type.
Then we can do a simple bench for write or read.
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Diffstat (limited to 'doc/man')
-rw-r--r-- | doc/man/8/rbd.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/man/8/rbd.rst b/doc/man/8/rbd.rst index c9136f699da..9ba5442e7a1 100644 --- a/doc/man/8/rbd.rst +++ b/doc/man/8/rbd.rst @@ -369,6 +369,13 @@ 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 *total-size-for-IO-in-B/K/M/G/T*] [--io-pattern seq | rand] *image-spec* + Generate a series of IOs to the image and measure the IO throughput and + latency. Defaults are: --io-size 4096, --io-threads 16, --io-total 1G, + --io-pattern seq. + + NOTE: --io-type must be specified. + Image and snap specs ==================== |