No compress devices found when measuring the compression accelerator on BlueField-2

Hi,

I am using dpdk-test-compress-perf to measure the performance of the onboard compression accelerator on BlueFeild-2 (MBF2H516A-CENOT). The Mellanox OFED driver is MLNX_OFED_LINUX-5.5-1.0.3.2-ubuntu20.04-x86_64 and the bfb file I used is DOCA_v1.2.1_BlueField_OS_Ubuntu_20.04-5.4.0-1023-bluefield-5.5-2.1.7.0-3.8.5.12027-1.signed-aarch64.bfb. The measure command is
sudo /opt/mellanox/dpdk/bin/dpdk-test-compress-perf -l 4 -a 03:00.0,class=compress -- --driver-name mlx5_compress --input-file file.txt --seg-sz 8192 --compress-level 1:1:9 --num-iter 10 --extended-input-sz 1048576 --max-num-sgl-segs 16 --huffman-enc fixed

The logs show that “No compress devices type mlx5_compress available”. Could you please check whether my command is correct? Or are there other ways or tools to benchmark the compression accelerator? The full log is shown below.

ubuntu@localhost:/opt/mellanox/dpdk/bin$ sudo ./dpdk-test-compress-perf -l 4 -a 03:00.0,class=compress -- --driver-name mlx5_compress --input-file file.txt --seg-sz 8192 --compress-level 1:1:9 --num-iter 10 --extended-input-sz 1048576 --max-num-sgl-segs 16 --huffman-enc fixed
EAL: Detected 8 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL:   Device is not NUMA-aware, defaulting socket to 0
EAL: Probe PCI driver: mlx5_pci (15b3:a2d6) device: 0000:03:00.0 (socket 0)
EAL: No legacy callbacks, legacy socket not created
USER1: No compress devices type mlx5_compress available, please check the list of specified devices in EAL section

Any response will be appreciated. :)

Best regards.

Hello,

Try to run:
./dpdk-test-compress-perf -l0-1 -n 1 -a 03:00.0,class=compress – –driver-name mlx5 --input-file [file to compress]

Best Regards,
Viki

Hi,

you can try something like this:

root@l-csi-bf2-25g-24:/home/ubuntu# du -sh file.txt
1001M file.txt
root@l-csi-bf2-25g-24:/home/ubuntu# sysctl -w "vm.nr_hugepages=4096"
vm.nr_hugepages = 4096
root@l-csi-bf2-25g-24:/home/ubuntu# /opt/mellanox/dpdk/bin/dpdk-test-compress-perf -l0-1 -n 1 -a 03:00.0,class=compress – --driver-name mlx5 --input-file file.txt --compress-level 1:1:9 --num-iter 10 --extended-input-sz 1048576 --max-num-sgl-segs 16 --huffman-enc fixed
EAL: Detected 8 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode ‘PA’
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support…
EAL: VFIO support initialized
EAL: Device is not NUMA-aware, defaulting socket to 0
EAL: Probe PCI driver: mlx5_pci (15b3:a2d6) device: 0000:03:00.0 (socket 0)
EAL: No legacy callbacks, legacy socket not created
USER1: Compress device does not support chained mbufs. Max SGL segments set to 1

USER1: 1048576 bytes read from file file.txt

App uses socket: 0
Burst size = 32
Input data size = 1048576

Warning: for the current input parameters, number of ops is higher than one, which may result in sub-optimal performance.
To improve the performance (for the current input data) following parameters are suggested:
* Segment size: 59460
* Number of segments: 18

For the current input parameters (segment size = 2048, maximum segments per SGL = 1):
* Total number of buffers: 512
* 511 buffer(s) 2048 bytes long, last buffer 2048 byte(s) long
* Number of ops: 512
* Total memory allocation: 1048576
* 511 ops: 1 segment(s) in each, segment size 2048
* 1 op (the last one): 1 segment 2048 byte(s) long

lcore: 1, driver name: mlx5, device name: mlx5_0, device id: 0, socket id: 0, queue pair id: 0

lcore id Level   Comp size   Comp ratio [%]    Comp [Gbps]   Decomp [Gbps]
       1     1        8704             0.83          34.14           90.15
       1     2        8704             0.83          34.11           89.70
       1     3        8704             0.83          34.11           89.62
       1     4        8704             0.83          34.16           89.83
       1     5        8704             0.83          34.18           89.69
       1     6        8704             0.83          34.14           89.53
       1     7        8704             0.83          34.15           89.84
       1     8        8704             0.83          34.12           89.42
       1     9        8704             0.83          34.17           89.62

root@l-csi-bf2-25g-24:/home/ubuntu#

Best Regards,
Anatoly