FIO测试中的文件描述符错误

时间:2017-01-12 21:39:00

标签: testing io benchmarking microbenchmark

我尝试在具有原始磁盘(无FS)的Linux计算机上执行FIO测试。这是我的配置文件:

[global]
direct=1
invalidate=1
ramp_time=30
group_reporting
size=1g
percentile_list=99.999000:99.999990:90.000000:50.000000:99.999900:99.999999:99.000000:99.990000
ioengine=libaio
time_based
runtime=30
rwmixread=72
rw=randrw
filename=/dev/xvdb:/dev/xvdc:/dev/xvdd:/dev/xvde


[readwrite-128k-iodepth-1]
bs=128k
iodepth=1
write_bw_log=128k-iodepth-1.results
write_iops_log=128k-iodepth-1.results


[readwrite-128k-iodepth-2]
bs=128k
iodepth=2
write_bw_log=128k-iodepth-2.results
write_iops_log=128k-iodepth-2.results


[readwrite-128k-iodepth-4]
bs=128k
iodepth=4
write_bw_log=128k-iodepth-4.results
write_iops_log=128k-iodepth-4.results


[readwrite-128k-iodepth-8]
bs=128k
iodepth=8
write_bw_log=128k-iodepth-8.results
write_iops_log=128k-iodepth-8.results


[readwrite-256k-iodepth-1]
bs=256k
iodepth=1
write_bw_log=256-iodepth-8.results
write_iops_log=256-iodepth-8.results


[readwrite-256k-iodepth-2]
bs=256k
iodepth=2
write_bw_log=256-iodepth-8.results
write_iops_log=256-iodepth-8.results


[readwrite-256k-iodepth-4]
bs=256k
iodepth=4
write_bw_log=256-iodepth-8.results
write_iops_log=256-iodepth-8.results


[readwrite-256k-iodepth-8]
bs=256k
iodepth=8
write_bw_log=256-iodepth-8.results
write_iops_log=256-iodepth-8.results

当我运行此配置时:

fio ./fio.cfg  --output=fio.out 

我收到:

file:filesetup.c:288, func=blockdev_size, error=Bad file descriptor

所以我想这是我跳过的一个小细节,但这是我第一次进行FIO测试,所以不确定它是什么。所以任何评论都会受到高度赞赏。

1 个答案:

答案 0 :(得分:0)

正如我所说,跳过了非常小的细节。我用尺寸= 1G替换了size = 1g并且有效。