DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Richardson, Bruce" <bruce.richardson@intel.com>
To: Mauro Annarumma <mauroannarumma@hotmail.it>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Issues on FDIR and multi-processes
Date: Wed, 2 Apr 2014 15:33:09 +0000	[thread overview]
Message-ID: <59AF69C657FD0841A61C55336867B5B01A9F7CAC@IRSMSX103.ger.corp.intel.com> (raw)
In-Reply-To: <DUB111-W579008AE9E67DB1C94BCF8B16D0@phx.gbl>

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Mauro Annarumma
> Sent: Wednesday, April 02, 2014 4:02 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Issues on FDIR and multi-processes
> 
> Hi everyone,
> we are working with Flow DIRector on a multiprocess application. This application consists of N secondary processes, 
> each one receiving packets directly from its own queue on the NIC. It works fine when each secondary process runs on
> a different CPU core; instead, if we try to run two secondary processes on the same CPU core, these processes aren't 
> able to read from their respectively queue.

Running two co-operating Intel DPDK processes on the same lcore is not a supported configuration of Intel DPDK multiprocess. [Please see section 20.3 of the Intel DPDK Programmer's Guide document, which lists out some limitations of multi-process support]. Basically, each process in a multiprocess configuration is equivalent to a thread in a normal application deployment, so just as having two threads on the same core causes problems with mempools and other objects which use an "lcore_id" value unique in each thread to work correctly, so running two processes on the same lcore can cause exactly the same issues. 
If you really do want to use this model and have multiple threads on the same lcore, at minimum you need to ensure that each thread/process has a unique lcore_id value <= RTE_MAX_LCORE.

/Bruce

  reply	other threads:[~2014-04-02 15:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02 15:01 Mauro Annarumma
2014-04-02 15:33 ` Richardson, Bruce [this message]
     [not found]   ` <DUB111-W115C60A139CF692652B5FD5B16F0@phx.gbl>
2014-04-04 17:34     ` [dpdk-dev] FW: " Mauro Annarumma

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=59AF69C657FD0841A61C55336867B5B01A9F7CAC@IRSMSX103.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=mauroannarumma@hotmail.it \
    /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).