使用fio连续发送IO到NFS共享并偶尔得到“输入/输出错误”

时间:2018-03-05 06:32:14

标签: nfs

我正在使用的脚本如下:

for n in {1..70}; do
    fio --name=randrw$( printf %09d "$n" ) --ioengine=libaio --iodepth=128 --rw=randrw --bs=128k --direct=1 --size=50M --numjobs=300 --runtime=2400 --time_based --group_reporting >> ./fio.log
done

错误如下所示,它几次发生在不同的文件或同一个文件上多次。我搜索了类似的问题,但大多数只是在他们运行fio命令后才发生,但不是我的情况。我的错误发生在一段时间。

fio: io_u error on file randrw000000042.234.0: Input/output error
     write offset=41549824, buflen=131072
fio: io_u error on file randrw000000042.108.0: Input/output error
     write offset=11927552, buflen=131072
fio: io_u error on file randrw000000042.108.0: Input/output error
     write offset=34865152, buflen=131072

我和NFS服务器端进行了交谈,他们发现服务器很忙,写入没有成功,所以服务器返回“write size = 0”。好像fio没有处理这个返回,或者它实际上是一个NFS服务器错误?

BT声明,fio版本是fio-2.1.3。

谢谢!

1 个答案:

答案 0 :(得分:0)

看起来这个是asked over on fio's github issue tracker(我已经说过邮件列表可能是更好的地方了)并且有证据表明NFS服务器被I / O超载了它决定告诉客户它没有尝试完成一些I / O.

相关问题