]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd:show read:write proportion in the infomation of readwrite bench test 18249/head
authorPCzhangPC <pengcheng.zhang@easystack.cn>
Mon, 16 Oct 2017 13:26:17 +0000 (21:26 +0800)
committerPCzhangPC <pengcheng.zhang@easystack.cn>
Mon, 16 Oct 2017 13:26:17 +0000 (21:26 +0800)
Signed-off-by: PCzhangPC <pengcheng.zhang@easystack.cn>
src/tools/rbd/action/Bench.cc

index 2ff851e172a836ee42c23caae5e1bd944a8f212c..8e15a7dcf73e031eb92be58f8070967ccc2eb76c 100644 (file)
@@ -212,6 +212,8 @@ int do_bench(librbd::Image& image, io_type_t io_type,
   std::cout << "bench "
        << " type " << (io_type == IO_TYPE_READ ? "read" :
                        io_type == IO_TYPE_WRITE ? "write" : "readwrite")
+       << (io_type == IO_TYPE_RW ? " read:write=" +
+           to_string(read_proportion) + ":" + to_string(100 - read_proportion) : "")
        << " io_size " << io_size
        << " io_threads " << io_threads
        << " bytes " << io_bytes