2017-01-12 383 views
0

我尝试使用原始磁盘(无FS)在Linux计算机上执行FIO测试。下面是我的配置文件: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测试,所以不知道它可能是什么。所以任何评论将不胜感激。

回答

0

正如我所说,非常微小的细节略过。我用大小= 1G替换了大小= 1g,它工作。

+0

好奇。根据HOWTO,整数后缀不应该区分大小写。 – Anon

相关问题