DPDK usage discussions
 help / color / mirror / Atom feed
From: Stefano Salsano <stefano.salsano@uniroma2.it>
To: "Wiles, Keith" <keith.wiles@intel.com>
Cc: users <users@dpdk.org>
Subject: Re: [dpdk-users] problem using two ports with pktgen-dpdk (solved)
Date: Thu, 28 Jun 2018 23:09:09 +0200	[thread overview]
Message-ID: <f900ea74-24b0-b93a-d9b5-6ca26ed091e5@uniroma2.it> (raw)
In-Reply-To: <E7CF336C-3B1D-4CB8-B2CC-B1F6E6B06F05@intel.com>

Hi Keith,

thanks for your support, we have understood the root of the problem
we simply had to increase the vm.nr_hugepages in /etc/sysctl.conf from 
256 to 2048

this way, we were able to use two ports in the same pktgen instance as 
well as to run two separate primary instances of pktgen

ciao
Stefano


Il 2018-06-28 15:02, Wiles, Keith ha scritto:
>> On Jun 28, 2018, at 4:45 AM, Stefano Salsano <stefano.salsano@uniroma2.it> wrote:
>>
>> I'm now simply trying to use two ports in a single pktgen-dpdk instance
>> (maybe I do not need the two instances...), but still I have a problem
>>
>>
>> trying to use two ports as follows, it stops with an error (see below)
>>
>> sudo -E ./app/x86_64-native-linuxapp-gcc/pktgen  -l 0-4 -n 3 -- -P -m "1.0, 2.1"
>>
>> while using a single port at a time is OK:
>>
>> sudo -E ./app/x86_64-native-linuxapp-gcc/pktgen  -l 0-4 -n 3  -- -P -m "1.0"
>>
>> sudo -E ./app/x86_64-native-linuxapp-gcc/pktgen  -l 0-4 -n 3  -- -P -m "2.1"
>>
>> any suggestion will be appreciated!
> 
> Another place to look is in the pktgen/cfg directory at files master.cfg and slave.cfg (bad names as they are not master and slave processes) In these files are python data statements and are used by pktgen/tools/dpdk-run.py command as so.
> 
> $ ./tools/dpdk-run.py master
> 
> $ ./tools/dpdk-run.py slave
> 
> You can copy these files and edit them for your use call them say pktgen-1.cfg and pktgen-2.cfg then run
> 
> $ ./tools/dpdk-run.py pktgen-1
> 
> $ ./tools/dpdk-run.py pktgen-2
> 
> I hope that helps.
> 
>>


-- 
*******************************************************************
Stefano Salsano
Professore Associato
Dipartimento Ingegneria Elettronica
Universita' di Roma Tor Vergata
Viale Politecnico, 1 - 00133 Roma - ITALY

http://netgroup.uniroma2.it/Stefano_Salsano/

E-mail  : stefano.salsano@uniroma2.it
Cell.   : +39 320 4307310
Office  : (Tel.) +39 06 72597770 (Fax.) +39 06 72597435
*******************************************************************

      reply	other threads:[~2018-06-28 21:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-28  9:45 [dpdk-users] problem using two ports with pktgen-dpdk Stefano Salsano
2018-06-28 13:02 ` Wiles, Keith
2018-06-28 21:09   ` Stefano Salsano [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=f900ea74-24b0-b93a-d9b5-6ca26ed091e5@uniroma2.it \
    --to=stefano.salsano@uniroma2.it \
    --cc=keith.wiles@intel.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).