Cannot set affinity - pthread_setaffinity_np - DPDK21

Kamaraj P pkamaraj at gmail.com
Sun Sep 18 18:35:57 CEST 2022


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 at networkplumber.org> wrote:

> On Fri, 16 Sep 2022 09:37:32 +0530
> Kamaraj P <pkamaraj at 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 at 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20220918/bc485834/attachment.htm>


More information about the dev mailing list