[dpdk-dev] Profiling tools for DPDK applications running on VM inside ESXi server

2014-02-28 Thread Daniel Kan
> > Thanks, > Selvaganapathy.C. > > > On Fri, Feb 28, 2014 at 6:07 PM, Daniel Kan wrote: > Hi, > I?m wondering which profilers are best for profiling DPDK applications > running on VM: perf, oprofile, vtune? The first 2 are open sourced while > vtune is commercial.

[dpdk-dev] On vmxnet-pmd crash in DPDK 1.6.0r1

2014-03-10 Thread Daniel Kan
I also got the segfault. Setting CONFIG_RTE_EAL_UNBIND_PORTS=y is not ideal because it would also unbind my VMNET3 management interface. Does anyone know why the crash is happening? According to the stacktrace, hw_addrX is 0x0 during eth_vmxnet3_dev_init. I?m running on ubuntu 12.04LTS on ESXi

[dpdk-dev] On vmxnet-pmd crash in DPDK 1.6.0r1

2014-03-10 Thread Daniel Kan
.drv_flags = RTE_PCI_DRV_NEED_IGB_UIO, -#endif }, .eth_dev_init = eth_vmxnet3_dev_init, .dev_private_size = sizeof(struct vmxnet3_adapter), Thanks. Dan On Mar 10, 2014, at 10:33 PM, Daniel Kan wrote: > I also got the segfault. Setting CONFIG_RTE_EAL_UNBIND_PORTS=y is no

[dpdk-dev] On vmxnet-pmd crash in DPDK 1.6.0r1

2014-03-10 Thread Daniel Kan
477 #ifdef RTE_EAL_UNBIND_PORTS 478 .drv_flags = RTE_PCI_DRV_NEED_IGB_UIO, 479 #endif 480 }, 481 .eth_dev_init = eth_virtio_dev_init, 482 .dev_private_size = sizeof(struct virtio_adapter), 483 }; On Mar 10, 2014, at 11:20 PM, Daniel Kan wrote: > Upon further trace, I know what cause

[dpdk-dev] RSS, performance, and stability issues vmxnet3-pmd

2014-03-11 Thread Daniel Kan
I?m unable to get RSS to work properly with vmxnet3-pmd. The first issue is that the number of rxqs must be power of 2. Otherwise, rte_eth_dev_start() fails due to inability to activate vmxnet3 NIC. This is not too big of a deal, but physical NICs don?t have this requirement. The second issue

[dpdk-dev] [PATCH] vmxnet3: fixed segfault when initializing vmxnet3 pmd on linux platform

2014-03-12 Thread Daniel Kan
The vmxnet3 PCI hardware resources were never memory mapped when RE_EAL_UNBIND_PORTS is not defined. Specifically, pci_dev->mem_resource is not mapped. The fix is to always set drv_flags with RTE_PCI_DRV_NEED_IGU for vmxnet3. This ensures pci_uio_map_resource() is called. Signed-off-by: Dan

[dpdk-dev] Vmxnet3-pmd not receiving packets after random time under high load

2014-03-13 Thread Daniel Kan
0 and 3970 After the last packet is received 4481 I appreciate any comment/help on this. Thanks. Dan On Mar 11, 2014, at 12:55 PM, Daniel Kan wrote: > I?m unable to get RSS to work properly with vmxnet3-pmd. The first issue is > that the number of rxqs must be power of

[dpdk-dev] Profiling tools for DPDK applications running on VM inside ESXi server

2014-02-28 Thread Daniel Kan
Hi, I?m wondering which profilers are best for profiling DPDK applications running on VM: perf, oprofile, vtune? The first 2 are open sourced while vtune is commercial. DPDK apps are running on ubuntu 12.04 and centos 6.5. Thanks. Dan

[dpdk-dev] What's the performance significance of ixgbe_recv_pkts_bulk_alloc

