DPDK patches and discussions
 help / color / mirror / Atom feed
* Cannot set affinity - pthread_setaffinity_np - DPDK21
@ 2022-09-15 16:57 Kamaraj P
  2022-09-16  4:07 ` Kamaraj P
  0 siblings, 1 reply; 6+ messages in thread
From: Kamaraj P @ 2022-09-15 16:57 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

Hi Team,

There are lot of discussion about below code:
 rte_panic("Cannot set affinity %d i %d threadid %d\n", ret, i,
lcore_config[i].thread_id);

Is there any guildiness(or patch) from the DPDK community about avoiding
these panic messages in our DPDK application ? Even if we remove the panic
to replace the warning , will it lead to any impact ?

Please suggest.

Thanks,
Kamaraj

[-- Attachment #2: Type: text/html, Size: 526 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot set affinity - pthread_setaffinity_np - DPDK21
  2022-09-15 16:57 Cannot set affinity - pthread_setaffinity_np - DPDK21 Kamaraj P
@ 2022-09-16  4:07 ` Kamaraj P
  2022-09-16 15:13   ` Stephen Hemminger
  0 siblings, 1 reply; 6+ messages in thread
From: Kamaraj P @ 2022-09-16  4:07 UTC (permalink / raw)
  To: Fred.L.Templin, Burakov, Anatoly, Bruce Richardson,
	David Marchand, Stephen Hemminger
  Cc: Nageswara Rao Penumarthy, dev, kalas

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

Hi Team,
Have sent a message to DPDK alias. Can you please have a look and share
your thoughts on this ?

Thanks,
Kamaraj

On Thu, Sep 15, 2022 at 10:27 PM Kamaraj P <pkamaraj@gmail.com> wrote:

> Hi Team,
>
> There are lot of discussion about below code:
>  rte_panic("Cannot set affinity %d i %d threadid %d\n", ret, i,
> lcore_config[i].thread_id);
>
> Is there any guildiness(or patch) from the DPDK community about avoiding
> these panic messages in our DPDK application ? Even if we remove the panic
> to replace the warning , will it lead to any impact ?
>
> Please suggest.
>
> Thanks,
> Kamaraj
>

[-- Attachment #2: Type: text/html, Size: 1048 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot set affinity - pthread_setaffinity_np - DPDK21
  2022-09-16  4:07 ` Kamaraj P
@ 2022-09-16 15:13   ` Stephen Hemminger
  2022-09-18 16:35     ` Kamaraj P
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2022-09-16 15:13 UTC (permalink / raw)
  To: Kamaraj P
  Cc: Fred.L.Templin, Burakov, Anatoly, Bruce Richardson,
	David Marchand, Nageswara Rao Penumarthy, dev, kalas

On Fri, 16 Sep 2022 09:37:32 +0530
Kamaraj P <pkamaraj@gmail.com> wrote:

> Hi Team,
> Have sent a message to DPDK alias. Can you please have a look and share
> your thoughts on this ?

Top posting and nag messages just make developers angry

> 
> On Thu, Sep 15, 2022 at 10:27 PM Kamaraj P <pkamaraj@gmail.com> wrote:
> 
> > Hi Team,
> >
> > There are lot of discussion about below code:
> >  rte_panic("Cannot set affinity %d i %d threadid %d\n", ret, i,
> > lcore_config[i].thread_id);
> >
> > Is there any guildiness(or patch) from the DPDK community about avoiding
> > these panic messages in our DPDK application ? Even if we remove the panic
> > to replace the warning , will it lead to any impact ?

