parent
773c4b985a
commit
1e06f11801
12
README.md
12
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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue