Skip to content
New issue

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

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

Already on GitHub? # to your account

Can't use fio to check performace of mergerfs #1282

Open
khaidox opened this issue Nov 22, 2023 · 1 comment
Open

Can't use fio to check performace of mergerfs #1282

khaidox opened this issue Nov 22, 2023 · 1 comment

Comments

@khaidox
Copy link

khaidox commented Nov 22, 2023

I can't use fio to check perfomace of mergerfs:

  1. Setup via Command Line

mergerfs -o cache.files=libfuse /disk1:/disk2 /media

  1. Run fio
  • Use bs=1M
    fio --name=test --filename=/media --rw=read --bs=1M --numjobs=32 --runtime=20 --iodepth=8 --direct=1 --ioengine=libaio

fio: blocksize is larger than data set range
fio: blocksize is larger than data set range
fio: blocksize is larger than data set range
fio: blocksize is larger than data set range

I get this message

  • Use bs=100
    fio --name=test --filename=/media --rw=read --bs=100 ....

fio: looks like your file system does not support direct=1/buffered=0
fio: destination does not support O_DIRECT
fio: pid=1705728, err=22/file:filesetup.c:805, func=open(/media), error=Invalid argument
fio: pid=1705726, err=22/file:filesetup.c:805, func=open(/media), error=Invalid argument
fio: pid=1705727, err=22/file:filesetup.c:805, func=open(/media), error=Invalid argument
fio: looks like your file system does not support direct=1/buffered=0
fio: destination does not support O_DIRECT

I wonder if can I use fio to check performace of mergerfs?
Note: If I use RAID0, I can use fio to check performace

@trapexit
Copy link
Owner

  1. Please include information in tickets as request. I really can't comment on things intelligently without those details.
  2. O_DIRECT is only partially supported due to the limitations of FUSE. Newest versions of mergerfs now somewhat support O_DIRECT but not fully.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants