|
|
[root@iossd ~]# fio -ioengine=libaio -bs=16k -direct=1 -thread -rw=read -size=1G -filename=test.img -name="test" -iodepth=1 -time_based -runtime=60 -numjobs=16 -group_reporting L) @; R) D6 u' w, R) V
fio: engine libaio not loadable
2 I. a" M0 \+ X c7 c" t6 e# X9 Afio: failed to load engine libaio
# F+ `# |: j5 s6 c3 o! n: j- J, \# n+ m2 y1 I
fio: failed to load engine libaio
2 o, l" T$ {* \( b( Y/ I$ g9 L( y6 s: \( D* D
安装libaio-devel包 |' n2 @1 ~7 H* B- j8 |: K7 `# E
yum install -y libaio-devel
# d2 U2 e, X+ H6 ~
, }4 W2 F1 `0 W/ a[root@iohdd ~]# rpm -qa|grep libaio$ b/ ^) v1 b) h/ h$ h
libaio-0.3.109-13.el7.x86_64
) X/ H( L7 f6 H4 f, Q4 H5 {/ h9 L! Plibaio-devel-0.3.109-13.el7.x86_648 H8 R% v, T4 s9 {8 y
再次执行:6 K% N4 i5 b) a2 q4 U" Q
[root@iossd ~]# cd fio-2.1.101 V" W5 ?4 G% y; n2 M% y2 \
[root@iohdd fio-2.1.10]# ./configure & C1 A! O0 h$ ~5 V' c1 r
[root@iohdd fio-2.1.10]# make && make install
D- {8 {4 ?9 I; c1 N) j
7 \, L2 B- r; I4 F6 X9 t: M" D% \/ {[root@iohdd fio-2.1.10]# fio --enghelp | grep libaio. `0 X& ?! {7 V
libaio
' s' Y( w5 V# P; j% e
9 N+ I. \9 `% L1 t6 ]- t F6 R# o- g6 S( ^, O4 X2 j, I1 g5 U) e
测试:
$ L% V" l6 p$ _: n3 w4 V! X6 G[root@iossd ~]# fio -ioengine=libaio -bs=16k -direct=1 -thread -rw=read -size=1G -filename=test.img -name="test" -iodepth=1 -time_based -runtime=60 -numjobs=16 -group_reporting
6 j1 G$ f6 g, P1 [test: (g=0): rw=read, bs=16K-16K/16K-16K/16K-16K, ioengine=libaio, iodepth=1$ h# Q3 e2 |3 M
...
. X3 D. x6 \, ]1 C Nfio-2.1.10
. n7 ^" u" z0 ?/ lStarting 16 threads) n4 O' d2 h. f6 ~; B
test: Laying out IO file(s) (1 file(s) / 1024MB), A4 `; N( {+ W
$ n9 E6 a- u; p9 L
|
|