mysql壓力測試在青雲PCIE盤sysbench版本
對比測試“ mysql壓力測試在京東雲ssd雲盤sysbench版本 ” http://blog.itpub.net/30393770/viewspace-2150070/
一、環境:青雲Centos6.8 ,cpu16核,記憶體32G,SAS 3G,轉速未知 ,SSD雲盤300G
mysql 版本是:5.7.20 ,預設rpm安裝,單例項。
壓測工具是:sysbench1.0.9
mysql壓力測試在京東雲ssd雲盤fio測試4K隨機讀寫iops是
首先載入資料,23G,10個表,每個表的資料是1000萬。
看看資料量多少
二、測試1,首先做一個基準測試,慢慢往上加併發連線。10個表,1000萬資料,20個執行緒,60秒。tps是1345
三、測試2 tps 1364,這個和京東雲SSD上的測試很不一樣呀。增加執行緒了,tps也沒有什麼變化。我要重啟下mysql,再做一遍測試tps為1695,增加了一些。
四、測試3,執行緒達到256個,tps結果為2219,相比測試2的1695tps,tps還是上升了的。併發執行緒翻倍,再往上升
五、測試4,tps為1998,有下降,看來應該達到極限了。
一、環境:青雲Centos6.8 ,cpu16核,記憶體32G,SAS 3G,轉速未知 ,SSD雲盤300G
mysql 版本是:5.7.20 ,預設rpm安裝,單例項。
壓測工具是:sysbench1.0.9
mysql壓力測試在京東雲ssd雲盤fio測試4K隨機讀寫iops是
-
[root@mysqltest1 tmp]# fio fio.conf
-
4k_rand_write: (g=0): rw=randwrite, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=32
-
4k_rand_read: (g=1): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=32
-
4k_80_rand_read: (g=2): rw=randrw, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=32
-
8k_rand_write: (g=3): rw=randwrite, bs=8K-8K/8K-8K/8K-8K, ioengine=libaio, iodepth=32
-
8k_rand_read: (g=4): rw=randread, bs=8K-8K/8K-8K/8K-8K, ioengine=libaio, iodepth=32
-
8k_80_rand_read: (g=5): rw=randrw, bs=8K-8K/8K-8K/8K-8K, ioengine=libaio, iodepth=32
-
64k_rand_write: (g=6): rw=randwrite, bs=64K-64K/64K-64K/64K-64K, ioengine=libaio, iodepth=32
-
64k_rand_read: (g=7): rw=randread, bs=64K-64K/64K-64K/64K-64K, ioengine=libaio, iodepth=32
-
512k_seq_write: (g=8): rw=write, bs=512K-512K/512K-512K/512K-512K, ioengine=libaio, iodepth=32
-
512k_seq_read: (g=9): rw=read, bs=512K-512K/512K-512K/512K-512K, ioengine=libaio, iodepth=32
-
fio-2.0.13
-
Starting 10 threads
-
Jobs: 1 (f=0): [_________/] [-.-% done] [0K/41650K/0K /s] [0 /81 /0 iops] [eta 02m:05s]
-
4k_rand_write: (groupid=0, jobs=1): err= 0: pid=15681: Fri Jan 26 20:59:57 2018
-
write: io=5120.2MB, bw=58351KB/s, iops=14587 , runt= 89853msec
-
slat (usec): min=2 , max=145070 , avg= 9.16, stdev=333.61
-
clat (usec): min=1 , max=944673 , avg=2182.13, stdev=10050.99
-
lat (usec): min=40 , max=944683 , avg=2191.83, stdev=10062.63
-
clat percentiles (usec):
-
| 1.00th=[ 70], 5.00th=[ 123], 10.00th=[ 185], 20.00th=[ 290],
-
| 30.00th=[ 378], 40.00th=[ 462], 50.00th=[ 548], 60.00th=[ 676],
-
| 70.00th=[ 900], 80.00th=[ 1432], 90.00th=[ 3664], 95.00th=[ 7456],
-
| 99.00th=[30848], 99.50th=[57088], 99.90th=[128512], 99.95th=[164864],
-
| 99.99th=[333824]
-
bw (KB/s) : min= 0, max=155500, per=100.00%, avg=58393.10, stdev=30564.33
-
lat (usec) : 2=0.01%, 4=0.01%, 20=0.01%, 50=0.06%, 100=3.13%
-
lat (usec) : 250=12.75%, 500=28.71%, 750=19.40%, 1000=8.75%
-
lat (msec) : 2=11.69%, 4=6.12%, 10=6.07%, 20=1.79%, 50=0.94%
-
lat (msec) : 100=0.41%, 250=0.17%, 500=0.02%, 750=0.01%, 1000=0.01%
-
cpu : usr=6.75%, sys=17.53%, ctx=305533, majf=18446744073709551600, minf=18446744073709538833
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=106.3%, >=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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=0/w=1310720/d=0, short=r=0/w=0/d=0
-
4k_rand_read: (groupid=1, jobs=1): err= 0: pid=15743: Fri Jan 26 20:59:57 2018
-
read : io=5120.2MB, bw=294369KB/s, iops=73590 , runt= 17811msec
-
slat (usec): min=1 , max=19630 , avg= 3.34, stdev=31.93
-
clat (usec): min=24 , max=62910 , avg=430.26, stdev=981.54
-
lat (usec): min=29 , max=62912 , avg=433.89, stdev=982.23
-
clat percentiles (usec):
-
| 1.00th=[ 95], 5.00th=[ 121], 10.00th=[ 143], 20.00th=[ 181],
-
| 30.00th=[ 215], 40.00th=[ 247], 50.00th=[ 278], 60.00th=[ 310],
-
| 70.00th=[ 354], 80.00th=[ 414], 90.00th=[ 580], 95.00th=[ 1004],
-
| 99.00th=[ 3632], 99.50th=[ 4320], 99.90th=[12224], 99.95th=[23936],
-
| 99.99th=[31360]
-
bw (KB/s) : min= 0, max=479984, per=96.71%, avg=284680.75, stdev=152049.46
-
lat (usec) : 50=0.02%, 100=1.38%, 250=39.40%, 500=46.22%, 750=6.01%
-
lat (usec) : 1000=1.97%
-
lat (msec) : 2=2.01%, 4=2.28%, 10=0.60%, 20=0.05%, 50=0.07%
-
lat (msec) : 100=0.01%
-
cpu : usr=0.00%, sys=0.00%, ctx=18446744073709361396, majf=18446744073709551600, minf=18446744073709538425
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=130.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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=1310720/w=0/d=0, short=r=0/w=0/d=0
-
4k_80_rand_read: (groupid=2, jobs=1): err= 0: pid=15758: Fri Jan 26 20:59:57 2018
-
read : io=4104.3MB, bw=146912KB/s, iops=36727 , runt= 28607msec
-
slat (usec): min=1 , max=70525 , avg= 4.25, stdev=110.87
-
clat (usec): min=19 , max=401067 , avg=617.26, stdev=2862.62
-
lat (usec): min=30 , max=401070 , avg=621.94, stdev=2866.92
-
clat percentiles (usec):
-
| 1.00th=[ 81], 5.00th=[ 127], 10.00th=[ 165], 20.00th=[ 217],
-
| 30.00th=[ 255], 40.00th=[ 290], 50.00th=[ 326], 60.00th=[ 370],
-
| 70.00th=[ 422], 80.00th=[ 502], 90.00th=[ 708], 95.00th=[ 1176],
-
| 99.00th=[ 5664], 99.50th=[11712], 99.90th=[39680], 99.95th=[56064],
-
| 99.99th=[96768]
-
bw (KB/s) : min= 0, max=351824, per=98.86%, avg=145235.61, stdev=64144.88
-
write: io=1015.1MB, bw=36365KB/s, iops=9090 , runt= 28607msec
-
slat (usec): min=2 , max=27722 , avg= 6.04, stdev=128.05
-
clat (usec): min=43 , max=365921 , avg=994.55, stdev=3992.50
-
lat (usec): min=48 , max=365924 , avg=1001.02, stdev=3996.23
-
clat percentiles (usec):
-
| 1.00th=[ 117], 5.00th=[ 187], 10.00th=[ 227], 20.00th=[ 278],
-
| 30.00th=[ 322], 40.00th=[ 366], 50.00th=[ 422], 60.00th=[ 498],
-
| 70.00th=[ 612], 80.00th=[ 772], 90.00th=[ 1192], 95.00th=[ 2384],
-
| 99.00th=[12864], 99.50th=[21888], 99.90th=[57600], 99.95th=[72192],
-
| 99.99th=[111104]
-
bw (KB/s) : min= 128, max=69520, per=100.00%, avg=36428.64, stdev=14015.90
-
lat (usec) : 20=0.01%, 50=0.09%, 100=1.74%, 250=23.87%, 500=50.12%
-
lat (usec) : 750=12.70%, 1000=4.14%
-
lat (msec) : 2=3.89%, 4=1.63%, 10=1.11%, 20=0.39%, 50=0.26%
-
lat (msec) : 100=0.06%, 250=0.01%, 500=0.01%
-
cpu : usr=0.00%, sys=0.00%, ctx=18446744073709233054, majf=18446744073709551600, minf=18446744073709538270
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=123.1%, >=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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=1050665/w=260055/d=0, short=r=0/w=0/d=0
-
8k_rand_write: (groupid=3, jobs=1): err= 0: pid=15782: Fri Jan 26 20:59:57 2018
-
write: io=5120.3MB, bw=79614KB/s, iops=9951 , runt= 65857msec
-
slat (usec): min=2 , max=81097 , avg= 9.27, stdev=223.45
-
clat (usec): min=1 , max=816154 , avg=3203.88, stdev=9077.98
-
lat (usec): min=39 , max=816160 , avg=3213.61, stdev=9082.30
-
clat percentiles (usec):
-
| 1.00th=[ 67], 5.00th=[ 101], 10.00th=[ 151], 20.00th=[ 266],
-
| 30.00th=[ 382], 40.00th=[ 490], 50.00th=[ 612], 60.00th=[ 836],
-
| 70.00th=[ 1688], 80.00th=[ 6752], 90.00th=[ 7968], 95.00th=[11072],
-
| 99.00th=[34048], 99.50th=[50432], 99.90th=[88576], 99.95th=[114176],
-
| 99.99th=[250880]
-
bw (KB/s) : min= 1, max=225472, per=99.36%, avg=79101.62, stdev=32586.73
-
lat (usec) : 2=0.01%, 4=0.01%, 20=0.01%, 50=0.05%, 100=4.78%
-
lat (usec) : 250=13.67%, 500=22.52%, 750=16.18%, 1000=6.20%
-
lat (msec) : 2=8.31%, 4=4.06%, 10=18.59%, 20=3.56%, 50=1.57%
-
lat (msec) : 100=0.43%, 250=0.07%, 500=0.01%, 750=0.01%, 1000=0.01%
-
cpu : usr=0.00%, sys=0.00%, ctx=18446744073709154043, majf=18446744073709551600, minf=18446744073709538133
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=117.5%, >=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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=0/w=655360/d=0, short=r=0/w=0/d=0
-
8k_rand_read: (groupid=4, jobs=1): err= 0: pid=15827: Fri Jan 26 20:59:57 2018
-
read : io=5120.3MB, bw=576802KB/s, iops=72096 , runt= 9090msec
-
slat (usec): min=2 , max=24613 , avg= 3.51, stdev=30.98
-
clat (usec): min=32 , max=39094 , avg=439.00, stdev=891.92
-
lat (usec): min=36 , max=39097 , avg=442.82, stdev=892.69
-
clat percentiles (usec):
-
| 1.00th=[ 95], 5.00th=[ 126], 10.00th=[ 151], 20.00th=[ 197],
-
| 30.00th=[ 237], 40.00th=[ 274], 50.00th=[ 306], 60.00th=[ 346],
-
| 70.00th=[ 394], 80.00th=[ 462], 90.00th=[ 628], 95.00th=[ 924],
-
| 99.00th=[ 3472], 99.50th=[ 4384], 99.90th=[11968], 99.95th=[22656],
-
| 99.99th=[31872]
-
bw (KB/s) : min= 1, max=818384, per=94.64%, avg=545872.89, stdev=245409.15
-
lat (usec) : 50=0.01%, 100=1.39%, 250=32.33%, 500=49.82%, 750=9.22%
-
lat (usec) : 1000=2.77%
-
lat (msec) : 2=2.25%, 4=1.54%, 10=0.57%, 20=0.06%, 50=0.06%
-
cpu : usr=0.00%, sys=0.00%, ctx=18446744073708955600, majf=18446744073709551600, minf=18446744073709537814
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=171.2%, >=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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=655360/w=0/d=0, short=r=0/w=0/d=0
-
8k_80_rand_read: (groupid=5, jobs=1): err= 0: pid=15842: Fri Jan 26 20:59:57 2018
-
read : io=4113.8MB, bw=298394KB/s, iops=37297 , runt= 14117msec
-
slat (usec): min=2 , max=78188 , avg= 4.44, stdev=131.92
-
clat (usec): min=25 , max=294855 , avg=601.62, stdev=2368.68
-
lat (usec): min=28 , max=294859 , avg=606.45, stdev=2374.40
-
clat percentiles (usec):
-
| 1.00th=[ 100], 5.00th=[ 143], 10.00th=[ 177], 20.00th=[ 225],
-
| 30.00th=[ 262], 40.00th=[ 298], 50.00th=[ 334], 60.00th=[ 374],
-
| 70.00th=[ 422], 80.00th=[ 502], 90.00th=[ 716], 95.00th=[ 1160],
-
| 99.00th=[ 5344], 99.50th=[12224], 99.90th=[35584], 99.95th=[45824],
-
| 99.99th=[72192]
-
bw (KB/s) : min= 1, max=678759, per=100.00%, avg=298903.18, stdev=115771.56
-
write: io=1006.6MB, bw=73011KB/s, iops=9125 , runt= 14117msec
-
slat (usec): min=2 , max=25211 , avg= 7.66, stdev=169.94
-
clat (usec): min=53 , max=200702 , avg=1024.20, stdev=3821.23
-
lat (usec): min=58 , max=200716 , avg=1031.48, stdev=3826.15
-
clat percentiles (usec):
-
| 1.00th=[ 151], 5.00th=[ 203], 10.00th=[ 235], 20.00th=[ 278],
-
| 30.00th=[ 318], 40.00th=[ 362], 50.00th=[ 410], 60.00th=[ 478],
-
| 70.00th=[ 596], 80.00th=[ 772], 90.00th=[ 1256], 95.00th=[ 2544],
-
| 99.00th=[14272], 99.50th=[24448], 99.90th=[51456], 99.95th=[69120],
-
| 99.99th=[109056]
-
bw (KB/s) : min=13852, max=132304, per=100.00%, avg=73149.21, stdev=21764.62
-
lat (usec) : 50=0.03%, 100=0.79%, 250=23.16%, 500=52.33%, 750=12.16%
-
lat (usec) : 1000=4.02%
-
lat (msec) : 2=4.16%, 4=1.62%, 10=0.96%, 20=0.43%, 50=0.29%
-
lat (msec) : 100=0.04%, 250=0.01%, 500=0.01%
-
cpu : usr=0.00%, sys=0.00%, ctx=18446744073708882383, majf=18446744073709551600, minf=18446744073709537694
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=140.6%, >=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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=526535/w=128825/d=0, short=r=0/w=0/d=0
-
64k_rand_write: (groupid=6, jobs=1): err= 0: pid=15859: Fri Jan 26 20:59:57 2018
-
write: io=5121.1MB, bw=147939KB/s, iops=2310 , runt= 35453msec
-
slat (usec): min=6 , max=36057 , avg=21.32, stdev=164.54
-
clat (usec): min=1 , max=1077.5K, avg=13861.11, stdev=40752.02
-
lat (usec): min=82 , max=1077.5K, avg=13882.05, stdev=40751.74
-
clat percentiles (usec):
-
| 1.00th=[ 109], 5.00th=[ 163], 10.00th=[ 374], 20.00th=[ 7392],
-
| 30.00th=[ 7840], 40.00th=[ 7904], 50.00th=[ 7968], 60.00th=[ 8032],
-
| 70.00th=[ 8768], 80.00th=[12608], 90.00th=[23168], 95.00th=[39680],
-
| 99.00th=[87552], 99.50th=[152576], 99.90th=[544768], 99.95th=[1056768],
-
| 99.99th=[1056768]
-
bw (KB/s) : min= 10, max=177181, per=98.61%, avg=145887.94, stdev=38610.32
-
lat (usec) : 2=0.01%, 100=0.44%, 250=8.17%, 500=2.15%, 750=1.83%
-
lat (usec) : 1000=0.99%
-
lat (msec) : 2=1.03%, 4=1.18%, 10=55.41%, 20=14.26%, 50=12.19%
-
lat (msec) : 100=1.48%, 250=0.49%, 500=0.22%, 750=0.10%, 1000=0.01%
-
lat (msec) : 2000=0.09%
-
cpu : usr=0.00%, sys=0.00%, ctx=18446744073708777240, majf=18446744073709551600, minf=18446744073709537615
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=112.6%, >=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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=0/w=81920/d=0, short=r=0/w=0/d=0
-
64k_rand_read: (groupid=7, jobs=1): err= 0: pid=15890: Fri Jan 26 20:59:57 2018
-
read : io=5121.1MB, bw=3157.9MB/s, iops=50524 , runt= 1622msec
-
slat (usec): min=4 , max=1046 , avg= 6.77, stdev= 8.92
-
clat percentiles (usec):
-
| 1.00th=[ 0], 5.00th=[ 0], 10.00th=[ 0], 20.00th=[ 0],
-
| 30.00th=[ 0], 40.00th=[ 0], 50.00th=[ 0], 60.00th=[ 0],
-
| 70.00th=[ 0], 80.00th=[ 0], 90.00th=[ 0], 95.00th=[ 0],
-
| 99.00th=[ 0], 99.50th=[ 0], 99.90th=[ 0], 99.95th=[ 0],
-
| 99.99th=[ 0]
-
cpu : usr=0.00%, sys=0.00%, ctx=18446744073708741760, majf=18446744073709551600, minf=18446744073709537406
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=100.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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=81951/w=0/d=0, short=r=0/w=0/d=0
-
512k_seq_write: (groupid=8, jobs=1): err= 0: pid=15891: Fri Jan 26 20:59:57 2018
-
write: io=3780.0MB, bw=193410KB/s, iops=376 , runt= 20013msec
-
slat (usec): min=64 , max=22107 , avg=276.70, stdev=450.24
-
clat (usec): min=602 , max=1422.1K, avg=84639.19, stdev=88630.58
-
lat (usec): min=758 , max=1423.6K, avg=84912.13, stdev=88645.57
-
clat percentiles (msec):
-
| 1.00th=[ 8], 5.00th=[ 25], 10.00th=[ 39], 20.00th=[ 49],
-
| 30.00th=[ 57], 40.00th=[ 64], 50.00th=[ 69], 60.00th=[ 76],
-
| 70.00th=[ 84], 80.00th=[ 97], 90.00th=[ 129], 95.00th=[ 178],
-
| 99.00th=[ 529], 99.50th=[ 709], 99.90th=[ 1139], 99.95th=[ 1401],
-
| 99.99th=[ 1418]
-
bw (KB/s) : min= 85, max=205824, per=97.49%, avg=188546.65, stdev=31213.27
-
lat (usec) : 750=0.08%, 1000=0.07%
-
lat (msec) : 2=0.21%, 4=0.21%, 10=1.29%, 20=1.85%, 50=17.48%
-
lat (msec) : 100=60.99%, 250=15.79%, 500=1.39%, 750=0.57%, 1000=0.24%
-
lat (msec) : 2000=0.24%
-
cpu : usr=0.00%, sys=0.00%, ctx=18446744073708738428, majf=18446744073709551600, minf=18446744073709536444
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.2%, 32=135.6%, >=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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=0/w=7529/d=0, short=r=0/w=0/d=0
-
512k_seq_read: (groupid=9, jobs=1): err= 0: pid=15915: Fri Jan 26 20:59:57 2018
-
read : io=5120.0MB, bw=3784.2MB/s, iops=7568 , runt= 1353msec
-
slat (usec): min=23 , max=13263 , avg=58.10, stdev=141.77
-
clat percentiles (usec):
-
| 1.00th=[ 0], 5.00th=[ 0], 10.00th=[ 0], 20.00th=[ 0],
-
| 30.00th=[ 0], 40.00th=[ 0], 50.00th=[ 0], 60.00th=[ 0],
-
| 70.00th=[ 0], 80.00th=[ 0], 90.00th=[ 0], 95.00th=[ 0],
-
| 99.00th=[ 0], 99.50th=[ 0], 99.90th=[ 0], 99.95th=[ 0],
-
| 99.99th=[ 0]
-
cpu : usr=0.00%, sys=0.00%, ctx=18446744073708730103, majf=18446744073709551600, minf=18446744073709536812
-
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.2%, 32=99.7%, >=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.1%, 64=0.0%, >=64=0.0%
-
issued : total=r=10240/w=0/d=0, short=r=0/w=0/d=0
-
-
Run status group 0 (all jobs):
-
WRITE: io=5120.2MB, aggrb=58350KB/s, minb=58350KB/s, maxb=58350KB/s, mint=89853msec, maxt=89853msec
-
-
Run status group 1 (all jobs):
-
READ: io=5120.2MB, aggrb=294368KB/s, minb=294368KB/s, maxb=294368KB/s, mint=17811msec, maxt=17811msec
-
-
Run status group 2 (all jobs):
-
READ: io=4104.3MB, aggrb=146912KB/s, minb=146912KB/s, maxb=146912KB/s, mint=28607msec, maxt=28607msec
-
WRITE: io=1015.1MB, aggrb=36364KB/s, minb=36364KB/s, maxb=36364KB/s, mint=28607msec, maxt=28607msec
-
-
Run status group 3 (all jobs):
-
WRITE: io=5120.3MB, aggrb=79613KB/s, minb=79613KB/s, maxb=79613KB/s, mint=65857msec, maxt=65857msec
-
-
Run status group 4 (all jobs):
-
READ: io=5120.3MB, aggrb=576801KB/s, minb=576801KB/s, maxb=576801KB/s, mint=9090msec, maxt=9090msec
-
-
Run status group 5 (all jobs):
-
READ: io=4113.8MB, aggrb=298394KB/s, minb=298394KB/s, maxb=298394KB/s, mint=14117msec, maxt=14117msec
-
WRITE: io=1006.6MB, aggrb=73010KB/s, minb=73010KB/s, maxb=73010KB/s, mint=14117msec, maxt=14117msec
-
-
Run status group 6 (all jobs):
-
WRITE: io=5121.1MB, aggrb=147938KB/s, minb=147938KB/s, maxb=147938KB/s, mint=35453msec, maxt=35453msec
-
-
Run status group 7 (all jobs):
-
READ: io=5121.1MB, aggrb=3157.9MB/s, minb=3157.9MB/s, maxb=3157.9MB/s, mint=1622msec, maxt=1622msec
-
-
Run status group 8 (all jobs):
-
WRITE: io=3780.0MB, aggrb=193410KB/s, minb=193410KB/s, maxb=193410KB/s, mint=20013msec, maxt=20013msec
-
-
Run status group 9 (all jobs):
-
READ: io=5120.0MB, aggrb=3784.2MB/s, minb=3784.2MB/s, maxb=3784.2MB/s, mint=1353msec, maxt=1353msec
-
-
Disk stats (read/write):
- vdd: ios=4952095/2768934, merge=0/0, ticks=2107333/7598007, in_queue=9703486, util=98.77%
-
mysql參數列基本配置:
-
innodb_buffer_pool_size = 22938M
-
innodb_buffer_pool_instances = 8
-
skip-name-resolve
-
transaction_isolation=READ-COMMITTED
-
innodb_log_file_size = 512M
-
innodb_log_buffer_size = 128M
-
innodb_log_files_in_group=5
-
innodb_temp_data_file_path=ibtmp1:512M:autoextend
-
innodb_flush_log_at_trx_commit = 1
-
innodb_doublewrite=on
-
sync_binlog=0
-
max_prepared_stmt_count=1048576
-
max_connections = 600
-
max_connect_errors = 1000000
-
max_allowed_packet = 32M
-
open_files_limit = 65535
- skip_name_resolve = 1
- 插入資料:
-
[root@mysqltest1 mysql]# sysbench /usr/share/sysbench/oltp_read_write.lua --mysql-socket=/mysql/mysql1/mysql.sock --db-driver=mysql --mysql-host=localhost --mysql-port=3307 --mysql-db=sbtest --mysql-user=root --mysql-password= --table_size=10000000 --tables=10 --threads=20 --time=60 --report-interval=30 prepare
-
sysbench 1.0.12 (using bundled LuaJIT 2.1.0-beta2)
-
-
Initializing worker threads...
-
-
Creating table 'sbtest4'...Creating table 'sbtest10'...
-
Creating table 'sbtest7'...
-
-
Creating table 'sbtest5'...
-
Creating table 'sbtest8'...
-
Creating table 'sbtest6'...
-
Creating table 'sbtest2'...
-
Creating table 'sbtest3'...
-
Creating table 'sbtest1'...
-
Creating table 'sbtest9'...
-
Inserting 10000000 records into 'sbtest5'
-
Inserting 10000000 records into 'sbtest6'
-
Inserting 10000000 records into 'sbtest10'
-
Inserting 10000000 records into 'sbtest8'
-
Inserting 10000000 records into 'sbtest1'
-
Inserting 10000000 records into 'sbtest7'
-
Inserting 10000000 records into 'sbtest2'
-
Inserting 10000000 records into 'sbtest9'
-
Inserting 10000000 records into 'sbtest3'
-
Inserting 10000000 records into 'sbtest4'
-
Creating a secondary index on 'sbtest5'...
-
Creating a secondary index on 'sbtest6'...
-
Creating a secondary index on 'sbtest9'...
-
Creating a secondary index on 'sbtest3'...
-
Creating a secondary index on 'sbtest8'...
-
Creating a secondary index on 'sbtest2'...
-
Creating a secondary index on 'sbtest4'...
-
Creating a secondary index on 'sbtest1'...
-
Creating a secondary index on 'sbtest10'...
- Creating a secondary index on 'sbtest7'...
-
[root@mysqltest1 mysql1]# ls sbtest/ -lh
-
total 24G
-
-rw-r----- 1 mysql mysql 61 Jan 26 20:13 db.opt
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest10.frm
-
-rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest10.ibd
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest1.frm
-
-rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest1.ibd
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest2.frm
-
-rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest2.ibd
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest3.frm
-
-rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest3.ibd
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest4.frm
-
-rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest4.ibd
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest5.frm
-
-rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest5.ibd
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest6.frm
-
-rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest6.ibd
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest7.frm
-
-rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest7.ibd
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest8.frm
-
-rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest8.ibd
-
-rw-r----- 1 mysql mysql 8.5K Jan 26 20:26 sbtest9.frm
- -rw-r----- 1 mysql mysql 2.4G Jan 26 20:30 sbtest9.ibd
二、測試1,首先做一個基準測試,慢慢往上加併發連線。10個表,1000萬資料,20個執行緒,60秒。tps是1345
- 測試1
-
[root@mysqltest1 mysql]# sysbench /usr/share/sysbench/oltp_read_write.lua --mysql-socket=/mysql/mysql1/mysql.sock --db-driver=mysql --mysql-host=localhost --mysql-port=3307 --mysql-db=sbtest --mysql-user=root --mysql-password= --table_size=10000000 --tables=10 --threads=20 --time=60 --report-interval=30 run
-
sysbench 1.0.12 (using bundled LuaJIT 2.1.0-beta2)
-
-
Running the test with following options:
-
Number of threads: 20
-
Report intermediate results every 30 second(s)
-
Initializing random number generator from current time
-
-
-
Initializing worker threads...
-
-
Threads
-
-
[ 30s ] thds: 20 tps: 1342.29 qps: 26855.91 (r/w/o: 18800.00/5370.71/2685.20) lat (ms,95%): 29.19 err/s: 0.00 reconn/s: 0.00
-
[ 60s ] thds: 20 tps: 1349.15 qps: 26982.87 (r/w/o: 18887.91/5396.65/2698.31) lat (ms,95%): 31.37 err/s: 0.00 reconn/s: 0.00
-
SQL statistics:
-
queries performed:
-
read: 1130710
-
write: 323060
-
other: 161530
-
total: 1615300
-
transactions: 80765 (1345.79 per sec.)
-
queries: 1615300 (26915.77 per sec.)
-
ignored errors: 0 (0.00 per sec.)
-
reconnects: 0 (0.00 per sec.)
-
-
General statistics:
-
total time: 60.0109s
-
total number of events: 80765
-
-
Latency (ms):
-
min: 4.10
-
avg: 14.85
-
max: 384.70
-
95th percentile: 30.26
-
sum: 1199742.53
-
-
Threads fairness:
-
events (avg/stddev): 4038.2500/37.53
- execution time (avg/stddev): 59.9871/0.00
- 測試2併發執行緒變為100個
-
[root@mysqltest1 mysql]# sysbench /usr/share/sysbench/oltp_read_write.lua --mysql-socket=/mysql/mysql1/mysql.sock --db-driver=mysql --mysql-host=localhost --mysql-port=3307 --mysql-db=sbtest --mysql-user=root --mysql-password= --table_size=10000000 --tables=10 --threads=100 --time=120 --report-interval=30 run
-
sysbench 1.0.12 (using bundled LuaJIT 2.1.0-beta2)
-
-
Running the test with following options:
-
Number of threads: 100
-
Report intermediate results every 30 second(s)
-
Initializing random number generator from current time
-
-
-
Initializing worker threads...
-
-
Threads
-
-
[ 30s ] thds: 100 tps: 1761.53 qps: 35277.53 (r/w/o: 24702.08/7049.14/3526.32) lat (ms,95%): 139.85 err/s: 0.00 reconn/s: 0.00
-
[ 60s ] thds: 100 tps: 1260.24 qps: 25208.81 (r/w/o: 17643.48/5044.88/2520.44) lat (ms,95%): 170.48 err/s: 0.00 reconn/s: 0.00
-
[ 90s ] thds: 100 tps: 1187.10 qps: 23728.35 (r/w/o: 16612.43/4741.61/2374.30) lat (ms,95%): 189.93 err/s: 0.00 reconn/s: 0.00
-
[ 120s ] thds: 100 tps: 1250.60 qps: 25011.38 (r/w/o: 17507.52/5002.92/2500.94) lat (ms,95%): 176.73 err/s: 0.00 reconn/s: 0.00
-
SQL statistics:
-
queries performed:
-
read: 2294558
-
write: 655588
-
other: 327794
-
total: 3277940
-
transactions: 163897 (1364.83 per sec.)
-
queries: 3277940 (27296.64 per sec.)
-
ignored errors: 0 (0.00 per sec.)
-
reconnects: 0 (0.00 per sec.)
-
-
General statistics:
-
total time: 120.0795s
-
total number of events: 163897
-
-
Latency (ms):
-
min: 4.55
-
avg: 73.23
-
max: 3815.25
-
95th percentile: 167.44
-
sum: 12002493.01
-
-
Threads fairness:
-
events (avg/stddev): 1638.9700/24.21
- execution time (avg/stddev): 120.0249/0.0
- 測試3
-
[root@mysqltest1 mysql]# sysbench /usr/share/sysbench/oltp_read_write.lua --mysql-socket=/mysql/mysql1/mysql.sock --db-driver=mysql --mysql-host=localhost --mysql-port=3307 --mysql-db=sbtest --mysql-user=root --mysql-password= --table_size=10000000 --tables=10 --threads=256 --time=120 --report-interval=30 run
-
sysbench 1.0.12 (using bundled LuaJIT 2.1.0-beta2)
-
-
Running the test with following options:
-
Number of threads: 256
-
Report intermediate results every 30 second(s)
-
Initializing random number generator from current time
-
-
-
Initializing worker threads...
-
-
Threads
-
-
[ 30s ] thds: 256 tps: 2223.58 qps: 44595.77 (r/w/o: 31228.84/8911.41/4455.52) lat (ms,95%): 231.53 err/s: 0.00 reconn/s: 0.00
-
[ 60s ] thds: 256 tps: 2253.39 qps: 45062.21 (r/w/o: 31550.19/9005.08/4506.94) lat (ms,95%): 223.34 err/s: 0.00 reconn/s: 0.00
-
[ 90s ] thds: 256 tps: 2208.14 qps: 44187.36 (r/w/o: 30926.61/8844.51/4416.24) lat (ms,95%): 235.74 err/s: 0.00 reconn/s: 0.00
-
[ 120s ] thds: 256 tps: 2198.21 qps: 43939.04 (r/w/o: 30751.77/8792.71/4394.56) lat (ms,95%): 235.74 err/s: 0.00 reconn/s: 0.00
-
SQL statistics:
-
queries performed:
-
read: 3734444
-
write: 1066984
-
other: 533492
-
total: 5334920
-
transactions: 266746 (2219.65 per sec.)
-
queries: 5334920 (44392.96 per sec.)
-
ignored errors: 0 (0.00 per sec.)
-
reconnects: 0 (0.00 per sec.)
-
-
General statistics:
-
total time: 120.1728s
-
total number of events: 266746
-
-
Latency (ms):
-
min: 4.75
-
avg: 115.19
-
max: 1242.44
-
95th percentile: 231.53
-
sum: 30725391.47
-
-
Threads fairness:
-
events (avg/stddev): 1041.9766/19.98
- execution time (avg/stddev): 120.0211/0.02
-
[root@mysqltest1 mysql]# sysbench /usr/share/sysbench/oltp_read_write.lua --mysql-socket=/mysql/mysql1/mysql.sock --db-driver=mysql --mysql-host=localhost --mysql-port=3307 --mysql-db=sbtest --mysql-user=root --mysql-password= --table_size=10000000 --tables=10 --threads=512 --time=120 --report-interval=30 run
-
sysbench 1.0.12 (using bundled LuaJIT 2.1.0-beta2)
-
-
Running the test with following options:
-
Number of threads: 512
-
Report intermediate results every 30 second(s)
-
Initializing random number generator from current time
-
-
-
Initializing worker threads...
-
-
Threads
-
-
[ 30s ] thds: 512 tps: 2111.91 qps: 42531.42 (r/w/o: 29796.60/8494.11/4240.72) lat (ms,95%): 549.52 err/s: 0.00 reconn/s: 0.00
-
[ 60s ] thds: 512 tps: 2282.45 qps: 45658.59 (r/w/o: 31952.92/9140.64/4565.04) lat (ms,95%): 467.30 err/s: 0.00 reconn/s: 0.00
-
[ 90s ] thds: 512 tps: 1797.69 qps: 35934.39 (r/w/o: 25157.74/7181.34/3595.31) lat (ms,95%): 733.00 err/s: 0.00 reconn/s: 0.00
-
[ 120s ] thds: 512 tps: 1805.02 qps: 36013.97 (r/w/o: 25211.13/7198.12/3604.72) lat (ms,95%): 657.93 err/s: 0.00 reconn/s: 0.00
-
SQL statistics:
-
queries performed:
-
read: 3366608
-
write: 961888
-
other: 480944
-
total: 4809440
-
transactions: 240472 (1998.58 per sec.)
-
queries: 4809440 (39971.60 per sec.)
-
ignored errors: 0 (0.00 per sec.)
-
reconnects: 0 (0.00 per sec.)
-
-
General statistics:
-
total time: 120.3194s
-
total number of events: 240472
-
-
Latency (ms):
-
min: 4.74
-
avg: 255.60
-
max: 4306.89
-
95th percentile: 590.56
-
sum: 61465534.91
-
-
Threads fairness:
-
events (avg/stddev): 469.6719/13.57
- execution time (avg/stddev): 120.0499/0.05
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30393770/viewspace-2150563/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql叢集壓力測試在京東雲盤:sysbench版本MySql
- mysql壓力測試在京東雲ssd雲盤sysbench版本MySql
- Mysql 壓力測試工具sysbenchMySql
- mysql單例項壓力測試在青雲MySql單例
- MySQL DB Server 上面安裝 sysbench 作壓力測試MySqlServer
- MySQL壓力測試中定製sysbench的Lua模板MySql
- mysql之 sysbench1.0.3 安裝與系統壓力測試MySql
- mysql壓力測試在京東雲ssd雲盤(tpccmysql壓測)MySql
- NewSQL資料庫壓力測試工具系列——SysbenchSQL資料庫
- 使用sysbench壓力測試MySQL(一)(r11筆記第3天)MySql筆記
- sysbench 測試MySQLMySql
- 壓力測試sysbench安裝及引數介紹
- [資料庫]000 - ?Sysbench 資料庫壓力測試工具資料庫
- sysbench測試mysql oltpMySql
- 壓測工具之Sysbench1.0(2_MySQL壓測)MySql
- 使用sysbench測試Mysql效能MySql
- MySQL 效能壓測工具-sysbench,從入門到自定義測試項MySql
- MySQL字元函式的壓力測試MySql字元函式
- MySQL基準壓力測試工具MySQLSlapMySql
- MySQL基準測試工具sysbenchMySql
- 【Mysql】sysbench基準測試工具MySql
- 使用 sysbench 測試 MySQL 的效能MySql
- 用mysqlslap對MySQL進行壓力測試MySql
- ORACLE壓力測試Oracle
- laravel壓力測試Laravel
- MACOSXApacheab壓力測試MacApache
- NGINX壓力測試Nginx
- mysqlslap壓力測試MySql
- 壓力測試工具
- Taurus.MVC 效能壓力測試(ap 壓測 和 linux 下wrk 壓測):.NET 版本MVCLinux
- mysql之 mysql資料庫壓力測試工具(mysqlslap)MySql資料庫
- sysbench壓測實踐
- mysql效能測試工具之sysbench薦MySql
- 使用 sysbench 測試 MySQL 的效能(二)MySql
- Taurus.MVC 效能壓力測試(ap 壓測 和 linux 下wrk 壓測):.NET Core 版本MVCLinux
- MySQL 5.7和8.0 MHA架構下sysbench壓測MySql架構
- nginx壓力測試方法:Nginx
- 壓力測試指令碼指令碼