Did you check that the core mask passed into the application is valid?
Or that that your application is not running in a container which blocks
access to other CPU's.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot set affinity - pthread_setaffinity_np - DPDK21
  2022-09-16 15:13   ` Stephen Hemminger
@ 2022-09-18 16:35     ` Kamaraj P
  2022-09-19 17:04       ` Stephen Hemminger
  0 siblings, 1 reply; 6+ messages in thread
From: Kamaraj P @ 2022-09-18 16:35 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Fred.L.Templin, Burakov, Anatoly, Bruce Richardson,
	David Marchand, Nageswara Rao Penumarthy, dev, kalas

[-- Attachment #1: Type: text/plain, Size: 1327 bytes --]

Hi Stephen,
Yes. The core mask we have aligned to separate cgroup. Probably this might
be an issue here. We will change the alignment in  our DPDK application.
BTW is there a way to check the cores affinity set to DPDK after
rte_eail_init ? Do we have to use the taskset command ?
Please advise.

Thanks,
Kamaraj

On Fri, Sep 16, 2022 at 8:43 PM Stephen Hemminger <
stephen@networkplumber.org> wrote:

> On Fri, 16 Sep 2022 09:37:32 +0530
> Kamaraj P <pkamaraj@gmail.com> wrote:
>
> > Hi Team,
> > Have sent a message to DPDK alias. Can you please have a look and share
> > your thoughts on this ?
>
> Top posting and nag messages just make developers angry
>
> >
> > On Thu, Sep 15, 2022 at 10:27 PM Kamaraj P <pkamaraj@gmail.com> wrote:
> >
> > > Hi Team,
> > >
> > > There are lot of discussion about below code:
> > >  rte_panic("Cannot set affinity %d i %d threadid %d\n", ret, i,
> > > lcore_config[i].thread_id);
> > >
> > > Is there any guildiness(or patch) from the DPDK community about
> avoiding
> > > these panic messages in our DPDK application ? Even if we remove the
> panic
> > > to replace the warning , will it lead to any impact ?
>
> Did you check that the core mask passed into the application is valid?
> Or that that your application is not running in a container which blocks
> access to other CPU's.
>

[-- Attachment #2: Type: text/html, Size: 1972 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot set affinity - pthread_setaffinity_np - DPDK21
  2022-09-18 16:35     ` Kamaraj P
@ 2022-09-19 17:04       ` Stephen Hemminger
  2022-09-20 13:26         ` Kamaraj P
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2022-09-19 17:04 UTC (permalink / raw)
  To: Kamaraj P
  Cc: Fred.L.Templin, Burakov, Anatoly, Bruce Richardson,
	David Marchand, Nageswara Rao Penumarthy, dev, kalas

On Sun, 18 Sep 2022 22:05:57 +0530
Kamaraj P <pkamaraj@gmail.com> wrote:

> Yes. The core mask we have aligned to separate cgroup. Probably this might
> be an issue here. We will change the alignment in  our DPDK application.
> BTW is there a way to check the cores affinity set to DPDK after
> rte_eail_init ? Do we have to use the taskset command ?

DPDK doesn't (and shouldn't) know about what cgroups has set.
You need to align the cgroup and the startup flags of the application.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot set affinity - pthread_setaffinity_np - DPDK21
  2022-09-19 17:04       ` Stephen Hemminger
@ 2022-09-20 13:26         ` Kamaraj P
  0 siblings, 0 replies; 6+ messages in thread
From: Kamaraj P @ 2022-09-20 13:26 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Fred.L.Templin, Burakov, Anatoly, Bruce Richardson,
	David Marchand, Nageswara Rao Penumarthy, dev, kalas

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

Thank you for the clarification.

On Mon, 19 Sep 2022, 10:34 pm Stephen Hemminger, <stephen@networkplumber.org>
wrote:

> On Sun, 18 Sep 2022 22:05:57 +0530
> Kamaraj P <pkamaraj@gmail.com> wrote:
>
> > Yes. The core mask we have aligned to separate cgroup. Probably this
> might
> > be an issue here. We will change the alignment in  our DPDK application.
> > BTW is there a way to check the cores affinity set to DPDK after
> > rte_eail_init ? Do we have to use the taskset command ?
>
> DPDK doesn't (and shouldn't) know about what cgroups has set.
> You need to align the cgroup and the startup flags of the application.
>

[-- Attachment #2: Type: text/html, Size: 1025 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-20 13:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-15 16:57 Cannot set affinity - pthread_setaffinity_np - DPDK21 Kamaraj P
2022-09-16  4:07 ` Kamaraj P
2022-09-16 15:13   ` Stephen Hemminger
2022-09-18 16:35     ` Kamaraj P
2022-09-19 17:04       ` Stephen Hemminger
2022-09-20 13:26         ` Kamaraj P

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).