From 1e06f1180124e0b8ac5f8fccbfa0f467e94c30c7 Mon Sep 17 00:00:00 2001 From: Alexey Kostin Date: Mon, 11 Mar 2019 17:02:13 +0300 Subject: [PATCH] Readme help update. Output stats indention fix --- README.md | 12 ++++++++++-- ceph-gobench.go | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d6944e9..dbb2c9e 100644 --- a/README.md +++ b/README.md @@ -20,15 +20,19 @@ Quickstart 2. Create pool with size=1 min_size=1 (default pool name "bench") 3. Use ``` -Usage of ./ceph-gobench: +Usage of ./ceph-gobench-v1.3: -c, --config (= "/etc/ceph/ceph.conf") Ceph config +--cpuprofile (= "") + Name of cpuprofile -d, --duration (= 30s) Time limit for each test in seconds --define (= "") - Define specifically osd or host. osd.X or ceph-host-X + Define specifically osd or host. Example: osd.X, ceph-host-X -k, --keyring (= "/etc/ceph/ceph.client.admin.keyring") Ceph user keyring +--memprofile (= "") + Name of memprofile -n, --cluster (= "ceph") Ceph cluster name -o, --objectsize (= "4M") @@ -37,12 +41,16 @@ Usage of ./ceph-gobench: Ceph pool --parallel (= false) Do test all osd in parallel mode +--rdefine (= "") + Rdefine specifically osd or host in Posix Regex (replaces define). Example: osd.X, ceph-host-X, osd.[0-9]1?$, ceph-host-[1-2]~hdd -s, --blocksize (= "4K") Block size in format KB = K = KiB = 1024 MB = M = MiB = 1024 * K GB = G = GiB = 1024 * M TB = T = TiB = 1024 * G -t, --threads (= 1) Threads count on each osd -u, --user (= "client.admin") Ceph user (cephx) +-v, --version (= false) + Show version ``` How it works diff --git a/ceph-gobench.go b/ceph-gobench.go index c92d121..0083169 100644 --- a/ceph-gobench.go +++ b/ceph-gobench.go @@ -333,7 +333,7 @@ func main() { color.Set(color.FgHiYellow) defer color.Unset() - fmt.Printf("Average iops per osd:%5d Average speed per osd: %.3f MB/s\n"+ + fmt.Printf("Average iops per osd:%9d Average speed per osd: %.3f MB/s\n"+ "Total writes count:%11d Total writes (MB): %v\n", avgIops, avgSpeed, countLat, uint64(countLat)*params.blocksize/1024/1024) if params.parallel {