Mellanox/sockperf

How to compile sockperf with vma_extra.h?

datar opened this issue · 5 comments

datar commented

The sockperf came with OFED is not compiled with vma_extra.h.
So How to compile sockperf with vma_extra.h?

According to libvma’s README.txt:
The VMA extra socket API is located at: /usr/include/mellanox/vma_extra.h

If you don’t see that, than it is a question for libvma.
Avner

From: datar [mailto:notifications@github.com]
Sent: Wednesday, April 20, 2016 02:15
To: Mellanox/sockperf sockperf@noreply.github.com
Subject: [Mellanox/sockperf] How to compile sockperf with vma_extra.h? (#68)

I've install the newest OFED and libvma.
/usr/include/mellanox doesn't include the file vma_extra.h

So How to compile sockperf with vma_extra.h?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/68

What command did you use for OFED installation and what command did you use for VMA installation?
It is best that when installing OFED you add "--vma-eth" flag such that VMA (over Ethernet) is installed as part of OFED installation (see installation options with "--help")

My favorite parameters (when working over Ethernet):
sudo ./mlnxofedinstall --vma-eth --force --force-fw-update

Another option for vma_extra.h installation:
Clone latest VMA version:
-> cd "working directory"
-> git clone https://github.com/Mellanox/libvma.git -b master
-> cd libvma
Compile:
->./autogen.sh
-> ./configure
-> make -j
-> sudo make install
That should install vma_extra.h under:
/usr/local/include/mellanox/vma_extra.h

datar commented

Thank you @OphirMunk ,
I used --vma parameter to install libvma.
Do I need add --vma-eth option if I work on IPoIB mode?

Good choice. --vma options is applicable for both Eth and IB (your case). You did right.