DPDK usage discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: "David Marchand" <david.marchand@redhat.com>, 赖香武 <15310488637@163.com>
Cc: users <users@dpdk.org>, "Richardson, Bruce" <bruce.richardson@intel.com>
Subject: RE: Aboud DPDK Multi-Process
Date: Thu, 4 Nov 2021 09:41:02 +0000	[thread overview]
Message-ID: <PH0PR11MB50934FE9B886B102C8228950F78D9@PH0PR11MB5093.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAJFAV8wm+iBayGXyEVdRCySUGfuzEm8c9-MJiDgvSa9=J6-FKw@mail.gmail.com>

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Thursday, November 4, 2021 8:30 AM
> To: 赖香武 <15310488637@163.com>
> Cc: users <users@dpdk.org>; Burakov, Anatoly
> <anatoly.burakov@intel.com>; Richardson, Bruce
> <bruce.richardson@intel.com>
> Subject: Re: Aboud DPDK Multi-Process
> 
> On Thu, Nov 4, 2021 at 9:21 AM 赖香武 <15310488637@163.com> wrote:
> >
> > Hello, I have a question about dpdk multi-process. After starting the
> > primary process and the secondary process, when the current primary
> > process exits, how does the secondary process become a new primary
> > process to make the program continue? Hope to get your answer, thank
> > you!
> 
> Not sure why you need this, but DPDK won't do for you.
> 
> The process type is decided once at DPDK init, and that is something that
> affects how your program behaves after.
> Switching type while running would break assumptions in the DPDK drivers
> and libraries.
> 
> One thing that comes to mind, is that you could try to call
> rte_eal_cleanup() and call rte_eal_init() again.
> This is probably something that is not tested (so I'd expect issues, maybe
> leaks etc..).
> 
> But then, you probably want to restart your process entirely.

[[AB]] 
Calling rte_eal_init() twice would be a terrible idea, because not everything (not even remotely!) gets cleaned up with rte_eal_cleanup(), and a lot of stuff is allocated statically.

So, as far as I'm concerned, this usage scenario is considered to be unsupported.

> 
> 
> --
> David Marchand


  reply	other threads:[~2021-11-04  9:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04  8:21 赖香武
2021-11-04  8:30 ` David Marchand
2021-11-04  9:41   ` Burakov, Anatoly [this message]
2021-11-04 13:53     ` 赖香武
2021-11-04 15:04       ` Burakov, Anatoly
2021-11-05  2:53         ` 赖香武
2021-11-05  8:55           ` Richardson, Bruce
2021-11-05  9:34             ` 赖香武
2021-11-05  9:55               ` Richardson, Bruce

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=PH0PR11MB50934FE9B886B102C8228950F78D9@PH0PR11MB5093.namprd11.prod.outlook.com \
    --to=anatoly.burakov@intel.com \
    --cc=15310488637@163.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.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).