-
Notifications
You must be signed in to change notification settings - Fork 1
/
ceph-benchmark.txt
269 lines (218 loc) · 10.8 KB
/
ceph-benchmark.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
SIZE = 1 2 3
min(rados write bandwidth) 532 MB/s 284 MB/s 208 MB/s
max(rados write bandwidth) 664 MB/s 340 MB/s 232 MB/s
avg(rados write bandwidth) 611.24 MB/s 315.927 MB/s 217.66 MB/s
min(rados write iops) 133 71 52
max(rados write iops) 166 85 58
avg(rados write iops) 152 78 54
min(rados write latency) 0.0216326 s 0.0451797 s 0.0971047 s
max(rados write latency) 0.331608 s 0.650051 s 0.740628 s
avg(rados write latency) 0.104551 s 0.202537 s 0.292918 s
avg(rados read seq bandwidth) 279.206 MB/s 272.034 MB/s 225.59 MB/s
max(rados read seq iops) 86 76 72
min(rados read seq iops) 64 59 41
avg(rados read seq iops) 69 68 56
max(rados read seq latency) 1.72518 s 1.27787 s 2.376 s
min(rados read seq latency) 0.0126851 s 0.0134171 s 0.00690721 s
avg(rados read rnd bandwidth) 307.492 MB/s 699.573 MB/s 835.271 MB/s
avg(rados read seq latency) 0.227845 s 0.23389 s 0.282136 s
max(rados read rnd iops) 96 192 219
min(rados read rnd iops) 48 153 199
avg(rados read rnd iops) 76 174 208
max(rados read rnd latency) 1.32682 s 0.818553 s 0.347944 s
min(rados read rnd latency) 0.00751158 s 0.00819301 s 0.00917421 s
avg(rados read rnd latency) 0.205178 s 0.0890282 s 0.0739418 s
avg(rbd dd write bs=10M xfs 1 thread) 537 MB/s 302 MB/s 225 MB/s
avg(rbd dd write bs=10M xfs 2 thread) 285 MB/s 150.5 MB/s 114.5 MB/s
avg(rbd dd write bs=10M xfs 3 thread) 177 MB/s 99.7 MB/s 76.52 MB/s
avg(rbd dd write bs=10M xfs 4 thread) 129 MB/s 75.82 MB/s 46.22 MB/s
avg(rbd dd write bs=10M xfs 5 thread) 109.6 MB/s 57.28 MB/s 30.64 MB/s
avg(rbd dd write bs=10M xfs 6 thread) 90.45 MB/s 45.92 MB/s 23.42 MB/s
avg(rbd dd write bs=10M xfs 7 thread) 74.17 MB/s 40.2 MB/s 21.94 MB/s
avg(rbd dd write bs=10M xfs 8 thread) 63.26 MB/s 35.02 MB/s 25.46 MB/s
avg(rbd dd write bs=4K xfs 1 thread) 321 MB/s
avg(rbd dd write bs=4K xfs 2 thread) 160 MB/s
avg(rbd dd write bs=4K xfs 3 thread) 97.93 MB/s
avg(rbd dd write bs=4K xfs 4 thread) 74.65 MB/s
avg(rbd dd write bs=4K xfs 5 thread) 56.4 MB/s
avg(rbd dd write bs=4K xfs 6 thread) 46.57 MB/s
avg(rbd dd write bs=4K xfs 7 thread) 40.51 MB/s
avg(rbd dd write bs=4K xfs 8 thread) 34.66 MB/s
avg(rbd dd read bs=10M xfs 1 thread) 47.1 MB/s
avg(rbd dd read bs=10M xfs 2 thread) 55.35 MB/s
avg(rbd dd read bs=10M xfs 3 thread) 45.4 MB/s
avg(rbd dd read bs=10M xfs 4 thread) 37.82 MB/s
avg(rbd dd read bs=10M xfs 5 thread) 31.68 MB/s
avg(rbd dd read bs=10M xfs 6 thread) 28.08 MB/s
avg(rbd dd read bs=10M xfs 7 thread) 24.81 MB/s
avg(rbd fio rnd write bs=4K) 15.8 MB/s 10.13 MB/s 6.74 MB/s
avg(rbd fio rnd write iops bs=4K) 3939 2593 1724
avg(rbd fio rnd write bs=10M) 493 MB/s 240.56 MB/s 40.42 MB/s
avg(rbd fio rnd write iops bs=10M) 48 24 4
avg(rbd self-test bandwidth) 140 MB/s 91.84 MB/s 36.31 MB/s
avg(rbd self-test iops) 35845.02 23511.33 9295.16
avg(cephfs dd write bs=10M 1 thread) 295 MB/s
avg(cephfs dd write bs=10M 2 thread) 117.5 MB/s
avg(cephfs dd write bs=10M 3 thread) 72.67 MB/s
avg(cephfs dd write bs=10M 4 thread) 61 MB/s
avg(cephfs dd write bs=10M 5 thread) 49.74 MB/s
avg(cephfs dd write bs=10M 6 thread) 41.88 MB/s
avg(cephfs dd write bs=10M 7 thread) 36.27 MB/s
avg(cephfs dd write bs=10M 8 thread) 31.59 MB/s
avg(cephfs dd write bs=4K 1 thread) 79.4 MB/s
avg(cephfs dd write bs=4K 2 thread) 40.1 MB/s
dd count for each thread [bs = 10M]: (size=1,count=1000, size=2,count=500, size=3,count=250)
dd count for each thread [bs = 4K]: (size=1,count=2500000, size=2,count=1250000, size=3,count=625000)
==========================================================
fio write 4k:
==========================================================
[global]
ioengine=rbd
clientname=admin
pool=rbd
rbdname=test
rw=randwrite
bs=4k
[rbd_iodepth32]
iodepth=32
==========================================================
fio write 10m:
==========================================================
[global]
ioengine=rbd
clientname=admin
pool=rbd
rbdname=test
rw=randwrite
bs=10m
[rbd_iodepth32]
iodepth=32
==========================================================
fio independent random IO test:
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=/fanava/test --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75
==========================================================
fio independent random read test:
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randread
==========================================================
fio independent random write test:
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randwrite
==========================================================
bonnie++ benchmark
bonnie++ -d /fanava/ -r 4096 -u root
=======================================================================================
http://tracker.ceph.com/projects/ceph/wiki/Benchmark_Ceph_Cluster_Performance
>>>>>> Benchmark RADOS
# create a pool for benchmarking
ceph osd pool create scbench 100 100
# benchmark write
rados bench -p scbench 10 write --no-cleanup
# benchmark sequential read
rados bench -p scbench 10 seq
# benchmark random read
rados bench -p scbench 10 rand
# cleanup all
rados -p scbench cleanup
# remove test pool
ceph osd pool delete scbench scbench --yes-i-really-really-mean-it
>>>>> Benchmark RBD
# initiate benchmark
ceph osd pool create rbdbench 100 100
rbd create image01 --size 1024 --pool rbdbench
sudo rbd map image01 --pool rbdbench --name client.admin
sudo /sbin/mkfs.ext4 -m0 /dev/rbd/rbdbench/image01
sudo mkdir /mnt/ceph-block-device
sudo mount /dev/rbd/rbdbench/image01 /mnt/ceph-block-device
rbd bench-write image01 --pool=rbdbench
# cleanup
sudo umount /mnt/ceph-block-device
sudo rm -rfv /mnt/ceph-block-device
rbd unmap /dev/rbd/rbdbench/image01
rbd rm rbdbench/image01
ceph osd pool delete rbdbench rbdbench --yes-i-really-really-mean-it
>>>>>> Benchmark DD
# initialize image
rbd create test_image --size 102400
rbd map test_image
mkfs.xfs /dev/rbd/rbd/test_image
mount /dev/rbd/rbd/test_image /mnt
# benchmark 1 stream
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000
# benchmark 2 streams
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test2.dat bs=1M count=2000
# benchmark 3 streams
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test2.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test3.dat bs=1M count=2000
# benchmark 4 streams
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test2.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test3.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test4.dat bs=1M count=2000
# benchmark 5 streams
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test2.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test3.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test4.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test5.dat bs=1M count=2000
# benchmark 6 streams
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test2.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test3.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test4.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test5.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test6.dat bs=1M count=2000
# benchmark 7 streams
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test2.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test3.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test4.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test5.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test6.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test7.dat bs=1M count=2000
# benchmark 8 streams
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test2.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test3.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test4.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test5.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test6.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test7.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test8.dat bs=1M count=2000
# benchmark 9 streams
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test2.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test3.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test4.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test5.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test6.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test7.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test8.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test9.dat bs=1M count=2000
# benchmark 10 streams
sudo dd if=/dev/zero of=/mnt/test1.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test2.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test3.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test4.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test5.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test6.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test7.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test8.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test9.dat bs=1M count=2000&
sudo dd if=/dev/zero of=/mnt/test10.dat bs=1M count=2000
# cleanup
sudo umount /mnt
rbd unmap /dev/rbd/rbd/test_image
rbd rm test_image
>>>>>> Benchmark fio
# setup
rbd create test --size 10240
rbd map test
mkfs.xfs /dev/rbd/rbd/test
# test random write using 4k block
sudo fio fio-write-4k.cfg
# test random write using 10m block
sudo fio fio-write-10m.cfg
# cleanup
rbd unmap /dev/rbd/rbd/test
rbd rm rbd/test