DPDK usage discussions
 help / color / mirror / Atom feed
From: Sungho Hong <maverickjin88@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users]  How to distribute socket_id from logical cores?
Date: Thu, 1 Nov 2018 22:15:13 -0700	[thread overview]
Message-ID: <CAK8vx=ghyi40zqyxadpKBFBybnBzO-5-VzcOR_Aph0pr=LVAaw@mail.gmail.com> (raw)

Hello DPDK experts

I am trying to assign 8 rx-queue with each different socket ids from
different logical cores.

For example I am using
for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++)
     socketid = rte_lcore_to_socket_id(lcore_id);

to get the socket id and trying to assign the pools.
However, even with the examples in DPDK.
All I'am getting is socket number 0 or 1

If you look at the logs you can see that
I have assigned memory pool with different queues and different logical
core but the socket id will not change.

queue 1 mbuf_pool socketid : lcore:2,* sock:0*, nb_mbuf:12800
queue 2 mbuf_pool socketid : lcore:3,* sock:0*, nb_mbuf:12800
queue 3 mbuf_pool socketid : lcore:4,* sock:0*, nb_mbuf:12800
queue 4 mbuf_pool socketid : lcore:5, *sock:0,* nb_mbuf:12800
queue 5 mbuf_pool socketid : lcore:6, sock:0, nb_mbuf:12800
queue 6 mbuf_pool socketid : lcore:7, sock:0, nb_mbuf:12800
queue 7 mbuf_pool socketid : lcore:8, sock:1, nb_mbuf:12800

Any idea of how to allocate with different socket numbers other than zero?

             reply	other threads:[~2018-11-02  5:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-02  5:15 Sungho Hong [this message]
2018-11-02 11:08 ` Nutman, Richard

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='CAK8vx=ghyi40zqyxadpKBFBybnBzO-5-VzcOR_Aph0pr=LVAaw@mail.gmail.com' \
    --to=maverickjin88@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).