Re: [dpdk-users] Running DPDK application in Linux init level 3

2018-04-11 Thread Rosen, Rami
Hi Anad,

Happy to hear that it worked for you.

Regarding the performance: this is strange to hear.
Are you sure that you are running DPDK the same way in
both cases (same parameters, same /proc/cmdline, etc)?


Regards,
Rami

From: Anand Prasad [mailto:anandnpra...@yahoo.com]
Sent: Wednesday, April 11, 2018 09:55
To: users@dpdk.org; Rosen, Rami 
Subject: Re: RE: [dpdk-users] Running DPDK application in Linux init level 3

Thanks Rami Rosen

I tried the steps you have suggested, and with that, I am able to boot in 
command line.
But still I face the same packet drop issue.

Any guess, what causing problem?

Regards,
Anand Prasad

On Wednesday, 11 April, 2018, 1:02:47 AM IST, Rosen, Rami 
> wrote:


Hi Anan,
You better use the same Grub kernel command line parameters both in
run level 5 and in run level 3.
In order to be able to do so, keep the GRUB_CMDLINE_LINUX as what you had in 
init level 5, and assuming you are using one of the popular distros (like 
Fedora or recent Ubuntus), which runs systemd, the recommended way to what you 
call "disable the gui" is by a systemd command called systemctl.

So, when the gui mode is enabled, you will get:
systemctl get-default
graphical.target

And to disable the gui you can run:

sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target

After boot, both in run level 3 and in run level 5, you will be able to verify 
that the kernel command line is as expected with:

cat /proc/cmdline

Regards,
Rami Rosen

-Original Message-
From: users [mailto:users-boun...@dpdk.org] On 
Behalf Of Anand Prasad
Sent: Tuesday, April 10, 2018 15:12
To: users@dpdk.org
Subject: [dpdk-users] Running DPDK application in Linux init level 3

Hi DPDK Team,
  I am trying to run DPDK application in Linux with init level 3 (no gui) and I 
am observing continuous packet drops on Rx side. But, If I boot Linux in init 
level 5 (GUI), then I dont see drops.
  I have provided linux command line arguments (for isolating the cpu cores and 
hugepates etc in "GRUB_CMDLINE_LINUX_DEFAULT" variable, and with those it's 
working fine in init level 5. But, not sureif these configuration are 
applicable when I boot in Init level 3?
 To boot in init level 3, I am setting GRUB_CMDLINE_LINUX="3" , is it correct? 
If not please suggest what is theother method.
Thanks in advance.Anand


Re: [dpdk-users] Wrong OFED version for DPDK 17.11.1 ?

2018-04-11 Thread Shahaf Shuler
Hi Iain, 

Tuesday, April 10, 2018 10:12 PM, Iain Barker:
> Subject: [dpdk-users] Wrong OFED version for DPDK 17.11.1 ?
> 
> Hi all,
> 
> I'm trying to build 17.11.1 against libibverbs from OFED 4.2-1.0.0.0 but 
> having
> some API compatibility issues.
> 
> According to the DPDK docs, that's the correct version for DPDK 17.11
> Ref: "Mellanox OFED version: 4.2" in
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdp
> dk.org%2Fdoc%2Fguides-
> 17.11%2Fnics%2Fmlx5.html=02%7C01%7Cshahafs%40mellanox.com%7
> C00e205bcc93b4ab687ce08d59f16ec56%7Ca652971c7d2e4d9ba6a4d149256f4
> 61b%7C0%7C0%7C636589843233074081=tRgQGtKP3WlalZ8XYVp6Qvq
> pkStiVgdup6EmZSKEC3c%3D=0
> 
> But I get multiple errors which suggest the API versions are incompatible.  
> For
> example:
> 
>priv->hw_csum =
>   !!(device_attr_ex.device_cap_flags_ex &
>  IBV_DEVICE_RAW_IP_CSUM);
> 
> drivers/net/mlx5/mlx5.c:794:21: error: 'struct ibv_device_attr_ex' has no
> member named 'device_cap_flags_ex'
> 
> MLNX_OFED_SRC-4.2-1.0.0.0 contains libibverbs-41mlnx1, and that has
> include/infiniband/verbs.h with the following typedef:
> struct ibv_device_attr_ex {
>   struct ibv_device_attr  orig_attr;
>   uint32_t  comp_mask;
>   struct ibv_odp_caps odp_caps;
> };
> 
> So the docs appear to be wrong. no way the OFED 4.2 version of mlx5.c is
> going to compile against that header.
> 
> What version of libibverbs should I actually be using for DPDK 17.11.1 ?

Starting from DPDK 17.11 MLX5 PMD uses rdma-core as the user space instead of 
libibverbs/libmlx5. As you can see from the doc it will be installed when 
calling mlnx ofed installation script using --usptream-libs. 

You were installing the legacy ibverbs, hence the compilation errors. Try to 
install rdma-core instead. 

> 
> thanks,
> Iain


Re: [dpdk-users] Running DPDK application in Linux init level 3

2018-04-11 Thread Anand Prasad
 Thanks Rami Rosen
I tried the steps you have suggested, and with that, I am able to boot in 
command line.But still I face the same packet drop issue.
Any guess, what causing problem?
Regards,Anand Prasad
On Wednesday, 11 April, 2018, 1:02:47 AM IST, Rosen, Rami 
 wrote:  
 
 Hi Anan,
You better use the same Grub kernel command line parameters both in 
run level 5 and in run level 3.
In order to be able to do so, keep the GRUB_CMDLINE_LINUX as what you had in 
init level 5, and assuming you are using one of the popular distros (like 
Fedora or recent Ubuntus), which runs systemd, the recommended way to what you 
call "disable the gui" is by a systemd command called systemctl.

So, when the gui mode is enabled, you will get:
systemctl get-default
graphical.target

And to disable the gui you can run:

sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target

After boot, both in run level 3 and in run level 5, you will be able to verify 
that the kernel command line is as expected with:

cat /proc/cmdline

Regards,
Rami Rosen


-Original Message-
From: users [mailto:users-boun...@dpdk.org] On Behalf Of Anand Prasad
Sent: Tuesday, April 10, 2018 15:12
To: users@dpdk.org
Subject: [dpdk-users] Running DPDK application in Linux init level 3

Hi DPDK Team,
  I am trying to run DPDK application in Linux with init level 3 (no gui) and I 
am observing continuous packet drops on Rx side. But, If I boot Linux in init 
level 5 (GUI), then I dont see drops.
  I have provided linux command line arguments (for isolating the cpu cores and 
hugepates etc in "GRUB_CMDLINE_LINUX_DEFAULT" variable, and with those it's 
working fine in init level 5. But, not sureif these configuration are 
applicable when I boot in Init level 3?
 To boot in init level 3, I am setting GRUB_CMDLINE_LINUX="3" , is it correct? 
If not please suggest what is theother method.
Thanks in advance.Anand