Skip to content

通过fio usrbio进行测试时报错ioring create failed: hf3fs_iorwrap failed -2 #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kaede11 opened this issue Mar 26, 2025 · 1 comment

Comments

@kaede11
Copy link

kaede11 commented Mar 26, 2025

执行fio时,开启了debug mode,输出信息如下:
[2025-03-26T19:31:53.143514601+08:00 fio:836233 UsrbIo.cc:472 ERROR] ioring create failed: hf3fs_iorwrap failed -2
fio: io engine hf3fs_usrbio init failed. Perhaps try reducing io depth?
fio: pid=836233, err=-2/
file 836233 close files
[2025-03-26T19:31:53.143547087+08:00 fio:836233 UsrbIo.cc:196 ERROR] cannot iovfree() an iov created by iovwrap()
io 836233 close ioengine hf3fs_usrbio
io 836233 free ioengine hf3fs_usrbio
parse 836233 free options
io 836233 dlclose ioengine hf3fs_usrbio
process 836233 pid=836233: runstate RUNNING -> EXITED
process 836167 pid=836233: runstate EXITED -> REAPED
process 836167 terminate group_id=-1
process 836167 setting terminate on 2depth_128file_4M_direct_read_bw1/836233
diskutil 836167 update io ticks
diskutil 836232 update io ticks
helperthread 836232 next_log: 500, msec_to_next_event: 249
process 836232 pid=836233: runstate REAPED -> FINISHING
process 836232 pid=836233: runstate FINISHING -> REAPED

执行的fio命令如下:
fio --debug=all -ioengine=external:hf3fs_usrbio.so -numjobs=1 -fallocate=none -iodepth=32 -iodepth_batch_submit=1024 -iodepth_batch_complete_min=1024 -iodepth_batch_complete_max=1024 -direct=1 -rw=randread -bs=4k --group_reporting -size=100M -time_based -runtime=300 -name=2depth_128file_4M_direct_read_bw1 -mountpoint=/var/www/html/apt-repo

看源码发现,是在
cqeSem的readlink时,由于link不存在报错,想问下,这个link是在什么时候创建的,以及这个问题需要如何解决?
auto link = fmt::format("{}/3fs-virt/iovs/submit-ios{}", std::string(hf3fs_mount_point), prio == 0 ? "" : prio < 0 ? ".ph" : ".pl");

@Icedroid
Copy link

请问fio 哪个版本支持external引擎的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants