几个fio测试的配置文件参考。方便批量测试。
带宽测试:
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
[global]
ioengine=libaio
iodepth=1024
size=2g
direct=1
runtime=1800
bs=128k
# directory=/mount-point-of-ssd
# filename=ssd.test.file
filename=/dev/nvme1n1
# max iops test
[seq-read]
rw=read
stonewall
[rand-read]
rw=randread
stonewall
[seq-write]
rw=write
stonewall
[rand-write]
rw=randwrite
stonewall
IOPS测试:
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
[global]
ioengine=libaio
iodepth=1024
size=2g
direct=1
runtime=1800
bs=4k
# directory=/mount-point-of-ssd
# filename=ssd.test.file
filename=/dev/nvme1n1
# max iops test
[seq-read]
rw=read
stonewall
[rand-read]
rw=randread
stonewall
[seq-write]
rw=write
stonewall
[rand-write]
rw=randwrite
stonewall
延迟测试:
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
[global]
ioengine=libaio
iodepth=1
size=4m
direct=1
runtime=1800
bs=4k
# directory=/mount-point-of-ssd
# filename=ssd.test.file
filename=/dev/nvme1n1
# max iops test
[seq-read]
rw=read
stonewall
[rand-read]
rw=randread
stonewall
[seq-write]
rw=write
stonewall
[rand-write]
rw=randwrite
stonewall