DPDK usage discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Antonio Di Bacco <a.dibacco.ks@gmail.com>
Cc: users@dpdk.org
Subject: Re: Multiple rte_launch_remote multiple times on main lcore
Date: Tue, 27 Jun 2023 15:40:22 -0700	[thread overview]
Message-ID: <20230627154022.575af073@hermes.local> (raw)
In-Reply-To: <CAO8pfFn_Bzh2uZaRy78-8y5tnx-7uJ1sQRtcKGEfP9GuELEHVw@mail.gmail.com>

On Tue, 27 Jun 2023 20:20:28 +0200
Antonio Di Bacco <a.dibacco.ks@gmail.com> wrote:

> This is very useful. Anyway, just on main_lcore, could I launch many
> pthreads (with pthread_create) ?
> 
> Does this interfere with DPDK?

DPDK is not designed for random additional threads.
You could use rte_ctrl_thread_create or do the working of creating, binding threads to cores,
and registering; but the startup does that already.

DPDK is designed for run to completion model where there is one thread bound to a core (and isolated).
You can try other things, but that makes things worse not better.
performance will be worse, can deadlock, will require additional locking etc.

      reply	other threads:[~2023-06-27 22:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20 15:33 Antonio Di Bacco
2023-06-25 14:49 ` Stephen Hemminger
2023-06-27 18:20   ` Antonio Di Bacco
2023-06-27 22:40     ` Stephen Hemminger [this message]

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=20230627154022.575af073@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=a.dibacco.ks@gmail.com \
    --cc=users@dpdk.org \
    /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).