DPDK usage discussions
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: 赖香武 <15310488637@163.com>
Cc: users <users@dpdk.org>,
	"Burakov, Anatoly" <anatoly.burakov@intel.com>,
	 Bruce Richardson <bruce.richardson@intel.com>
Subject: Re: Aboud DPDK Multi-Process
Date: Thu, 4 Nov 2021 09:30:05 +0100
Message-ID: <CAJFAV8wm+iBayGXyEVdRCySUGfuzEm8c9-MJiDgvSa9=J6-FKw@mail.gmail.com> (raw)
In-Reply-To: <413ad5cc.905b.17cea09869a.Coremail.15310488637@163.com>

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.

David Marchand

  reply	other threads:[~2021-11-04  8:30 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 [this message]
2021-11-04  9:41   ` Burakov, Anatoly
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:

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

  git send-email \
    --in-reply-to='CAJFAV8wm+iBayGXyEVdRCySUGfuzEm8c9-MJiDgvSa9=J6-FKw@mail.gmail.com' \
    --to=david.marchand@redhat.com \
    --cc=15310488637@163.com \
    --cc=anatoly.burakov@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=users@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git