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 
<rami.ro...@intel.com> 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
  


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

2018-04-10 Thread Anand Prasad
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] DPDK Performance tips

2018-02-19 Thread Anand Prasad
Hi Thomas, et.al.

   Thanks for response.
   I have followed the advices provided in the links you have provided but 
still i see the problem.
Recently, I studied dpdk-pktgen application and developed an application very 
much similar to that. I mean, have made device, rx and tx, memmory pool and 
cache size configurations that pktgen uses. pktgen seems work fine without any 
Rx packet drop but my application reports packet drop.
   Any guess what could be wrong with my application? 

   I see packet drops in my application, when I launch some other application 
(say browser or system monitor). But, in such situations, pktgen application 
works without any packet drops.
Regards,Anand Prasad  
 

On Wednesday, 13 December 2017 4:41 PM, Thomas Monjalon 
<tho...@monjalon.net> wrote:
 

 13/12/2017 09:14, Anand Prasad:
>  Hi Dpdk team,
>    Can anyone please share tips to get better DPDK performance? I have tried 
>to run DPDK test applications on various PC configurations with different CPU 
>Speeds, RAM Size/Speed and and PCIex16 2nd and 3rd generation connections... 
>but I don't get very consistent results.
>    The same test application does not behave similarly on 2 PC's with same 
>hardware configuration.But general observation is that, performance is better 
>on Intel motherboard with 3rd generation PCIe slot. When tried on Gigabyte 
>motherboard (even with higher CPU and RAM speeds), performance was very poor.
>    The performance issue I am facing is the Packet Drop issue on the Rx side.
>  Two PC's with exactly same hardware configuration, one PC drops packets 
>after few hours, but in the other PC I don't observe packet drop
> Highly appreciate a quick response
> Regards,Anand Prasad

This is very complicate because it really depends on the hardware.
Managing performance requires a very good knowledge of the hardware.

You can find some basic advices in this guide for some Intel hardware:
    http://dpdk.org/doc/guides/linux_gsg/nic_perf_intel_platform.html
You will also find some informations in the drivers guide. Example:
    http://dpdk.org/doc/guides/nics/mlx5.html#performance-tuning



   


[dpdk-users] DPDK Performance tips

2017-12-13 Thread Anand Prasad
 Hi Dpdk team,
   Can anyone please share tips to get better DPDK performance? I have tried to 
run DPDK test applications on various PC configurations with different CPU 
Speeds, RAM Size/Speed and and PCIex16 2nd and 3rd generation connections... 
but I don't get very consistent results.
   The same test application does not behave similarly on 2 PC's with same 
hardware configuration.But general observation is that, performance is better 
on Intel motherboard with 3rd generation PCIe slot. When tried on Gigabyte 
motherboard (even with higher CPU and RAM speeds), performance was very poor.
    The performance issue I am facing is the Packet Drop issue on the Rx side.
 Two PC's with exactly same hardware configuration, one PC drops packets after 
few hours, but in the other PC I don't observe packet drop
Highly appreciate a quick response
Regards,Anand Prasad

 


[dpdk-users] Binding NIC to igb_uio or uio_pci_generic

2017-02-21 Thread Anand Prasad
Hi Dpdk Team,
I request the team help me solve below issues:
1) Binding a NIC to DPDK igb_uio module:
   I am trying to bind the NIC to the igb_uio driver module [i.e. Unbinding it 
from the Linux control]. Using the dpdk-setup.sh script I am able to bind the 
NIC to uio_driver. After binding it to igb_uio module, that NIC is shown under 
the DPDK Comatiable drivers list, but there is no interface name for this NIC 
and am not able to use that NIC in DPDK tests. 
    So, how to get the interface name for this NIC. Otherwise, is it possible 
to use without interface name?

2) Runnig DPDK test application without binding NIC to igb_uio module:
    The DPDK document clear says that, if a NIC is under Linux control, it will 
be ignored by the DPDK. what does
it mean? Is it like, I will not be able to run any DPDK tests if I don't have 
NIC under DPDK compatible driver?
    As I have observed in my tests, even without binding a NIC to DPDK igb_uio 
module, I am able to run the DPDK tests on that NIC. So, what is the 
importance/significance of binding a NIC to DPDK igb_uio module?

Thanks in advance for quick response.
Regards,Anand Prasad



[dpdk-users] Fw: DPDK Error --> EAL: No free hugepages reported in hugepages-2048kB

2016-02-05 Thread anand prasad


 On Thursday, 4 February 2016 5:56 PM, anand prasad  wrote:


 Hi DPDK Team,
? I am new to DPDK and trying to understand DPDK by running the examples 
provided in the kit.
?I am using UBUNTU 14.04 64 bit OS and have successfully buit the kit on this 
system. Am getting below errors while executing below command:
command: build/app/testpmd -c7 -n3 --vdev=eth_pcap0,iface=eth0 
--vdev=eth_pcap1,iface=eth1 -- -i --nb-cores=2 --nb-ports=2 
--total-num-mbufs=2048
command output:
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 2 on socket 0
EAL: Detected lcore 3 as core 3 on socket 0
EAL: Detected lcore 4 as core 0 on socket 0
EAL: Detected lcore 5 as core 1 on socket 0
EAL: Detected lcore 6 as core 2 on socket 0
EAL: Detected lcore 7 as core 3 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 8 lcore(s)
EAL: No free hugepages reported in hugepages-2048kB
PANIC in rte_eal_init():
Cannot get hugepage information
6: [build/app/testpmd() [0x439493]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f86cf2dcec5]]
4: [build/app/testpmd(main+0x52) [0x436bf2]]
3: [build/app/testpmd(rte_eal_init+0xc43) [0x4b60f3]]
2: [build/app/testpmd(__rte_panic+0xc9) [0x431640]]
1: [build/app/testpmd(rte_dump_stack+0x1a) [0x4bcdfa]]
Aborted (core dumped)
Can anyone help me understand the issue and possible solution.
Thanks in advanceRegards,Anand Prasad+91 9880666968