|
昨天入手了Contabo,在论坛学习了一番,然后跟着教程发邮件解除了IO限制。

但是Contabo回复的邮件,写明默认的IO速度 能达到IOPS最大值,4k随机读写最佳,做网站最重要的是4K!
虽然解除了io限制,提高了顺序读写速度,但是iops会下降!
于是又学习了一番怎么测4k
- fio --time_based --name=benchmark --size=256M --runtime=60 --filename=benchmark --randrepeat=1 --iodepth=32 --direct=1 --invalidate=1 --verify=0 --verify_fatal=0 --numjobs=8 --rw=randwrite --blocksize=4k --group_reporting
复制代码
下面是测试结果
- benchmark: Laying out IO file (1 file / 256MiB)
- Jobs: 8 (f=8): [w(8)][100.0%][r=0KiB/s,w=4004KiB/s][r=0,[b]w=1001 IOPS[/b]][eta 00m:00s]
- benchmark: (groupid=0, jobs=8): err= 0: pid=25082: Tue Dec 3 09:58:26 2019
- write:[b] IOPS=1158[/b], BW=4632KiB/s (4743kB/s)(271MiB/60009msec)
- clat (usec): min=53, max=336102, avg=6902.97, stdev=19207.62
- lat (usec): min=53, max=336103, avg=6903.67, stdev=19207.63
- clat percentiles (usec):
- | 1.00th=[ 66], 5.00th=[ 78], 10.00th=[ 93], 20.00th=[ 125],
- | 30.00th=[ 1139], 40.00th=[ 1172], 50.00th=[ 1188], 60.00th=[ 1205],
- | 70.00th=[ 1237], 80.00th=[ 1270], 90.00th=[ 23725], 95.00th=[ 46400],
- | 99.00th=[ 93848], 99.50th=[116917], 99.90th=[173016], 99.95th=[217056],
- | 99.99th=[283116]
- bw ( KiB/s): min= 48, max= 7384, per=12.50%, avg=578.89, stdev=612.31, samples=960
- [b] iops : min= 12, max= 1846, avg=144.67, stdev=153.08, samples=960[/b]
- lat (usec) : 100=12.67%, 250=13.68%, 500=0.35%, 750=0.05%, 1000=0.19%
- lat (msec) : 2=57.72%, 4=0.72%, 10=1.48%, 20=2.30%, 50=6.43%
- lat (msec) : 100=3.58%, 250=0.81%, 500=0.02%
- cpu : usr=0.13%, sys=1.15%, ctx=138977, majf=0, minf=257
- IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
- submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
- complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
- issued rwts: total=0,69491,0,0 short=0,0,0,0 dropped=0,0,0,0
- latency : target=0, window=0, percentile=100.00%, depth=32
- Run status group 0 (all jobs):
- WRITE: bw=4632KiB/s (4743kB/s), 4632KiB/s-4632KiB/s (4743kB/s-4743kB/s), io=271MiB (285MB), run=60009-60009msec
复制代码
不知道没解除限制前iops是多少?有没有大佬测一下
|
|