DPDK usage discussions
 help / color / mirror / Atom feed
From: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>
To: Gadre Nayan <gadrenayan@gmail.com>, "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] Link Status App
Date: Wed, 27 Apr 2016 14:24:20 +0000	[thread overview]
Message-ID: <E115CCD9D858EF4F90C690B0DCB4D8973C912812@IRSMSX108.ger.corp.intel.com> (raw)
In-Reply-To: <CAKJ7aR5-O1kM7Dh8AcgNc1GXXgE9=TFUtBfeCZ3t8+F3DWDWqg@mail.gmail.com>

Hi GNA,

> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Gadre Nayan
> Sent: Wednesday, April 27, 2016 3:08 PM
> To: users@dpdk.org
> Subject: [dpdk-users] Link Status App
> 
> Dear All,
> 
> I have started with DPDK library. I have some terminology related questions.
> 
> 1. What are "lcores":
>    My system has 2 sockets and 6 cores per socket. Are these internal
> cores --> lcores?
>    So then my system will have 12 lcores?

If your system has Hyperthreading (considering it is Intel), your CPU will have two logical cores per physical core
(so you can run two threads simultaneously per physical core).
In your case, you have logical 24 cores (2 sockets x 6 cores/socket x 2 logical cores/physical core).

> 
> 2. I am trying to work on the Link status change application.
> 
> I am confused with the terminology, having not much experience, So
> here is the confusion.
> 
> I have the compiled application: link_status.
> 
> ./link_status -c f -n 4-- -q 8 -p 0x0f
> 
> Here I am setting the portmask as 0x0F as I am going to use 4 ports.
> Next -q NQ: A number of queues (=ports) per lcore (default is 1)

As stated in the help, "q" parameter sets the number of queues that will be handled by a single core.
So, if using -q 1 with 4 ports, you will need 4 cores. If you want to use only 1 core, then you should use -q 4.
From your command line, -q 8 is too high, as you will have only 4 ports (therefore, only 4 queues, see below).
> 
> So I donot get the ( number of queues = ports ) statement here.

Basically, this app configures only 1 queue per port, so the number of queues are equal to the number of ports.
> 
> Network cards have RX and TX queues, I have a card which has 7 RX and
> TX queues. Also my NIC has 4 ports. So each port will have 7 RX and TX
> queues.

Wow, odd number of queues :P Anyway, usually number of queues are per port,
so yes, each port will have 7 RX/TX queues. Just mind that the link_status app only configures the first queue per port.

> 
> So how is this statement (number of queues = ports) per lcore (default
> is 1) valid. What should be the argument in my case.
> 
> Please explain.
> 
> Thanks
> GNA

      reply	other threads:[~2016-04-27 14:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27 14:08 Gadre Nayan
2016-04-27 14:24 ` De Lara Guarch, Pablo [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=E115CCD9D858EF4F90C690B0DCB4D8973C912812@IRSMSX108.ger.corp.intel.com \
    --to=pablo.de.lara.guarch@intel.com \
    --cc=gadrenayan@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).