DPDK usage discussions
 help / color / mirror / Atom feed
From: "Nicolson Ken (ニコルソン ケン)" <ken.nicolson@jp.panasonic.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: Removing user threads from DPDK management
Date: Thu, 30 Nov 2023 03:15:05 +0000	[thread overview]
Message-ID: <OSZPR01MB77485DBC9657A8C623A5D9FEBC82A@OSZPR01MB7748.jpnprd01.prod.outlook.com> (raw)

Hi all,

I have an application framework that starts up two shared libraries in two separate threads. One of these libraries is mine, and in its initialisation I call rte_eal_init(). However, this has the unfortunate side-effect of making both threads run on the same CPU core, resulting in a throughput drop from an ideal 2.5Gbps to about 1Gbps. I've tried options like:

    --lcores='(0-19)@(0-19)'

Or

    taskset f start_framework other_lib.so my_dpdk_lib.so
then in my_dpdk_lib.so code:
    rte_eal_init(2, {"-c", "fff0"});

Or in my_dpdk_lib.so code

    rte_thread_unregister();

And various combinations of the above, but nothing works.

I've read the Programmer's Guide chapter 4.3, but I'm not getting anything to work. Am I missing something simple, or is there anywhere I can get a more in-depth explanation of this stuff?

Thanks,
Ken

             reply	other threads:[~2023-11-30  3:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-30  3:15 Nicolson Ken (ニコルソン ケン) [this message]
2023-11-30  3:27 ` Nicolson Ken (ニコルソン ケン)
2023-11-30  6:56   ` Nicolson Ken (ニコルソン ケン)

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=OSZPR01MB77485DBC9657A8C623A5D9FEBC82A@OSZPR01MB7748.jpnprd01.prod.outlook.com \
    --to=ken.nicolson@jp.panasonic.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).