Skip to content
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

SPDK fio_plugin not working on Ubuntu-Configuration error possibly #367

Closed
dwy189 opened this issue Jul 18, 2018 · 6 comments
Closed

SPDK fio_plugin not working on Ubuntu-Configuration error possibly #367

dwy189 opened this issue Jul 18, 2018 · 6 comments

Comments

@dwy189
Copy link

dwy189 commented Jul 18, 2018

I was using VirtualBox and on the Ubuntu 16.04 version. My fio version was: 2.2.10. I tried the same procedures as from the SPDK Fio_plugin README told me. But I still got the following error:

weiyoud@weiyoud-VirtualBox:~/spdk/examples/nvme/fio_plugin$ LD_PRELOAD=/home/weiyoud/spdk/examples/nvme/fio_plugin/fio_plugin /home/weiyoud/fio/fio example_config.fio
ERROR: ld.so: object '/home/weiyoud/spdk/examples/nvme/fio_plugin/fio_plugin' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
fio: engine spdk not loadable
fio: failed to load engine
fio: file:ioengines.c:89, func=dlopen, error=spdk: cannot open shared object file: No such file or directory

Expected Behavior

fio command should run with ioengine=SPDK

Current Behavior

Error occurs. The fio works with libaio ioengine though.

Possible Solution

We assume it was a configuration issue but it still did not work even when we tried different parameter combination.

Context (Environment including OS version, SPDK version, etc.)

I was using VirtualBox and on the Ubuntu 16.04 version. My fio version was: 2.2.10.

@alekseymmm
Copy link

alekseymmm commented Jul 19, 2018

The suggested version of fio for correct work with spdk is fio 3.3. I think it makes sense to try this fio version.

@dwy189
Copy link
Author

dwy189 commented Jul 19, 2018

@alekseymmm When I have "fio --version" directly in the command line window, it shows "fio-2.2.10" because the default fio version for Ubuntu is 2.2.10. https://packages.ubuntu.com/search?keywords=fio However, when I have "./fio --version" under the fio directory, it shows: "fio-3.3". I am confused. In addition, I actually tried the two different fio commands ("fio xxxxx" and "fio/ ./fio") but neither works. Any ideas? Thanks in advance.

@xuhuagen
Copy link
Contributor

@dwy189 in dir /home/weiyoud/fio/,the fio version is fio-3.3 ,fio-2.2.10 should be version of fio system package.
do you complile spdk with fio option?(./configure --with-fio=/path/to/fio). if not ,try it.

@alekseymmm
Copy link

@dwy189

  1. If you don't mind your default fio version then just do
cd  /home/weiyoud/fio/
./configure
make install

this will set up fio 3.3.
2. make sure that when you compiled spdk you run
./configure --with-fio=/path/to/fio
3. show what is in config that you pass to fio. I mean /home/weiyoud/fio/fio example_config.fio

@dwy189
Copy link
Author

dwy189 commented Jul 22, 2018

After following the procedures by @alekseymmm, I was able to run the fio command successfully. The error was caused by fio version mismatch. Thank you so much for the helps.

@dwy189 dwy189 closed this as completed Jul 22, 2018
@vspvijay
Copy link

Experiencing this issue on Ubuntu 16.04 even after compiling the FIO 3.3.

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

4 participants