Aboud DPDK Multi-Process
赖香武
15310488637 at 163.com
Fri Nov 5 03:53:20 CET 2021
Thank you for your answer.
I have a question, how to enable the new and old dpdk processes to initialize (manage) the same device?
Is this theoretically feasible?
thanks.
At 2021-11-04 23:04:31, "Burakov, Anatoly" <anatoly.burakov at intel.com> wrote:
Hi,
It does not become primary process. It’s not possible with current API. I mean, you can try, but mot probably it simply will not work and cause things to break. This is not a supported use case.
Thanks,
Anatoly
From:赖香武 <15310488637 at 163.com>
Sent: Thursday, November 4, 2021 1:54 PM
To: Burakov, Anatoly <anatoly.burakov at intel.com>
Cc: David Marchand <david.marchand at redhat.com>; users <users at dpdk.org>; Richardson, Bruce <bruce.richardson at intel.com>
Subject: Re:RE: Aboud DPDK Multi-Process
Thank you for all your answer.
I asked this question because I want to use dual processes to complete the hot upgrade of ovs-vswitchd. When ovs-dpdk starts, rte_eal_init will be called to complete dpdk initialization.
The old process dpdk uses primary to start, and the new process dpdk uses secondary to start and upgrade. After completion, the old process exits, that is, the primary exits. At this time, how does the secondary process become the primary process without disconnecting the network?
--
它山之石,可以攻玉。
在 2021-11-04 17:41:02,"Burakov, Anatoly" <anatoly.burakov at intel.com> 写道:
>> -----Original Message-----
>> From: David Marchand <david.marchand at redhat.com>
>> Sent: Thursday, November 4, 2021 8:30 AM
>> To: 赖香武 <15310488637 at 163.com>
>> Cc: users <users at dpdk.org>; Burakov, Anatoly
>> <anatoly.burakov at intel.com>; Richardson, Bruce
>> <bruce.richardson at intel.com>
>> Subject: Re: Aboud DPDK Multi-Process
>>
>> On Thu, Nov 4, 2021 at 9:21 AM 赖香武 <15310488637 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20211105/ed23862d/attachment.htm>
More information about the users
mailing list