[dpdk-dev] Using DPDK in a multiprocess environment

2014-04-10 Thread Etai Lev Ran
ess is required. The reason is simple, if > >>process A thinks the virtual address of an mbuf is 123, and process > >>B thinks the virtual address of the same mbuf is 456, either > >>process may segmentation fault, accessing mbuf memory that is not > >>actua

[dpdk-dev] Using DPDK in a multiprocess environment

2014-04-08 Thread Etai Lev Ran
Hi, I'd like to split DPDK application functionality into a setup (primary) process and business logic (secondary) processes. The secondary processes access the hardware queues directly (exclusive queue per process) and not through software rings. I'm running into an initialization problem:

[dpdk-dev] NUMA CPU Sockets and DPDK

2014-02-12 Thread Etai Lev Ran
Hi Prashant, Based on our experience, using DPDK cross CPU sockets may indeed result in some performance degradation (~10% for our application vs. staying in socket. YMMV based on HW, application structure, etc.). Regarding CPU utilization on core 1, the one picking up traffic: perhaps I had mis

[dpdk-dev] Unable to build dpdk : #error "SSSE3 instruction set not enabled"

2013-11-29 Thread Etai Lev-Ran
Hi Surya, SSE3 instructions are not enabled by default. To enable, you can either tell gcc your CPU architecture (-march=) as suggested by Marc, or enable just the specific SSE version that's supported by your CPU (e.g., make TOOLCHAIN_CFLAGS="-msse4") See http://gcc.gnu.org/onlinedocs/gcc/i386-

[dpdk-dev] rte_ring_sc_dequeue returns 0 but sets packet to NULL

2013-11-20 Thread Etai Lev-Ran
Hi Pepe, I?m assuming you?re creating and accessing the ring safely (i.e., single/multiple consumers and producers). Based on the code, these return values are possible if the ring somehow got a NULL object pointer enqueued to it. >From the ring?s perspective the entries are valid, and

[dpdk-dev] raw frame to rte_mbuf

2013-11-12 Thread Etai Lev-Ran
Hi Pepe, In addition, you may want to consider the frame's lifetime, to ensure memory is used and released in a valid way. When sending, it may be de-referenced by DPDK and consequently a memory free may be tried. Hence, it is important that the raw buffer used for the ARP packet is allocated wit