[dpdk-users] problem using two ports with pktgen-dpdk (solved)

Stefano Salsano stefano.salsano at uniroma2.it
Thu Jun 28 23:09:09 CEST 2018


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 at 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 at uniroma2.it
Cell.   : +39 320 4307310
Office  : (Tel.) +39 06 72597770 (Fax.) +39 06 72597435
*******************************************************************



More information about the users mailing list