2014-02-23 Thread Daniel Kan
Hi, While browsing through the ixgbe pmd code, I noticed that there is ixgbe_recv_pkts_bulk_alloc, which can be enabled if the following preconditions are met. * rxq->rx_free_thresh >= RTE_PMD_IXGBE_RX_MAX_BURST * rxq->rx_free_thresh < rxq->nb_rx_desc * (rxq->nb_rx_desc % r

[dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow

2014-02-27 Thread Daniel Kan
Hi, It appears that the hash computed from RSS is unidirectional. Hence, for a 5-tuple flow, packet in one direction can be routed to a queue that may be different than packet in the other direction. I?m wondering if there is a configuration or mechanism to get a symmetric hash so that all packe

[dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow

2014-02-27 Thread Daniel Kan
t: > http://www.ndsl.kaist.edu/~shinae/papers/TR-symRSS.pdf > > Sangjin > > On Thu, Feb 27, 2014 at 4:22 PM, Daniel Kan wrote: >> Hi, >> It appears that the hash computed from RSS is unidirectional. Hence, for a >> 5-tuple flow, packet in one direction can be routed to a q

[dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow

2014-02-27 Thread Daniel Kan
ST/SRC on the same queue and come up with an RSK value? If not > I'll spend some time with a calculator and see if I can get one. > Thanks, > Stefan > > Sent from my smart phone; people don't make typos, Swype does! > > On Feb 27, 2014 8:04 PM, "Daniel Kan&quo

[dpdk-dev] Unable to get RSS to work in testpmd and load balancing question

2014-01-09 Thread Daniel Kan
The problem appears to be that rxmode.mq_mode was never set to ETH_MQ_RX_RSS in testpmd.c; it?s initialized to 0. There should probably be a configuration for that, or should be set when rxq > 1. Dan On Jan 8, 2014, at 3:24 PM, Dan Kan wrote: > I'm evaluating DPDK using dpdk-1.5.1r1. I have

[dpdk-dev] Query about this NIC

2014-01-09 Thread Daniel Kan
I?m using X520-DA2 Server Adapter E10G42BTDA PCIe Dual-Port 2xSFP+ to evaluate DPDK. It works fine as far as i can tell. Dan On Jan 9, 2014, at 8:06 AM, Prashant Upadhyaya wrote: > Hi, > > No, I have not used X520-T2 before. > > If anybody on the list has used the above successfully, pleas

[dpdk-dev] Unable to get RSS to work in testpmd and load balancing question

2014-01-09 Thread Daniel Kan
Thanks, Sy Jong. I couldn?t reproduce your outcome on dpdk 1.5.1 with ixgbe. As I sent in the earlier email, rxmode.mq_mode is defaulted to 0 (i.e. ETH_MQ_RX_NONE); it should be set to ETH_MQ_RX_RSS. Dan On Jan 9, 2014, at 6:07 PM, Choi, Sy Jong wrote: > > Hi Dan, > > I have tested with 6 f

[dpdk-dev] [PATCH] app/testpmd: fix RSS rx by setting mq_mode

2014-01-10 Thread Daniel Kan
--- app/test-pmd/testpmd.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index b11eb2e..355db0f 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1546,6 +1546,9 @@ init_port_config(void) if (nb_rxq > 0)

[dpdk-dev] [PATCH v2] app/testpmd: fix RSS by setting mq_mode

2014-01-13 Thread Daniel Kan
NONE should disable RSS Signed-off-by: Daniel Kan --- Updated commit log in accordance with dpdk guidelines app/test-pmd/testpmd.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index b11eb2e..355db0f 100644 --- a/app/test-pmd/testpmd.

[dpdk-dev] Any benefit of using DPDK's makefiles instead of using your own and linking against DPDK library

2014-01-13 Thread Daniel Kan
I already have existing makefiles for my current application. I would like to integrate dpdk into the application. ?m wondering if there is any benefit to use dpdk?s makefiles instead of using your own makefile and linking against the library (e.g. libintel_dpdk.a). Thanks. Dan

[dpdk-dev] [PATCH v2] app/testpmd: fix RSS by setting mq_mode

2014-01-14 Thread Daniel Kan
Maxime, Thanks for your comment. If we want testpmd to have RSS always enabled out of box (note that rxq=1), then your suggestion makes sense. I?m new to dpdk so I was trying to preserve the current behavior. Now looking back, I guess that?s why we have an explicit disable-rss option. If I don?t

[dpdk-dev] Any benefit of using DPDK's makefiles instead of using your own and linking against DPDK library

2014-01-14 Thread Daniel Kan
at dpdk.org] On Behalf Of Thomas Monjalon >>> 14/01/2014 08:02, Daniel Kan: >>>> I already have existing makefiles for my current application. I would >>>> like to integrate dpdk into the application. ?m wondering if there is >>>> any benefit to use dpdk?s m

[dpdk-dev] [PATCH v3]

2014-01-15 Thread Daniel Kan
able RSS Signed-off-by: Daniel Kan --- Enable RSS even if rxq=1 based on comment from Maxime Leroy. app/test-pmd/testpmd.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index b11eb2e..42e1fdb 100644 --- a/app/test-pmd/testpmd.c +++ b/app/

[dpdk-dev] [PATCH v3] app/testpmd: fix RSS rx by setting mq_mode

2014-01-15 Thread Daniel Kan
able RSS Signed-off-by: Daniel Kan --- Enable RSS even if rxq=1 based on comment from Maxime Leroy. app/test-pmd/testpmd.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index b11eb2e..42e1fdb 100644 --- a/app/test-pmd/testpmd.c +++ b/app/

[dpdk-dev] Selecting Linux distribution for DPDK applications: CentOS or Debian

2014-01-30 Thread Daniel Kan
I?m deciding between Debian 7.3 (3.2.0 kernel) and CentOS 6.5 (2.6.32 kernel) for production. I?m wondering if anyone has recommendation. We run the DPDK application in a virtualized environment. Currently, we configure NICs in pass-through mode which gives the best performance. In the future, w

[dpdk-dev] Selecting Linux distribution for DPDK applications: CentOS or Debian

2014-01-30 Thread Daniel Kan
ra 18 and it works fine for me for >>> virtualization including SRIOV and pass through as well as virtio with >> KNI >>> backend. >>> So I am tending to stick to Fedora 18. >>> >>> I don't know why is CentOS not tested and mentioned