From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.uniroma2.it (smtp.uniroma2.it [160.80.6.16]) by dpdk.org (Postfix) with ESMTP id 1422A1B54A for ; Thu, 28 Jun 2018 23:09:26 +0200 (CEST) Received: from smtpauth.uniroma2.it (smtpauth.uniroma2.it [160.80.6.47]) by smtp-2015.uniroma2.it (8.14.4/8.14.4/Debian-8) with ESMTP id w5SL9JkZ012623 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 28 Jun 2018 23:09:26 +0200 Received: from [192.168.1.81] (93-41-116-249.ip81.fastwebnet.it [93.41.116.249]) (authenticated bits=0) by smtpauth.uniroma2.it (8.14.3/8.14.3/Debian-9.4) with ESMTP id w5SL9DDg002879 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Thu, 28 Jun 2018 23:09:13 +0200 To: "Wiles, Keith" Cc: users References: From: Stefano Salsano Message-ID: Date: Thu, 28 Jun 2018 23:09:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: it-IT Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.2 at smtp-2015 X-Virus-Status: Clean Subject: Re: [dpdk-users] problem using two ports with pktgen-dpdk (solved) X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2018 21:09:27 -0000 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 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 *******************************************************************