DPDK usage discussions
 help / color / mirror / Atom feed
From: "Girard, Guillaume" <guillaume.girard@intel.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Multi-process DPDK application: only one process receiving packets
Date: Wed, 11 Jul 2018 14:51:44 +0000	[thread overview]
Message-ID: <75D774780A02A24FA31E7E60A7A72BA686865497@IRSMSX101.ger.corp.intel.com> (raw)

Hi,

I'm battling with some strange DPDK multi-process behavior, so any help would be appreciated.

I have built a "data sink" application with DPDK. It listens to certain streams of packets and report statistics on those. The application works with a specific Ethernet port specified at the command-line. To listen to multiple ports at once, I made the application Primary/Secondary aware, so if you start the first one as primary, and the others as secondary, it all works fine. I tested this on two machines with Intel X550T cards (ixgbe driver), and I can listen to traffic on as many ports as I have (4x2=8 in my case), with 8 applications in parallel.

Then I moved to another machine, which has X722 ports (i40e driver). That breaks my data-sink in the following way: only one application receives packets. That  is:
(1)  ./data-sink --proc=primary <args>       <- receives packets
(2)  ./data-sink --proc=secondary <args>     <- no packets

I know the invocation of the application is fine, because if I simply run (2) alone with -proc=primary, then I receive traffic on the second port as expected.

I also tried to run them without any connection to one another:
./data-sink --proc=primary -m 1024 -file-prefix=d0 <args>
./data-sink --proc=primary -m 1024 -file-prefix=d1 <args>
And I still get only one application receiving packets (the second one, this time).

When I say "no packets", I should qualify that a bit. I do get packets from time to time. They are just filled with 0, with size varying from 60 to 300 bytes. I get no meaningful packets (ARP request, ping, actual traffic, etc.).

The X772T ports are 4 PCI functions on the same device - I don't know if that makes a difference, but in the X550T, I had two functions per device with no issue. I tested that with DPDK 17.11.2 and DPDK 18.02.2 and obtained the exact same behavior. I retested on my original hardware, and my code works fine there. I did disable ASLR as recommended in the documentation.

Any suggestion on what I could check?

Best regards,
Guillaume Girard

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

                 reply	other threads:[~2018-07-11 14:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=75D774780A02A24FA31E7E60A7A72BA686865497@IRSMSX101.ger.corp.intel.com \
    --to=guillaume.girard@intel.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).