DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: "Lipiec, Herakliusz" <herakliusz.lipiec@intel.com>,
	Stephen Hemminger <stephen@networkplumber.org>
Cc: "Ananyev, Konstantin" <konstantin.ananyev@intel.com>,
	"Richardson, Bruce" <bruce.richardson@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	Thomas Monjalon <thomas@monjalon.net>
Subject: Re: [dpdk-dev] Should we disallow running secondaries after primary has died?
Date: Fri, 26 Jul 2019 17:02:13 +0100	[thread overview]
Message-ID: <3df4ac13-5afc-8505-51bf-0df4b6b5efdb@intel.com> (raw)
In-Reply-To: <EB47986807B11C41AD0C5C13A40DE88360FC56@IRSMSX104.ger.corp.intel.com>

On 26-Jul-19 4:56 PM, Lipiec, Herakliusz wrote:
> 
> 
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Burakov, Anatoly
>> On 26-Jul-19 4:01 PM, Stephen Hemminger wrote:
>>> On Fri, 26 Jul 2019 10:53:58 +0100
>>> "Burakov, Anatoly" <anatoly.burakov@intel.com> wrote:
>>>
>>>>>
>>>>> NP to disallow it.
>>>>> In fact, I think it would be easier for everyone just to drop
>>>>> current DPDK MP model, and keep just standalone DPDK instances.
>>>>
>>>> That's the dream, but i don't think it'll ever come to fruition, at
>>>> least not without a huge push from the community.
>>>
>>> There are several net appliances that require primary/secondary model.
>>> I think initially during DPDK development it was sold as a feature to
>>> the Network vendors.
>>>
>>> It might be possible to clamp down on what API's are supported by
>>> secondary process. For example, disallowing any control operations start/stop
>> etc.
>>>
>>
>> We're getting slightly off topic here.
>>
>> The original question was about whether we want to support a use case where a
>> secondary can initialize after primary process has died, and if we don't, whether
>> we want to 1) outright deny initialization, or 2) allow it, but document as
>> unsupported and discourage it.
> Allowing something that is unsupported sounds like asking for trouble.

We wouldn't be "allowing" it as much as we'd just be disclaiming any 
responsibility for when things go wrong, *if* someone tries that. I 
suppose the concern is that someone would try that /accidentally/, and 
possibly screw up other secondary processes that may still be running.

> 
>>
>> The only use case i can think of that would require it is proc-info app.
>> Dumping stuff from a dead process can be useful for debugging, so perhaps we
>> can agree to put a warning at EAL startup, saying that this is not supported, but
>> still allow processes to initialize.
>>
> If this is supposed to be useful for debugging then maybe allow only when some kind of flag is passed to eal?
> This would also prevent from initializing the process incidentally.

We have too many EAL flags as it is! I suppose this could be done - 
proc-info already hardcodes the "--proc-type" flag so that it only ever 
runs as a secondary, we could add another one there. So, technically, 
this is doable.

I'm just not sure of the prospect of adding a yet another EAL flag to 
serve a purpose of enabling one specific application to run. That said, 
an "--i-know-what-i-am-doing" flag certainly sounds like a fun idea!

-- 
Thanks,
Anatoly

  reply	other threads:[~2019-07-26 16:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-26  9:05 Burakov, Anatoly
2019-07-26  9:39 ` Bruce Richardson
2019-07-26  9:50   ` Ananyev, Konstantin
2019-07-26  9:53     ` Burakov, Anatoly
2019-07-26 15:01       ` Stephen Hemminger
2019-07-26 15:44         ` Burakov, Anatoly
2019-07-26 15:56           ` Lipiec, Herakliusz
2019-07-26 16:02             ` Burakov, Anatoly [this message]
2019-07-26 16:44               ` Lipiec, Herakliusz
2019-07-26 16:57                 ` Burakov, Anatoly
2019-07-26 17:33                   ` Lipiec, Herakliusz

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=3df4ac13-5afc-8505-51bf-0df4b6b5efdb@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=herakliusz.lipiec@intel.com \
    --cc=konstantin.ananyev@intel.com \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    /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).