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
| 文件系统:fileio=sequential/random 创建背景数据:(默认创建文件的块大小为128k) 【实际操作: 1、先通过format=restart将文件和目录数据灌注好 2、将format=restart改为format=no,直接在灌注好的文件目录上进行测试:读写 3、yes是删除原来的数据重新建】
data_errors=1000000000000000000000000 hd=default,vdbench=/opt/vdbench,user=root,shell=ssh,jvms=1 hd=hd1,system=10.244.208.11 hd=hd2,system=10.244.208.12 hd=hd3,system=10.244.208.13 hd=hd4,system=10.244.208.14 hd=hd5,system=10.244.208.15 hd=hd6,system=10.244.208.16 hd=hd7,system=10.244.208.17 hd=hd8,system=10.244.208.18 hd=hd9,system=10.244.208.19 hd=hd10,system=10.244.208.20
fsd=fsd1,anchor=/mysql/snbs001/,depth=1,width=5,files=5,size=1g fsd=fsd2,anchor=/mysql/snbs002/,depth=1,width=5,files=5,size=1g fsd=fsd3,anchor=/mysql/snbs003/,depth=2,width=10,files=1,size=1g fsd=fsd4,anchor=/mysql/snbs004/,depth=2,width=10,files=1,size=1g fsd=fsd5,anchor=/mysql/snbs005/,depth=2,width=10,files=2,size=1g fsd=fsd6,anchor=/mysql/snbs006/,depth=2,width=10,files=2,size=1g fsd=fsd7,anchor=/mysql/snbs007/,depth=2,width=10,files=3,size=1g fsd=fsd8,anchor=/mysql/snbs008/,depth=2,width=10,files=3,size=1g fsd=fsd9,anchor=/mysql/snbs009/,depth=2,width=10,files=3,size=1g fsd=fsd10,anchor=/mysql/snbs010/,depth=2,width=10,files=3,size=1g
fsd=fsd11,anchor=/mysql/snbs011/,depth=2,width=100,files=5,size=256k fsd=fsd12,anchor=/mysql/snbs012/,depth=2,width=100,files=5,size=256k fsd=fsd13,anchor=/mysql/snbs013/,depth=2,width=100,files=10,size=256k fsd=fsd14,anchor=/mysql/snbs014/,depth=2,width=100,files=10,size=256k fsd=fsd15,anchor=/mysql/snbs015/,depth=2,width=100,files=30,size=256k fsd=fsd16,anchor=/mysql/snbs016/,depth=2,width=100,files=30,size=256k fsd=fsd17,anchor=/mysql/snbs017/,depth=2,width=100,files=60,size=256k fsd=fsd18,anchor=/mysql/snbs018/,depth=2,width=100,files=60,size=256k fsd=fsd19,anchor=/mysql/snbs019/,depth=2,width=100,files=60,size=256k fsd=fsd20,anchor=/mysql/snbs020/,depth=2,width=100,files=60,size=256k
fwd=fwd1,fsd=fsd1,host=hd1,operation=create,threads=5 fwd=fwd2,fsd=fsd2,host=hd2,operation=create,threads=5 fwd=fwd3,fsd=fsd3,host=hd3,operation=create,threads=5 fwd=fwd4,fsd=fsd4,host=hd4,operation=create,threads=5 fwd=fwd5,fsd=fsd5,host=hd5,operation=create,threads=5 fwd=fwd6,fsd=fsd6,host=hd6,operation=create,threads=5 fwd=fwd7,fsd=fsd7,host=hd7,operation=create,threads=5 fwd=fwd8,fsd=fsd8,host=hd8,operation=create,threads=5 fwd=fwd9,fsd=fsd9,host=hd9,operation=create,threads=5 fwd=fwd10,fsd=fsd10,host=hd10,operation=create,threads=5
fwd=fwd11,fsd=fsd11,host=hd1,operation=create,threads=5 fwd=fwd12,fsd=fsd12,host=hd2,operation=create,threads=5 fwd=fwd13,fsd=fsd13,host=hd3,operation=create,threads=5 fwd=fwd14,fsd=fsd14,host=hd4,operation=create,threads=5 fwd=fwd15,fsd=fsd15,host=hd5,operation=create,threads=5 fwd=fwd16,fsd=fsd16,host=hd6,operation=create,threads=5 fwd=fwd17,fsd=fsd17,host=hd7,operation=create,threads=5 fwd=fwd18,fsd=fsd18,host=hd8,operation=create,threads=5 fwd=fwd19,fsd=fsd19,host=hd9,operation=create,threads=5 fwd=fwd20,fsd=fsd20,host=hd10,operation=create,threads=5
rd=rd1,fwd=fwd*,fwdrate=max,format=restart,elapsed=60,interval=5
顺序写: [root@dev-11 cases]# cat seq_write data_errors=1000000000000000000000000 hd=default,vdbench=/opt/vdbench,user=root,shell=ssh,jvms=1 hd=hd1,system=10.244.208.11 hd=hd2,system=10.244.208.12
fsd=fsd1,anchor=/mysql/snbs001/,depth=1,width=5,files=5,size=1g fsd=fsd2,anchor=/mysql/snbs002/,depth=1,width=5,files=5,size=1g
fsd=fsd11,anchor=/mysql/snbs011/,depth=2,width=100,files=5,size=256k fsd=fsd12,anchor=/mysql/snbs012/,depth=2,width=100,files=5,size=256k
fwd=fwd1,fsd=fsd1,host=hd1,operation=write,xfersize=16k,fileio=sequential,fileselect=random,threads=5 fwd=fwd2,fsd=fsd2,host=hd2,operation=write,xfersize=16k,fileio=sequential,fileselect=random,threads=5
fwd=fwd11,fsd=fsd11,host=hd1,operation=write,xfersize=16k,fileio=sequential,fileselect=random,threads=5 fwd=fwd12,fsd=fsd12,host=hd2,operation=write,xfersize=16k,fileio=sequential,fileselect=random,threads=5
rd=rd1,fwd=fwd*,fwdrate=max,format=restart,elapsed=600,interval=5
随机读写: [root@dev-11 cases]# cat rand_readwrite data_errors=1000000000000000000000000 hd=default,vdbench=/opt/vdbench,user=root,shell=ssh,jvms=1 hd=hd1,system=10.244.208.11 hd=hd2,system=10.244.208.12
fsd=fsd1,anchor=/mysql/snbs001/,depth=1,width=5,files=5,size=1g fsd=fsd2,anchor=/mysql/snbs002/,depth=1,width=5,files=5,size=1g
fsd=fsd11,anchor=/mysql/snbs011/,depth=2,width=100,files=5,size=256k fsd=fsd12,anchor=/mysql/snbs012/,depth=2,width=100,files=5,size=256k
fwd=fwd1,fsd=fsd1,host=hd1,operation=read,xfersize=16k,fileio=random,fileselect=random,threads=5 fwd=fwd2,fsd=fsd2,host=hd2,operation=read,xfersize=16k,fileio=random,fileselect=random,threads=5
fwd=fwd11,fsd=fsd11,host=hd1,operation=read,xfersize=16k,fileio=random,fileselect=random,threads=5 fwd=fwd12,fsd=fsd12,host=hd2,operation=read,xfersize=16k,fileio=random,fileselect=random,threads=5
fwd=fwd21,fsd=fsd1,host=hd1,operation=write,xfersize=16k,fileio=random,fileselect=random,threads=5 fwd=fwd22,fsd=fsd2,host=hd2,operation=write,xfersize=16k,fileio=random,fileselect=random,threads=5
fwd=fwd31,fsd=fsd11,host=hd1,operation=write,xfersize=16k,fileio=random,fileselect=random,threads=5 fwd=fwd32,fsd=fsd12,host=hd2,operation=write,xfersize=16k,fileio=random,fileselect=random,threads=5
rd=rd1,fwd=fwd*,fwdrate=max,format=restart,elapsed=600,interval=5
|