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 374782C23 for ; Thu, 28 Jun 2018 10:53:33 +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 w5S8rPiK005485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 28 Jun 2018 10:53:30 +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 w5S8rHPW022067 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Thu, 28 Jun 2018 10:53:17 +0200 To: Muhammad Zain-ul-Abideen , "Wiles, Keith" Cc: users References: From: Stefano Salsano Message-ID: Date: Thu, 28 Jun 2018 10:53:14 +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=utf-8; 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] error running two instances of pktgen 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 08:53:33 -0000 Il 2018-06-28 10:32, Muhammad Zain-ul-Abideen ha scritto: > I think it is some sort of cli command issue now, like socket-mem or > blacklisting the port. > > Adding Keith Wiles, the father of pktgen thank you Muhammad, here is the commands that we run now and the overall recap of the problems sudo -E ./app/x86_64-native-linuxapp-gcc/pktgen -l 5-8 -n 3 --file-prefix pg0 --proc-type auto -b 06:00.0 -- -P -m "6.0" it works, then we have the error in the second instance: sudo -E ./app/x86_64-native-linuxapp-gcc/pktgen -l 0-4 -n 3 --file-prefix pg1 --proc-type secondary -b 06:00.1 -- -P -m "1.0" EAL: Detected 32 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/pg1/mp_socket_12381_2a519caf5992b0 EAL: failed to send to (/var/run/dpdk/pg1/mp_socket) due to Connection refused EAL: Fail to send request /var/run/dpdk/pg1/mp_socket:bus_vdev_mp vdev_scan(): Failed to request vdev from primary EAL: Probing VFIO support... EAL: Could not map memory from primary process EAL: FATAL: Cannot init memory EAL: Cannot init memory I don't know if it is relevant, but when running the first command I get a warning about hugepages (and then the pktgen works well) EAL: Detected 32 lcore(s) EAL: Detected 2 NUMA nodes EAL: Auto-detected process type: PRIMARY EAL: Multi-process socket /var/run/dpdk/pg0/mp_socket EAL: No free hugepages reported in hugepages-1048576kB if I run both instances with --port-type auto it detects primary mode for both EAL: Detected 32 lcore(s) EAL: Detected 2 NUMA nodes EAL: Auto-detected process type: PRIMARY EAL: Multi-process socket /var/run/dpdk/pg1/mp_socket EAL: No free hugepages reported in hugepages-1048576kB EAL: Probing VFIO support... and then the second instance fails like this Create: Default TX 0:0 - Memory used (MBUFs 16384 x (size 2176 + Hdr 128)) + 192 = 36865 KB, headroom 128 !PANIC!: Cannot create mbuf pool (Default TX 0:0) port 0, queue 0, nb_mbufs 16384, socket_id 0: No such file or directory PANIC in pktgen_mbuf_pool_create(): Cannot create mbuf pool (Default TX 0:0) port 0, queue 0, nb_mbufs 16384, socket_id 0: No such file or directory6: [./app/x86_64-native-linuxapp-gcc/pktgen(_start+0x29) [0x466139]] 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7ffff6cae830]] 4: [./app/x86_64-native-linuxapp-gcc/pktgen(main+0x598) [0x460388]] 3: [./app/x86_64-native-linuxapp-gcc/pktgen(pktgen_config_ports+0x18ad) [0x491aed]] 2: [./app/x86_64-native-linuxapp-gcc/pktgen(__rte_panic+0xc3) [0x45769b]] 1: [./app/x86_64-native-linuxapp-gcc/pktgen(rte_dump_stack+0x2b) [0x50aadb]] Aborted -- ******************************************************************* 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 *******************************************************************