找回密码
 注册
查看: 644|回复: 0

fio: engine libaio not loadable fio: failed to load engine libaion 问题解决办法

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-6-29 10:22:16 | 显示全部楼层 |阅读模式
[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
4 D6 B$ f' y7 z6 A7 J" V" Wfio: engine libaio not loadable8 D" H  m: Z- J: l& W4 J
fio: failed to load engine libaio
6 u2 }: d8 ~% p3 b
, _. A! ?+ N! {& B4 ], @  n7 Wfio: failed to load engine libaio. R6 |' H$ @. `: ?" S; y
+ u4 s3 R  u* B) B* Y% w; x5 _
安装libaio-devel包5 J4 W7 f! P6 b" m! p
yum install -y libaio-devel/ k  X0 f5 a7 h) Z# n# i
! _4 t2 ~4 Y* \! r1 B
[root@iohdd ~]# rpm -qa|grep libaio
- q* L2 T/ E3 Ulibaio-0.3.109-13.el7.x86_643 v+ E! U' O2 ~5 t3 Q9 g( U: v/ G
libaio-devel-0.3.109-13.el7.x86_644 k1 W$ S/ M9 n8 a! @; I+ j5 R3 W/ f
再次执行:
# |8 o& H- U. t4 e[root@iossd ~]# cd fio-2.1.10+ J9 g$ V6 C/ X$ k* X3 H
[root@iohdd fio-2.1.10]# ./configure , p2 {/ W% f: k! K; Q6 w
[root@iohdd fio-2.1.10]# make && make install
  T& D" O" Z; K
. Q8 R1 a! U2 ~4 T$ P0 Q- s[root@iohdd fio-2.1.10]# fio --enghelp | grep libaio* _& q: R" f0 ~7 b: t. M
libaio- L+ R2 b* t6 m5 O
; T9 X% r5 I  S% I. i* ~
9 F. W: J$ x, W) h3 F5 s
测试:
: j$ h& M: o/ ?6 _+ G  i  e[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
; r* {% F! a2 p  O* gtest: (g=0): rw=read, bs=16K-16K/16K-16K/16K-16K, ioengine=libaio, iodepth=1% O" K$ c9 [/ O1 ^/ R
...+ R% l% K! d5 h3 ]
fio-2.1.10
. Q: h/ _+ M* j6 v$ t$ Q1 Y1 J% L, MStarting 16 threads
0 o! G5 u" k, V9 x" s3 `test: Laying out IO file(s) (1 file(s) / 1024MB)5 s) d) @- U7 A2 `! F

: S7 i0 n* [6 Z9 W7 `$ H0 b" X4 F, l& [9 F
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:57 , Processed in 0.024590 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表