From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-f180.google.com (mail-ua0-f180.google.com [209.85.217.180]) by dpdk.org (Postfix) with ESMTP id 214495F2F for ; Thu, 28 Jun 2018 10:33:27 +0200 (CEST) Received: by mail-ua0-f180.google.com with SMTP id z4-v6so2196726uao.12 for ; Thu, 28 Jun 2018 01:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=125AJHJtQGryksZHlqkDYZT4HEoDHbDKCE76gym107w=; b=qpkJd0V4AuFUVwuaXuyyqss/Y1WvlzC04rsK8kn72RVAxwqyW9UqBB+8FM/Cae2NAE FEtEUlm+fCVRR83/Yf7X25NRGVGNEPPeNeroNA+anFRoxo7p1rbQrCBb+nLR6Z8IWIe8 5g7vkwOJFMR9uj6o6mTFy/nPj4RgAJTnykazw80wRzvqtGkaIg+E2iG8+LDkH67JF6eT BbGEOWmwT4wNVo7RhHM5tB5gXVMIFWig2Vvm+zJZ5aGExyOSS7XakrwX8LrVkyBNGktx A7O33nALxb5cmzurZVMEJKlOrishWHkgj8jKfqjVUNWsIdfq9ylviU9Rx8Fzs45eQzQE hNdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=125AJHJtQGryksZHlqkDYZT4HEoDHbDKCE76gym107w=; b=L/+vt5lhb8pFJT7QIje3yhpXhNLFvvLb9mLA/jvfOmUY8fhM6Zk4HhboxQssEMFigH nL2FqfxYjAFhpXu67sIz9Zgux3Zbs1Etvs7Bs7e9jxGeS2Ns+FTuDJoFQCX6ZzNig5XO Hnqp5vqJ/XdY90WqLcnINVljvcw7CjU7FWm5WSjKOl7lKRbURtVu35DLZ6LIoJuNsBlr PnagiMBJolunhCVdK40W6msU+tbJnENfx9h03JUiZDh/DV84EvtNKPOjXD3NBfEy1BNf UD0zu2GbHnneEIoFkN9sZ6N2mpRU0JcsIxUDDGhFsbWmwOTHHeM3x40S8yYUvOU5WtNN qLCw== X-Gm-Message-State: APt69E2E6oT5E1qQuxdcsYFLCyfg/8Kpso5VbJEww2eco28J+Zt4jeQK 9FeYUIZH7k/9HZI83njCMTDg2QVuU5SRBCmlpJQ= X-Google-Smtp-Source: AAOMgpclKKXXRtiekQVPTq1QRI+MB2OOGeFrYv62voPd6CtqzLqDw6iYFZzg9bAF+Z0aJA/QayoUfFaj+lAoJpHL438= X-Received: by 2002:ab0:5232:: with SMTP id i47-v6mr5904352uaa.117.1530174806359; Thu, 28 Jun 2018 01:33:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muhammad Zain-ul-Abideen Date: Thu, 28 Jun 2018 13:33:15 +0500 Message-ID: To: stefano.salsano@uniroma2.it, "Wiles, Keith" Cc: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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:33:27 -0000 On Thu, Jun 28, 2018 at 1:12 PM Stefano Salsano wrote: > Il 2018-06-28 09:33, Muhammad Zain-ul-Abideen ha scritto: > > Dear Stefano, > > It clearly states in second para > > > > *"Setup if pktgen and your application you have to startup each one a > > bit differently to make sure they share the resources like memory and > > the ports. I will use two Pktgen running on the same machine, which just > > means you have to setup your application as one of the applications.*" > > You can do that use these cli arguments > > > > --proc-type auto > > > > Dear Muhammad, > thank you for your help! > > I've now tried to run > > 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 "1.0" > > and then > > sudo -E ./app/x86_64-native-linuxapp-gcc/pktgen -l 0-4 -n 3 > --file-prefix pg1 --proc-type auto -b 06:00.1 -- -P -m "1.0" > > but I keep receiving the same error (see below) > > in the output text I find for both cases: > EAL: Auto-detected process type: PRIMARY > > so I tried to set --proc-type secondary in the second command > I first received an error suggesting "It is recommended to disable ASLR > in the kernel", which I did with "echo 0 | sudo tee > /proc/sys/kernel/randomize_va_space" > > now I receive the following error in the second command with --proc-type > secondary > > EAL: Detected 32 lcore(s) > EAL: Detected 2 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/pg1/mp_socket_12222_2a4c8375d5acf8 > 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 > > any further suggestion ? > > thank you > Stefano > > > > ------------- > error with --proc-type auto > > 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) > [0x7fb5a4913830]] > 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 > ******************************************************************* > >