From: PCzhangPC Date: Mon, 16 Oct 2017 13:26:17 +0000 (+0800) Subject: rbd:show read:write proportion in the infomation of readwrite bench test X-Git-Tag: v13.0.1~549^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18249%2Fhead;p=ceph.git rbd:show read:write proportion in the infomation of readwrite bench test Signed-off-by: PCzhangPC --- diff --git a/src/tools/rbd/action/Bench.cc b/src/tools/rbd/action/Bench.cc index 2ff851e172a8..8e15a7dcf73e 100644 --- a/src/tools/rbd/action/Bench.cc +++ b/src/tools/rbd/action/Bench.cc @@ -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