Unbind virtio_net drivers and install the fio tool on the host
server.
Before you begin
Make sure that you have:
About this task
Note: The following prompts are used to indicate which part of the system to run the
provided commands on.
- host#: The server where the IPU is installed.
Procedure
-
On the host, disable virtio_net drivers.
Create a script with the file name,
disable_virtio_net.sh. For
example:
host# vim disable_virtio_net.sh
Copy and paste the following
commands in the
file.
#!/bin/bash
for n in $(lspci -n | grep 1af4:1000 | cut -d' ' -f1)
do
echo unbinding $n;
echo 0000:$n > /sys/bus/pci/devices/0000:$n/driver/unbind;
done
-
On the host, execute the script.
host# chmod +x disable_virtio_net.sh
host# ./disable_virtio_net.sh
An
output example:
unbinding 0f:00.0
unbinding 10:00.0
unbinding 11:00.0
unbinding 12:00.0
unbinding 13:00.0
unbinding 14:00.0
unbinding 15:00.0
unbinding 16:00.0
unbinding 17:00.0
unbinding 18:00.0
unbinding 19:00.0
unbinding 1a:00.0
-
Install the fio tool.
For
example:
host# dnf group install "Development Tools"
host# dnf install libaio-devel
host# git clone git://git.kernel.dk/fio.git
host# cd fio
host# ./configure
host# make
host# make install
-
Check the directory where fio is installed.
For example:
which fio
An output
example:
/usr/local/bin/fio