[英]How to use FIO to test a FUSE filesystem?
I'm using fio to test the performance of fuse filesystem using this commandline:我正在使用 fio 使用以下命令行测试 fuse 文件系统的性能:
fio -filename=/User/mbl/fusefs -direct=1 -iodepth 1 -thread -rw=write -ioengine=psync -bs=16k -size=1G -numjobs=30 -runtime=1000 -group_reporting -name=mytest
in which /User/mbl/fusefs is the path of my fuse filesystem.其中 /User/mbl/fusefs 是我的 fuse 文件系统的路径。 However, I met this error:
但是,我遇到了这个错误:
fio: pid=0, err=21/file:filesetup.c:137, func=unlink, error=Is a directory
I searched on the internet and they said that fio can only test a block_device, such as --filename=/dev/$block_device, but I don't know how to make a fuse filesystem to be a block_device.我在网上搜索,他们说fio只能测试一个block_device,例如--filename=/dev/$block_device,但我不知道如何使fuse文件系统成为block_device。 Is there any way?
有什么办法吗?
instead of filename -filename=/User/mbl/fusefs
use --directory=/User/mbl/fusefs
而不是文件
-filename=/User/mbl/fusefs
使用--directory=/User/mbl/fusefs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.