DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
@ 2015-10-23  7:03 Vamsi Kommana
  2015-10-23 10:43 ` Mcnamara, John
  0 siblings, 1 reply; 9+ messages in thread
From: Vamsi Kommana @ 2015-10-23  7:03 UTC (permalink / raw)
  To: users

Hi Team,

I was trying to install DPDK-Pktgen(Pktgen version 2.7.7 using
DPDK-1.7.1) for testing 10G Ethernet ports using NIC card, with 4
cores(1: Kernel 1:logs for pktgen 2:for Tx Rx of traffic).

But i was ending up with "*** Did not find any ports to use ***" while I was using the below mentioned command

Command:
--------
./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg
-- -T -P -m "2.0,3.1"
collected logs are as below...

-----------------------#
  oot@localhost pktgen]#
     BSD LICENSEpktgen]#
  oot@localhost pktgen]#
     Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
     All rights reserved.
  oot@localhost pktgen]#
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions
     are met:st pktgen]#
  oot@localhost pktgen]#
       * Redistributions of source code must retain the above copyright
         notice, this list of conditions and the following disclaimer.
       * Redistributions in binary form must reproduce the above copyright
         notice, this list of conditions and the following disclaimer in
         the documentation and/or other materials provided with the
         distribution.]#
       * Neither the name of Intel Corporation nor the names of its
         contributors may be used to endorse or promote products derived
         from this software without specific prior written permission.
  oot@localhost pktgen]#
     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  oot@localhost pktgen]#
-----------------------# ./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg -- -T -P -m "2.0,3.1"
    Copyright (c) <2010-2014>, Wind River Systems, Inc. All rights reserved.

     Redistribution and use in source and binary forms, with or without modification, are
     permitted provided that the following conditions are met:

       1) Redistributions of source code must retain the above copyright notice,
          this list of conditions and the following disclaimer.

       2) Redistributions in binary form must reproduce the above copyright notice,
          this list of conditions and the following disclaimer in the documentation and/or
          other materials provided with the distribution.

       3) Neither the name of Wind River Systems nor the names of its contributors may be
          used to endorse or promote products derived from this software without specific
          prior written permission.

       4) The screens displayed by the application must contain the copyright notice as defined
          above and can not be removed without specific prior written permission.

     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
     LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
     USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

  Pktgen created by: Keith Wiles -- >>> Powered by Intel® DPDK <<<
-----------------------
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 0 on socket 0
EAL: Detected lcore 3 as core 1 on socket 0
EAL: Support maximum 64 logical core(s) by configuration.
EAL: Detected 4 lcore(s)
EAL: Auto-detected process type: PRIMARY
EAL:   cannot open VFIO container, error 2 (No such file or directory)
EAL: VFIO support could not be initialized
EAL: Setting up memory...
EAL: Ask a virtual area of 0x800000 bytes
EAL: Virtual area found at 0x7f071ca00000 (size = 0x800000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f071c600000 (size = 0x200000)
EAL: Ask a virtual area of 0x49800000 bytes
EAL: Virtual area found at 0x7f06d2c00000 (size = 0x49800000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f06d2800000 (size = 0x200000)
EAL: Ask a virtual area of 0x35400000 bytes
EAL: Virtual area found at 0x7f069d200000 (size = 0x35400000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f069ce00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f069ca00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f069c600000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f069c200000 (size = 0x200000)
EAL: Requesting 256 pages of size 2MB from socket 0
EAL: TSC frequency is ~3092981 KHz
EAL: Master core 2 is ready (tid=1d745880)
EAL: Core 3 is ready (tid=1bdfe700)
EAL: PCI device 0000:01:00.0 on NUMA socket -1
EAL:   probe driver: 8086:1528 rte_ixgbe_pmd
EAL:   0000:01:00.0 not managed by UIO driver, skipping
EAL: PCI device 0000:01:00.1 on NUMA socket -1
EAL:   probe driver: 8086:1528 rte_ixgbe_pmd
EAL:   0000:01:00.1 not managed by UIO driver, skipping
2.0              = lcores(rx 0000000000000004, tx 0000000000000004) ports(rx 0000000000000001, tx 0000000000000001)
3.1              = lcores(rx 0000000000000008, tx 0000000000000008) ports(rx 0000000000000002, tx 0000000000000002)
!
!
!
Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio
>>> Packet Burst 32, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf cache 512
!PANIC!: *** Did not find any ports to use ***
PANIC in pktgen_config_ports():
*** Did not find any ports to use ***6: [./app/build/pktgen() [0x422c25]]
5: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x3b37821d65]]
4: [./app/build/pktgen(main+0x463) [0x4226f3]]
3: [./app/build/pktgen(pktgen_config_ports+0xf71) [0x439111]]
2: [./app/build/pktgen(__rte_panic+0xc9) [0x42210f]]
1: [./app/build/pktgen(rte_dump_stack+0x18) [0x4b58b8]]
Aborted (core dumped)
[root@localhost pktgen]#
[root@localhost pktgen]#

On googling i found the issues might be due to binding and when i tried the below steps i was ending up with binding failed and logs are as below

[root@localhost tools]# ./dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver
============================================
<none>

Network devices using kernel driver
===================================
0000:00:19.0 '82579LM Gigabit Network Connection' if=em1 drv=e1000e unused=igb_uio
0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p1 drv=ixgbe unused=igb_uio
0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p2 drv=ixgbe unused=igb_uio
0000:02:00.0 'VT6105/VT6106S [Rhine-III]' if=p33p1 drv=via-rhine unused=igb_uio *Active*

Other network devices
=====================
<none>
[root@localhost tools]# ./dpdk_nic_bind.py -bind=igb_uio p1p2
Error: bind failed for 0000:01:00.1 - Cannot open /sys/bus/pci/drivers/ind=igb_uio/bind
Error: unbind failed for 0000:01:00.1 - Cannot open /sys/bus/pci/drivers//unbind
[root@localhost tools]#
[root@localhost tools]#

Please let me know if i miss any...

Thanks in advance.
Kommana

L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
  2015-10-23  7:03 [dpdk-users] DPDK-PKTGEN- Did not find any ports to use Vamsi Kommana
@ 2015-10-23 10:43 ` Mcnamara, John
  2015-10-23 12:28   ` Vamsi Kommana
  0 siblings, 1 reply; 9+ messages in thread
From: Mcnamara, John @ 2015-10-23 10:43 UTC (permalink / raw)
  To: Vamsi Kommana, users



> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Vamsi Kommana
> Sent: Friday, October 23, 2015 8:03 AM
> To: users@dpdk.org
> Subject: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
> 
> Other network devices
> =====================
> <none>
> [root@localhost tools]# ./dpdk_nic_bind.py -bind=igb_uio p1p2
> Error: bind failed for 0000:01:00.1 - Cannot open
> /sys/bus/pci/drivers/ind=igb_uio/bind
> Error: unbind failed for 0000:01:00.1 - Cannot open
> /sys/bus/pci/drivers//unbind [root@localhost tools]# [root@localhost
> tools]#
> 
> Please let me know if i miss any...

Hi,

Try with --bind or just -b (but not with -bind, i.e., not with a single dash).

See the usage:

   ./tools/dpdk_nic_bind.py --help


John.
-- 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
  2015-10-23 10:43 ` Mcnamara, John
@ 2015-10-23 12:28   ` Vamsi Kommana
  0 siblings, 0 replies; 9+ messages in thread
From: Vamsi Kommana @ 2015-10-23 12:28 UTC (permalink / raw)
  To: Mcnamara, John, users

Hi John,

Thanks for the reply, sorted out the issue.
I was successfully able to run pktgen.

Thanks,
Kommana

-----Original Message-----
From: Mcnamara, John [mailto:john.mcnamara@intel.com]
Sent: 23 October 2015 16:14
To: Vamsi Kommana; users@dpdk.org
Subject: RE: DPDK-PKTGEN- Did not find any ports to use



> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Vamsi Kommana
> Sent: Friday, October 23, 2015 8:03 AM
> To: users@dpdk.org
> Subject: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
>
> Other network devices
> =====================
> <none>
> [root@localhost tools]# ./dpdk_nic_bind.py -bind=igb_uio p1p2
> Error: bind failed for 0000:01:00.1 - Cannot open
> /sys/bus/pci/drivers/ind=igb_uio/bind
> Error: unbind failed for 0000:01:00.1 - Cannot open
> /sys/bus/pci/drivers//unbind [root@localhost tools]# [root@localhost
> tools]#
>
> Please let me know if i miss any...

Hi,

Try with --bind or just -b (but not with -bind, i.e., not with a single dash).

See the usage:

   ./tools/dpdk_nic_bind.py --help


John.
--


L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
  2015-10-28 12:24       ` Mudit Simlote
@ 2015-10-28 13:59         ` Wiles, Keith
  0 siblings, 0 replies; 9+ messages in thread
From: Wiles, Keith @ 2015-10-28 13:59 UTC (permalink / raw)
  To: Mudit Simlote, Vamsi Kommana, users

On 10/28/15, 7:24 AM, "Mudit Simlote" <Mudit.Simlote@LNTTECHSERVICES.COM> wrote:

>Hello Keith,
>
>Thanks for your reply !!
>
>We have moved to Intel Sandy Bridge ( Intel Xeon ) with 24 logical cores ( with hyperthreading enabled )
>
>I have picked up logical cores from the same CPU socket ( now, pktgen stats and others run on one of the cores, and 4 cores are used for Rx / Tx processing ), basically Rx and Tx separated out on a different logical cores per port.
>With this configuration, I see for small packets ( 64 bytes ) best packet transmission we have reached thus far is close to 7.2 gbps ( less than 14.88 Mpps ).

The performance may mean you have the NIC plugged into a PCIex4 slot and not a PCIex8 or the performance of the PCIe slot is not able to reach the performance of the NIC. I am just guessing here as Pktgen appears to be running and somewhat out of scope for debugging Pktgen issues.

>
>How do I verify whether pktgen goes through a QPI bus between sockets ( as per my understanding, since all cores selected are from the same socket , this would not matter  ? )
>
>Also, would like a couple of clarifications with the Rx and Tx counters ( like, sometimes Tx value lesser than Rx ).
>1. As, I understand counters are read from the NIC , could there be a situation where the packet count ( to transmit ) is over, and the last batch of counter updation ignored etc.

Some NIC’s do not record the correct number of packets send or sent for some reason or another. Sorry you need to look at the data sheet for the NIC.

>2. Also, in case there are Rx errors, should these be interpreted as Buffer overruns ? How to debug such a case.

Yes, RX errors are handled by the NIC and you need to read the data sheet to understand how they handle RX errors.

>3. I believe, to run a test for a particular duration, we should be setting the packet counts to Tx ( set <portlist> count <value > ). Is this correct ? On setting this, I sometimes see, that Tx stops before the actual number of packets are sent out. On repeating this a couple of times, correct behavior is seen.

Using a Lua script is the best way to send for a specific time, have a look at the rfc2544.lua or the traffic-profile.lua script in Pktgen. 
>
>I will get back to you on the PCI setup ( whether our socket connects directly to the PCIe or not ).
>
>Appreciate your help.
>
>Thanks,
>Mudit.
>
>
>________________________________________
>From: Wiles, Keith [keith.wiles@intel.com]
>Sent: Tuesday, October 27, 2015 8:07 PM
>To: Vamsi Kommana; Mudit Simlote; users@dpdk.org
>Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
>
>Hi All,
>
>What is the system CPU’s you are using I did not find that listed, but I expect it is not the issue here.
>
>The performance with one core should be fine as long as they are two different physical cores on the same socket. Also you need to make sure the PCIe bus is directly connected to the socket you are running Pktgen. In some systems the PCIe bus for the second socket is on a bridge, which can cause some problems in performance. The other issue is pktgen maybe going across the QPI bus between sockets and that is a huge performance hit.
>
>Using the cpu_layout.py tool to verify you are using two different physical cores, then make sure they are on the socket connected to the PCIe bus.
>
>BTW, the ‘-p 0x03’ option is no longer needed for Pktgen, I updated the docs a while back, but it seems to be used :-( this is not a problem for pktgen I just ignore the option.
>
>The next thing is to loop back the cable from one port to the other on the Pktgen machine and make sure you can the performance at wire rate. Then you can debug the other machine.
>
>—
>Regards,
>++Keith Wiles
>
>Intel Corporation
>
>
>
>
>
>
>
>On 10/27/15, 6:46 AM, "Vamsi Kommana" <Vamsi.Kommana@LntTechservices.com> wrote:
>
>>Including Mudit...
>>
>>Hi Keith,
>>
>>Since I will be OOO if you need any information Mudit will assist you.
>>
>>Thanks,
>>Vamsi
>>
>>-----Original Message-----
>>From: users [mailto:users-bounces@dpdk.org] On Behalf Of Vamsi Kommana
>>Sent: 27 October 2015 10:35
>>To: Wiles, Keith; users@dpdk.org
>>Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
>>
>>Hi Keith,
>>
>>Thanks for the reply...
>>
>>I was able to resolve the issue after successfully binding the ports by giving the command "./dpdk_nic_bind.py -b igb_uio p1p2".
>>
>>But we are facing issues about the performance numbers we are getting measured through the pktgen application provided by Wind River Systems.
>>We are having two machines, each equipped with 2 dual-port 10 GbE NICs (with a total of 4 ports). Machine 0 runs DPDK code, and Machine 1 runs Wind River System's DPDK-PKTGEN.
>>After successful installation we are trying to test the line rate with Pkt size 64 we are observing very poor line rate( less than 1G) and the statistics screen shot is attached to mail
>>
>>Our test bed topology is as below
>>1. 2 NIC cards in two systems with DPDK running on one and DPDK-PKTGEN on another end connected back to back with cat6 Cables 2. Running on fedora-20 3. Having 3 logical cores, 1 for Display statistics, and remaining two are for Rx/Tx and the command we used to run pktgen is as mentioned bellow ./app/build/pktgen -c 0x0e -n 3 --proc-type auto --file-prefix pg -- -p 0x03 -P -m "2.0,3.1"
>>
>>Does using only one logical cores per port for both Rx/Tx will effect the line rate ? even in this case i am transmitting traffic only from port 0 to port 1 using command "start 0" from pktgen in this case i am expecting minimum 5GBPS.
>>
>>please let me know if i miss any steps.
>>
>>Thanks in advance,
>>Kommana
>>
>>________________________________________
>>From: Wiles, Keith [keith.wiles@intel.com]
>>Sent: Friday, October 23, 2015 8:12 PM
>>To: Vamsi Kommana; users@dpdk.org
>>Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
>>
>>It appears you did not add ports to the UIO module. The dpdk_nic_bind.py shows no ports attached to the UIO module, you need to use the dpdk_nic_bind.py to add them . Look at the setup.sh script and adjust it to help get the system setup, which only needs to be run once per reboot.
>>
>>-
>>Regards,
>>++Keith Wiles
>>
>>Intel Corporation
>>
>>
>>
>>
>>
>>
>>
>>On 10/23/15, 2:03 AM, "users on behalf of Vamsi Kommana" <users-bounces@dpdk.org on behalf of Vamsi.Kommana@LntTechservices.com> wrote:
>>
>>>Hi Team,
>>>
>>>I was trying to install DPDK-Pktgen(Pktgen version 2.7.7 using
>>>DPDK-1.7.1) for testing 10G Ethernet ports using NIC card, with 4
>>>cores(1: Kernel 1:logs for pktgen 2:for Tx Rx of traffic).
>>>
>>>But i was ending up with "*** Did not find any ports to use ***" while
>>>I was using the below mentioned command
>>>
>>>Command:
>>>--------
>>>./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix
>>>pg
>>>-- -T -P -m "2.0,3.1"
>>>collected logs are as below...
>>>
>>>-----------------------#
>>> oot@localhost pktgen]#
>>> BSD LICENSEpktgen]#
>>> oot@localhost pktgen]#
>>> Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
>>> All rights reserved.
>>> oot@localhost pktgen]#
>>> Redistribution and use in source and binary forms, with or without
>>>modification, are permitted provided that the following conditions  are
>>>met:st pktgen]#  oot@localhost pktgen]#
>>> * Redistributions of source code must retain the above copyright
>>>notice, this list of conditions and the following disclaimer.
>>> * Redistributions in binary form must reproduce the above copyright
>>>notice, this list of conditions and the following disclaimer in  the
>>>documentation and/or other materials provided with the  distribution.]#
>>> * Neither the name of Intel Corporation nor the names of its
>>>contributors may be used to endorse or promote products derived  from
>>>this software without specific prior written permission.
>>> oot@localhost pktgen]#
>>> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
>>>"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
>>>LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
>>>A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
>>>OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
>>>SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
>>>LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
>>>DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
>>>THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
>>>(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
>>>OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>>> oot@localhost pktgen]#
>>>-----------------------# ./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg -- -T -P -m "2.0,3.1"
>>> Copyright (c) <2010-2014>, Wind River Systems, Inc. All rights reserved.
>>>
>>> Redistribution and use in source and binary forms, with or without
>>> modification, are permitted provided that the following conditions are met:
>>>
>>> 1) Redistributions of source code must retain the above copyright
>>> notice, this list of conditions and the following disclaimer.
>>>
>>> 2) Redistributions in binary form must reproduce the above copyright
>>> notice, this list of conditions and the following disclaimer in the
>>> documentation and/or other materials provided with the distribution.
>>>
>>> 3) Neither the name of Wind River Systems nor the names of its
>>> contributors may be used to endorse or promote products derived from
>>> this software without specific prior written permission.
>>>
>>> 4) The screens displayed by the application must contain the copyright
>>> notice as defined above and can not be removed without specific prior written permission.
>>>
>>> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
>>> AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
>>> THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
>>> PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
>>> CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
>>> EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
>>> PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
>>> PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
>>> LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
>>> NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>>>
>>> Pktgen created by: Keith Wiles -- >>> Powered by Intel(r) DPDK <<<
>>>-----------------------
>>>EAL: Detected lcore 0 as core 0 on socket 0
>>>EAL: Detected lcore 1 as core 1 on socket 0
>>>EAL: Detected lcore 2 as core 0 on socket 0
>>>EAL: Detected lcore 3 as core 1 on socket 0
>>>EAL: Support maximum 64 logical core(s) by configuration.
>>>EAL: Detected 4 lcore(s)
>>>EAL: Auto-detected process type: PRIMARY
>>>EAL: cannot open VFIO container, error 2 (No such file or directory)
>>>EAL: VFIO support could not be initialized
>>>EAL: Setting up memory...
>>>EAL: Ask a virtual area of 0x800000 bytes
>>>EAL: Virtual area found at 0x7f071ca00000 (size = 0x800000)
>>>EAL: Ask a virtual area of 0x200000 bytes
>>>EAL: Virtual area found at 0x7f071c600000 (size = 0x200000)
>>>EAL: Ask a virtual area of 0x49800000 bytes
>>>EAL: Virtual area found at 0x7f06d2c00000 (size = 0x49800000)
>>>EAL: Ask a virtual area of 0x200000 bytes
>>>EAL: Virtual area found at 0x7f06d2800000 (size = 0x200000)
>>>EAL: Ask a virtual area of 0x35400000 bytes
>>>EAL: Virtual area found at 0x7f069d200000 (size = 0x35400000)
>>>EAL: Ask a virtual area of 0x200000 bytes
>>>EAL: Virtual area found at 0x7f069ce00000 (size = 0x200000)
>>>EAL: Ask a virtual area of 0x200000 bytes
>>>EAL: Virtual area found at 0x7f069ca00000 (size = 0x200000)
>>>EAL: Ask a virtual area of 0x200000 bytes
>>>EAL: Virtual area found at 0x7f069c600000 (size = 0x200000)
>>>EAL: Ask a virtual area of 0x200000 bytes
>>>EAL: Virtual area found at 0x7f069c200000 (size = 0x200000)
>>>EAL: Requesting 256 pages of size 2MB from socket 0
>>>EAL: TSC frequency is ~3092981 KHz
>>>EAL: Master core 2 is ready (tid=1d745880)
>>>EAL: Core 3 is ready (tid=1bdfe700)
>>>EAL: PCI device 0000:01:00.0 on NUMA socket -1
>>>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>>>EAL: 0000:01:00.0 not managed by UIO driver, skipping
>>>EAL: PCI device 0000:01:00.1 on NUMA socket -1
>>>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>>>EAL: 0000:01:00.1 not managed by UIO driver, skipping
>>>2.0 = lcores(rx 0000000000000004, tx 0000000000000004) ports(rx
>>>0000000000000001, tx 0000000000000001)
>>>3.1 = lcores(rx 0000000000000008, tx 0000000000000008) ports(rx
>>>0000000000000002, tx 0000000000000002) !
>>>!
>>>!
>>>Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
>>>>>> Packet Burst 32, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf
>>>>>> cache 512
>>>!PANIC!: *** Did not find any ports to use *** PANIC in
>>>pktgen_config_ports():
>>>*** Did not find any ports to use ***6: [./app/build/pktgen()
>>>[0x422c25]]
>>>5: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x3b37821d65]]
>>>4: [./app/build/pktgen(main+0x463) [0x4226f3]]
>>>3: [./app/build/pktgen(pktgen_config_ports+0xf71) [0x439111]]
>>>2: [./app/build/pktgen(__rte_panic+0xc9) [0x42210f]]
>>>1: [./app/build/pktgen(rte_dump_stack+0x18) [0x4b58b8]] Aborted (core
>>>dumped) [root@localhost pktgen]# [root@localhost pktgen]#
>>>
>>>On googling i found the issues might be due to binding and when i tried
>>>the below steps i was ending up with binding failed and logs are as
>>>below
>>>
>>>[root@localhost tools]# ./dpdk_nic_bind.py --status
>>>
>>>Network devices using DPDK-compatible driver
>>>============================================
>>><none>
>>>
>>>Network devices using kernel driver
>>>===================================
>>>0000:00:19.0 '82579LM Gigabit Network Connection' if=em1 drv=e1000e
>>>unused=igb_uio
>>>0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p1
>>>drv=ixgbe unused=igb_uio
>>>0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p2
>>>drv=ixgbe unused=igb_uio
>>>0000:02:00.0 'VT6105/VT6106S [Rhine-III]' if=p33p1 drv=via-rhine
>>>unused=igb_uio *Active*
>>>
>>>Other network devices
>>>=====================
>>><none>
>>>[root@localhost tools]# ./dpdk_nic_bind.py -bind=igb_uio p1p2
>>>Error: bind failed for 0000:01:00.1 - Cannot open
>>>/sys/bus/pci/drivers/ind=igb_uio/bind
>>>Error: unbind failed for 0000:01:00.1 - Cannot open
>>>/sys/bus/pci/drivers//unbind [root@localhost tools]# [root@localhost
>>>tools]#
>>>
>>>Please let me know if i miss any...
>>>
>>>Thanks in advance.
>>>Kommana
>>>
>>>L&T Technology Services Ltd
>>>
>>>www.LntTechservices.com<http://www.lnttechservices.com/>
>>>
>>>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>>
>>L&T Technology Services Ltd
>>
>>www.LntTechservices.com<http://www.lnttechservices.com/>
>>
>>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>>-------------- next part --------------
>>A non-text attachment was scrubbed...
>>Name: DPDK-PKTGEN_Stats.png
>>Type: image/png
>>Size: 98635 bytes
>>Desc: DPDK-PKTGEN_Stats.png
>>URL: <http://dpdk.org/ml/archives/users/attachments/20151027/f9930b56/attachment.png>
>>L&T Technology Services Ltd
>>
>>www.LntTechservices.com<http://www.lnttechservices.com/>
>>
>>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>>L&T Technology Services Ltd
>>
>>www.LntTechservices.com<http://www.lnttechservices.com/>
>>
>>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>


— 
Regards,
++Keith Wiles

Intel Corporation



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
  2015-10-27 14:37     ` Wiles, Keith
@ 2015-10-28 12:24       ` Mudit Simlote
  2015-10-28 13:59         ` Wiles, Keith
  0 siblings, 1 reply; 9+ messages in thread
From: Mudit Simlote @ 2015-10-28 12:24 UTC (permalink / raw)
  To: Wiles, Keith, Vamsi Kommana, users

Hello Keith,

Thanks for your reply !!

We have moved to Intel Sandy Bridge ( Intel Xeon ) with 24 logical cores ( with hyperthreading enabled )

I have picked up logical cores from the same CPU socket ( now, pktgen stats and others run on one of the cores, and 4 cores are used for Rx / Tx processing ), basically Rx and Tx separated out on a different logical cores per port.
With this configuration, I see for small packets ( 64 bytes ) best packet transmission we have reached thus far is close to 7.2 gbps ( less than 14.88 Mpps ).

How do I verify whether pktgen goes through a QPI bus between sockets ( as per my understanding, since all cores selected are from the same socket , this would not matter  ? )

Also, would like a couple of clarifications with the Rx and Tx counters ( like, sometimes Tx value lesser than Rx ).
1. As, I understand counters are read from the NIC , could there be a situation where the packet count ( to transmit ) is over, and the last batch of counter updation ignored etc.
2. Also, in case there are Rx errors, should these be interpreted as Buffer overruns ? How to debug such a case.
3. I believe, to run a test for a particular duration, we should be setting the packet counts to Tx ( set <portlist> count <value > ). Is this correct ? On setting this, I sometimes see, that Tx stops before the actual number of packets are sent out. On repeating this a couple of times, correct behavior is seen.

I will get back to you on the PCI setup ( whether our socket connects directly to the PCIe or not ).

Appreciate your help.

Thanks,
Mudit.


________________________________________
From: Wiles, Keith [keith.wiles@intel.com]
Sent: Tuesday, October 27, 2015 8:07 PM
To: Vamsi Kommana; Mudit Simlote; users@dpdk.org
Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use

Hi All,

What is the system CPU’s you are using I did not find that listed, but I expect it is not the issue here.

The performance with one core should be fine as long as they are two different physical cores on the same socket. Also you need to make sure the PCIe bus is directly connected to the socket you are running Pktgen. In some systems the PCIe bus for the second socket is on a bridge, which can cause some problems in performance. The other issue is pktgen maybe going across the QPI bus between sockets and that is a huge performance hit.

Using the cpu_layout.py tool to verify you are using two different physical cores, then make sure they are on the socket connected to the PCIe bus.

BTW, the ‘-p 0x03’ option is no longer needed for Pktgen, I updated the docs a while back, but it seems to be used :-( this is not a problem for pktgen I just ignore the option.

The next thing is to loop back the cable from one port to the other on the Pktgen machine and make sure you can the performance at wire rate. Then you can debug the other machine.

—
Regards,
++Keith Wiles

Intel Corporation







On 10/27/15, 6:46 AM, "Vamsi Kommana" <Vamsi.Kommana@LntTechservices.com> wrote:

>Including Mudit...
>
>Hi Keith,
>
>Since I will be OOO if you need any information Mudit will assist you.
>
>Thanks,
>Vamsi
>
>-----Original Message-----
>From: users [mailto:users-bounces@dpdk.org] On Behalf Of Vamsi Kommana
>Sent: 27 October 2015 10:35
>To: Wiles, Keith; users@dpdk.org
>Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
>
>Hi Keith,
>
>Thanks for the reply...
>
>I was able to resolve the issue after successfully binding the ports by giving the command "./dpdk_nic_bind.py -b igb_uio p1p2".
>
>But we are facing issues about the performance numbers we are getting measured through the pktgen application provided by Wind River Systems.
>We are having two machines, each equipped with 2 dual-port 10 GbE NICs (with a total of 4 ports). Machine 0 runs DPDK code, and Machine 1 runs Wind River System's DPDK-PKTGEN.
>After successful installation we are trying to test the line rate with Pkt size 64 we are observing very poor line rate( less than 1G) and the statistics screen shot is attached to mail
>
>Our test bed topology is as below
>1. 2 NIC cards in two systems with DPDK running on one and DPDK-PKTGEN on another end connected back to back with cat6 Cables 2. Running on fedora-20 3. Having 3 logical cores, 1 for Display statistics, and remaining two are for Rx/Tx and the command we used to run pktgen is as mentioned bellow ./app/build/pktgen -c 0x0e -n 3 --proc-type auto --file-prefix pg -- -p 0x03 -P -m "2.0,3.1"
>
>Does using only one logical cores per port for both Rx/Tx will effect the line rate ? even in this case i am transmitting traffic only from port 0 to port 1 using command "start 0" from pktgen in this case i am expecting minimum 5GBPS.
>
>please let me know if i miss any steps.
>
>Thanks in advance,
>Kommana
>
>________________________________________
>From: Wiles, Keith [keith.wiles@intel.com]
>Sent: Friday, October 23, 2015 8:12 PM
>To: Vamsi Kommana; users@dpdk.org
>Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
>
>It appears you did not add ports to the UIO module. The dpdk_nic_bind.py shows no ports attached to the UIO module, you need to use the dpdk_nic_bind.py to add them . Look at the setup.sh script and adjust it to help get the system setup, which only needs to be run once per reboot.
>
>-
>Regards,
>++Keith Wiles
>
>Intel Corporation
>
>
>
>
>
>
>
>On 10/23/15, 2:03 AM, "users on behalf of Vamsi Kommana" <users-bounces@dpdk.org on behalf of Vamsi.Kommana@LntTechservices.com> wrote:
>
>>Hi Team,
>>
>>I was trying to install DPDK-Pktgen(Pktgen version 2.7.7 using
>>DPDK-1.7.1) for testing 10G Ethernet ports using NIC card, with 4
>>cores(1: Kernel 1:logs for pktgen 2:for Tx Rx of traffic).
>>
>>But i was ending up with "*** Did not find any ports to use ***" while
>>I was using the below mentioned command
>>
>>Command:
>>--------
>>./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix
>>pg
>>-- -T -P -m "2.0,3.1"
>>collected logs are as below...
>>
>>-----------------------#
>> oot@localhost pktgen]#
>> BSD LICENSEpktgen]#
>> oot@localhost pktgen]#
>> Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
>> All rights reserved.
>> oot@localhost pktgen]#
>> Redistribution and use in source and binary forms, with or without
>>modification, are permitted provided that the following conditions  are
>>met:st pktgen]#  oot@localhost pktgen]#
>> * Redistributions of source code must retain the above copyright
>>notice, this list of conditions and the following disclaimer.
>> * Redistributions in binary form must reproduce the above copyright
>>notice, this list of conditions and the following disclaimer in  the
>>documentation and/or other materials provided with the  distribution.]#
>> * Neither the name of Intel Corporation nor the names of its
>>contributors may be used to endorse or promote products derived  from
>>this software without specific prior written permission.
>> oot@localhost pktgen]#
>> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
>>"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
>>LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
>>A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
>>OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
>>SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
>>LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
>>DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
>>THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
>>(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
>>OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>> oot@localhost pktgen]#
>>-----------------------# ./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg -- -T -P -m "2.0,3.1"
>> Copyright (c) <2010-2014>, Wind River Systems, Inc. All rights reserved.
>>
>> Redistribution and use in source and binary forms, with or without
>> modification, are permitted provided that the following conditions are met:
>>
>> 1) Redistributions of source code must retain the above copyright
>> notice, this list of conditions and the following disclaimer.
>>
>> 2) Redistributions in binary form must reproduce the above copyright
>> notice, this list of conditions and the following disclaimer in the
>> documentation and/or other materials provided with the distribution.
>>
>> 3) Neither the name of Wind River Systems nor the names of its
>> contributors may be used to endorse or promote products derived from
>> this software without specific prior written permission.
>>
>> 4) The screens displayed by the application must contain the copyright
>> notice as defined above and can not be removed without specific prior written permission.
>>
>> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
>> AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
>> THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
>> PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
>> CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
>> EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
>> PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
>> PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
>> LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
>> NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>>
>> Pktgen created by: Keith Wiles -- >>> Powered by Intel(r) DPDK <<<
>>-----------------------
>>EAL: Detected lcore 0 as core 0 on socket 0
>>EAL: Detected lcore 1 as core 1 on socket 0
>>EAL: Detected lcore 2 as core 0 on socket 0
>>EAL: Detected lcore 3 as core 1 on socket 0
>>EAL: Support maximum 64 logical core(s) by configuration.
>>EAL: Detected 4 lcore(s)
>>EAL: Auto-detected process type: PRIMARY
>>EAL: cannot open VFIO container, error 2 (No such file or directory)
>>EAL: VFIO support could not be initialized
>>EAL: Setting up memory...
>>EAL: Ask a virtual area of 0x800000 bytes
>>EAL: Virtual area found at 0x7f071ca00000 (size = 0x800000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f071c600000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x49800000 bytes
>>EAL: Virtual area found at 0x7f06d2c00000 (size = 0x49800000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f06d2800000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x35400000 bytes
>>EAL: Virtual area found at 0x7f069d200000 (size = 0x35400000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f069ce00000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f069ca00000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f069c600000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f069c200000 (size = 0x200000)
>>EAL: Requesting 256 pages of size 2MB from socket 0
>>EAL: TSC frequency is ~3092981 KHz
>>EAL: Master core 2 is ready (tid=1d745880)
>>EAL: Core 3 is ready (tid=1bdfe700)
>>EAL: PCI device 0000:01:00.0 on NUMA socket -1
>>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>>EAL: 0000:01:00.0 not managed by UIO driver, skipping
>>EAL: PCI device 0000:01:00.1 on NUMA socket -1
>>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>>EAL: 0000:01:00.1 not managed by UIO driver, skipping
>>2.0 = lcores(rx 0000000000000004, tx 0000000000000004) ports(rx
>>0000000000000001, tx 0000000000000001)
>>3.1 = lcores(rx 0000000000000008, tx 0000000000000008) ports(rx
>>0000000000000002, tx 0000000000000002) !
>>!
>>!
>>Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
>>>>> Packet Burst 32, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf
>>>>> cache 512
>>!PANIC!: *** Did not find any ports to use *** PANIC in
>>pktgen_config_ports():
>>*** Did not find any ports to use ***6: [./app/build/pktgen()
>>[0x422c25]]
>>5: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x3b37821d65]]
>>4: [./app/build/pktgen(main+0x463) [0x4226f3]]
>>3: [./app/build/pktgen(pktgen_config_ports+0xf71) [0x439111]]
>>2: [./app/build/pktgen(__rte_panic+0xc9) [0x42210f]]
>>1: [./app/build/pktgen(rte_dump_stack+0x18) [0x4b58b8]] Aborted (core
>>dumped) [root@localhost pktgen]# [root@localhost pktgen]#
>>
>>On googling i found the issues might be due to binding and when i tried
>>the below steps i was ending up with binding failed and logs are as
>>below
>>
>>[root@localhost tools]# ./dpdk_nic_bind.py --status
>>
>>Network devices using DPDK-compatible driver
>>============================================
>><none>
>>
>>Network devices using kernel driver
>>===================================
>>0000:00:19.0 '82579LM Gigabit Network Connection' if=em1 drv=e1000e
>>unused=igb_uio
>>0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p1
>>drv=ixgbe unused=igb_uio
>>0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p2
>>drv=ixgbe unused=igb_uio
>>0000:02:00.0 'VT6105/VT6106S [Rhine-III]' if=p33p1 drv=via-rhine
>>unused=igb_uio *Active*
>>
>>Other network devices
>>=====================
>><none>
>>[root@localhost tools]# ./dpdk_nic_bind.py -bind=igb_uio p1p2
>>Error: bind failed for 0000:01:00.1 - Cannot open
>>/sys/bus/pci/drivers/ind=igb_uio/bind
>>Error: unbind failed for 0000:01:00.1 - Cannot open
>>/sys/bus/pci/drivers//unbind [root@localhost tools]# [root@localhost
>>tools]#
>>
>>Please let me know if i miss any...
>>
>>Thanks in advance.
>>Kommana
>>
>>L&T Technology Services Ltd
>>
>>www.LntTechservices.com<http://www.lnttechservices.com/>
>>
>>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>-------------- next part --------------
>A non-text attachment was scrubbed...
>Name: DPDK-PKTGEN_Stats.png
>Type: image/png
>Size: 98635 bytes
>Desc: DPDK-PKTGEN_Stats.png
>URL: <http://dpdk.org/ml/archives/users/attachments/20151027/f9930b56/attachment.png>
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
  2015-10-27 11:46   ` Vamsi Kommana
@ 2015-10-27 14:37     ` Wiles, Keith
  2015-10-28 12:24       ` Mudit Simlote
  0 siblings, 1 reply; 9+ messages in thread
From: Wiles, Keith @ 2015-10-27 14:37 UTC (permalink / raw)
  To: Vamsi Kommana, Mudit Simlote, users

Hi All,

What is the system CPU’s you are using I did not find that listed, but I expect it is not the issue here.

The performance with one core should be fine as long as they are two different physical cores on the same socket. Also you need to make sure the PCIe bus is directly connected to the socket you are running Pktgen. In some systems the PCIe bus for the second socket is on a bridge, which can cause some problems in performance. The other issue is pktgen maybe going across the QPI bus between sockets and that is a huge performance hit.

Using the cpu_layout.py tool to verify you are using two different physical cores, then make sure they are on the socket connected to the PCIe bus.

BTW, the ‘-p 0x03’ option is no longer needed for Pktgen, I updated the docs a while back, but it seems to be used :-( this is not a problem for pktgen I just ignore the option.

The next thing is to loop back the cable from one port to the other on the Pktgen machine and make sure you can the performance at wire rate. Then you can debug the other machine.

— 
Regards,
++Keith Wiles

Intel Corporation







On 10/27/15, 6:46 AM, "Vamsi Kommana" <Vamsi.Kommana@LntTechservices.com> wrote:

>Including Mudit...
>
>Hi Keith,
>
>Since I will be OOO if you need any information Mudit will assist you.
>
>Thanks,
>Vamsi
>
>-----Original Message-----
>From: users [mailto:users-bounces@dpdk.org] On Behalf Of Vamsi Kommana
>Sent: 27 October 2015 10:35
>To: Wiles, Keith; users@dpdk.org
>Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
>
>Hi Keith,
>
>Thanks for the reply...
>
>I was able to resolve the issue after successfully binding the ports by giving the command "./dpdk_nic_bind.py -b igb_uio p1p2".
>
>But we are facing issues about the performance numbers we are getting measured through the pktgen application provided by Wind River Systems.
>We are having two machines, each equipped with 2 dual-port 10 GbE NICs (with a total of 4 ports). Machine 0 runs DPDK code, and Machine 1 runs Wind River System's DPDK-PKTGEN.
>After successful installation we are trying to test the line rate with Pkt size 64 we are observing very poor line rate( less than 1G) and the statistics screen shot is attached to mail
>
>Our test bed topology is as below
>1. 2 NIC cards in two systems with DPDK running on one and DPDK-PKTGEN on another end connected back to back with cat6 Cables 2. Running on fedora-20 3. Having 3 logical cores, 1 for Display statistics, and remaining two are for Rx/Tx and the command we used to run pktgen is as mentioned bellow ./app/build/pktgen -c 0x0e -n 3 --proc-type auto --file-prefix pg -- -p 0x03 -P -m "2.0,3.1"
>
>Does using only one logical cores per port for both Rx/Tx will effect the line rate ? even in this case i am transmitting traffic only from port 0 to port 1 using command "start 0" from pktgen in this case i am expecting minimum 5GBPS.
>
>please let me know if i miss any steps.
>
>Thanks in advance,
>Kommana
>
>________________________________________
>From: Wiles, Keith [keith.wiles@intel.com]
>Sent: Friday, October 23, 2015 8:12 PM
>To: Vamsi Kommana; users@dpdk.org
>Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
>
>It appears you did not add ports to the UIO module. The dpdk_nic_bind.py shows no ports attached to the UIO module, you need to use the dpdk_nic_bind.py to add them . Look at the setup.sh script and adjust it to help get the system setup, which only needs to be run once per reboot.
>
>-
>Regards,
>++Keith Wiles
>
>Intel Corporation
>
>
>
>
>
>
>
>On 10/23/15, 2:03 AM, "users on behalf of Vamsi Kommana" <users-bounces@dpdk.org on behalf of Vamsi.Kommana@LntTechservices.com> wrote:
>
>>Hi Team,
>>
>>I was trying to install DPDK-Pktgen(Pktgen version 2.7.7 using
>>DPDK-1.7.1) for testing 10G Ethernet ports using NIC card, with 4
>>cores(1: Kernel 1:logs for pktgen 2:for Tx Rx of traffic).
>>
>>But i was ending up with "*** Did not find any ports to use ***" while
>>I was using the below mentioned command
>>
>>Command:
>>--------
>>./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix
>>pg
>>-- -T -P -m "2.0,3.1"
>>collected logs are as below...
>>
>>-----------------------#
>> oot@localhost pktgen]#
>> BSD LICENSEpktgen]#
>> oot@localhost pktgen]#
>> Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
>> All rights reserved.
>> oot@localhost pktgen]#
>> Redistribution and use in source and binary forms, with or without
>>modification, are permitted provided that the following conditions  are
>>met:st pktgen]#  oot@localhost pktgen]#
>> * Redistributions of source code must retain the above copyright
>>notice, this list of conditions and the following disclaimer.
>> * Redistributions in binary form must reproduce the above copyright
>>notice, this list of conditions and the following disclaimer in  the
>>documentation and/or other materials provided with the  distribution.]#
>> * Neither the name of Intel Corporation nor the names of its
>>contributors may be used to endorse or promote products derived  from
>>this software without specific prior written permission.
>> oot@localhost pktgen]#
>> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
>>"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
>>LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
>>A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
>>OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
>>SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
>>LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
>>DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
>>THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
>>(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
>>OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>> oot@localhost pktgen]#
>>-----------------------# ./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg -- -T -P -m "2.0,3.1"
>> Copyright (c) <2010-2014>, Wind River Systems, Inc. All rights reserved.
>>
>> Redistribution and use in source and binary forms, with or without
>> modification, are permitted provided that the following conditions are met:
>>
>> 1) Redistributions of source code must retain the above copyright
>> notice, this list of conditions and the following disclaimer.
>>
>> 2) Redistributions in binary form must reproduce the above copyright
>> notice, this list of conditions and the following disclaimer in the
>> documentation and/or other materials provided with the distribution.
>>
>> 3) Neither the name of Wind River Systems nor the names of its
>> contributors may be used to endorse or promote products derived from
>> this software without specific prior written permission.
>>
>> 4) The screens displayed by the application must contain the copyright
>> notice as defined above and can not be removed without specific prior written permission.
>>
>> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
>> AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
>> THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
>> PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
>> CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
>> EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
>> PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
>> PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
>> LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
>> NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>>
>> Pktgen created by: Keith Wiles -- >>> Powered by Intel(r) DPDK <<<
>>-----------------------
>>EAL: Detected lcore 0 as core 0 on socket 0
>>EAL: Detected lcore 1 as core 1 on socket 0
>>EAL: Detected lcore 2 as core 0 on socket 0
>>EAL: Detected lcore 3 as core 1 on socket 0
>>EAL: Support maximum 64 logical core(s) by configuration.
>>EAL: Detected 4 lcore(s)
>>EAL: Auto-detected process type: PRIMARY
>>EAL: cannot open VFIO container, error 2 (No such file or directory)
>>EAL: VFIO support could not be initialized
>>EAL: Setting up memory...
>>EAL: Ask a virtual area of 0x800000 bytes
>>EAL: Virtual area found at 0x7f071ca00000 (size = 0x800000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f071c600000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x49800000 bytes
>>EAL: Virtual area found at 0x7f06d2c00000 (size = 0x49800000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f06d2800000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x35400000 bytes
>>EAL: Virtual area found at 0x7f069d200000 (size = 0x35400000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f069ce00000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f069ca00000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f069c600000 (size = 0x200000)
>>EAL: Ask a virtual area of 0x200000 bytes
>>EAL: Virtual area found at 0x7f069c200000 (size = 0x200000)
>>EAL: Requesting 256 pages of size 2MB from socket 0
>>EAL: TSC frequency is ~3092981 KHz
>>EAL: Master core 2 is ready (tid=1d745880)
>>EAL: Core 3 is ready (tid=1bdfe700)
>>EAL: PCI device 0000:01:00.0 on NUMA socket -1
>>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>>EAL: 0000:01:00.0 not managed by UIO driver, skipping
>>EAL: PCI device 0000:01:00.1 on NUMA socket -1
>>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>>EAL: 0000:01:00.1 not managed by UIO driver, skipping
>>2.0 = lcores(rx 0000000000000004, tx 0000000000000004) ports(rx
>>0000000000000001, tx 0000000000000001)
>>3.1 = lcores(rx 0000000000000008, tx 0000000000000008) ports(rx
>>0000000000000002, tx 0000000000000002) !
>>!
>>!
>>Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
>>>>> Packet Burst 32, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf
>>>>> cache 512
>>!PANIC!: *** Did not find any ports to use *** PANIC in
>>pktgen_config_ports():
>>*** Did not find any ports to use ***6: [./app/build/pktgen()
>>[0x422c25]]
>>5: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x3b37821d65]]
>>4: [./app/build/pktgen(main+0x463) [0x4226f3]]
>>3: [./app/build/pktgen(pktgen_config_ports+0xf71) [0x439111]]
>>2: [./app/build/pktgen(__rte_panic+0xc9) [0x42210f]]
>>1: [./app/build/pktgen(rte_dump_stack+0x18) [0x4b58b8]] Aborted (core
>>dumped) [root@localhost pktgen]# [root@localhost pktgen]#
>>
>>On googling i found the issues might be due to binding and when i tried
>>the below steps i was ending up with binding failed and logs are as
>>below
>>
>>[root@localhost tools]# ./dpdk_nic_bind.py --status
>>
>>Network devices using DPDK-compatible driver
>>============================================
>><none>
>>
>>Network devices using kernel driver
>>===================================
>>0000:00:19.0 '82579LM Gigabit Network Connection' if=em1 drv=e1000e
>>unused=igb_uio
>>0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p1
>>drv=ixgbe unused=igb_uio
>>0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p2
>>drv=ixgbe unused=igb_uio
>>0000:02:00.0 'VT6105/VT6106S [Rhine-III]' if=p33p1 drv=via-rhine
>>unused=igb_uio *Active*
>>
>>Other network devices
>>=====================
>><none>
>>[root@localhost tools]# ./dpdk_nic_bind.py -bind=igb_uio p1p2
>>Error: bind failed for 0000:01:00.1 - Cannot open
>>/sys/bus/pci/drivers/ind=igb_uio/bind
>>Error: unbind failed for 0000:01:00.1 - Cannot open
>>/sys/bus/pci/drivers//unbind [root@localhost tools]# [root@localhost
>>tools]#
>>
>>Please let me know if i miss any...
>>
>>Thanks in advance.
>>Kommana
>>
>>L&T Technology Services Ltd
>>
>>www.LntTechservices.com<http://www.lnttechservices.com/>
>>
>>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>-------------- next part --------------
>A non-text attachment was scrubbed...
>Name: DPDK-PKTGEN_Stats.png
>Type: image/png
>Size: 98635 bytes
>Desc: DPDK-PKTGEN_Stats.png
>URL: <http://dpdk.org/ml/archives/users/attachments/20151027/f9930b56/attachment.png>
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
  2015-10-27  5:05 ` Vamsi Kommana
@ 2015-10-27 11:46   ` Vamsi Kommana
  2015-10-27 14:37     ` Wiles, Keith
  0 siblings, 1 reply; 9+ messages in thread
From: Vamsi Kommana @ 2015-10-27 11:46 UTC (permalink / raw)
  To: Mudit Simlote, Wiles, Keith, users

Including Mudit...

Hi Keith,

Since I will be OOO if you need any information Mudit will assist you.

Thanks,
Vamsi

-----Original Message-----
From: users [mailto:users-bounces@dpdk.org] On Behalf Of Vamsi Kommana
Sent: 27 October 2015 10:35
To: Wiles, Keith; users@dpdk.org
Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use

Hi Keith,

Thanks for the reply...

I was able to resolve the issue after successfully binding the ports by giving the command "./dpdk_nic_bind.py -b igb_uio p1p2".

But we are facing issues about the performance numbers we are getting measured through the pktgen application provided by Wind River Systems.
We are having two machines, each equipped with 2 dual-port 10 GbE NICs (with a total of 4 ports). Machine 0 runs DPDK code, and Machine 1 runs Wind River System's DPDK-PKTGEN.
After successful installation we are trying to test the line rate with Pkt size 64 we are observing very poor line rate( less than 1G) and the statistics screen shot is attached to mail

Our test bed topology is as below
1. 2 NIC cards in two systems with DPDK running on one and DPDK-PKTGEN on another end connected back to back with cat6 Cables 2. Running on fedora-20 3. Having 3 logical cores, 1 for Display statistics, and remaining two are for Rx/Tx and the command we used to run pktgen is as mentioned bellow ./app/build/pktgen -c 0x0e -n 3 --proc-type auto --file-prefix pg -- -p 0x03 -P -m "2.0,3.1"

Does using only one logical cores per port for both Rx/Tx will effect the line rate ? even in this case i am transmitting traffic only from port 0 to port 1 using command "start 0" from pktgen in this case i am expecting minimum 5GBPS.

please let me know if i miss any steps.

Thanks in advance,
Kommana

________________________________________
From: Wiles, Keith [keith.wiles@intel.com]
Sent: Friday, October 23, 2015 8:12 PM
To: Vamsi Kommana; users@dpdk.org
Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use

It appears you did not add ports to the UIO module. The dpdk_nic_bind.py shows no ports attached to the UIO module, you need to use the dpdk_nic_bind.py to add them . Look at the setup.sh script and adjust it to help get the system setup, which only needs to be run once per reboot.

-
Regards,
++Keith Wiles

Intel Corporation







On 10/23/15, 2:03 AM, "users on behalf of Vamsi Kommana" <users-bounces@dpdk.org on behalf of Vamsi.Kommana@LntTechservices.com> wrote:

>Hi Team,
>
>I was trying to install DPDK-Pktgen(Pktgen version 2.7.7 using
>DPDK-1.7.1) for testing 10G Ethernet ports using NIC card, with 4
>cores(1: Kernel 1:logs for pktgen 2:for Tx Rx of traffic).
>
>But i was ending up with "*** Did not find any ports to use ***" while
>I was using the below mentioned command
>
>Command:
>--------
>./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix
>pg
>-- -T -P -m "2.0,3.1"
>collected logs are as below...
>
>-----------------------#
> oot@localhost pktgen]#
> BSD LICENSEpktgen]#
> oot@localhost pktgen]#
> Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
> All rights reserved.
> oot@localhost pktgen]#
> Redistribution and use in source and binary forms, with or without
>modification, are permitted provided that the following conditions  are
>met:st pktgen]#  oot@localhost pktgen]#
> * Redistributions of source code must retain the above copyright
>notice, this list of conditions and the following disclaimer.
> * Redistributions in binary form must reproduce the above copyright
>notice, this list of conditions and the following disclaimer in  the
>documentation and/or other materials provided with the  distribution.]#
> * Neither the name of Intel Corporation nor the names of its
>contributors may be used to endorse or promote products derived  from
>this software without specific prior written permission.
> oot@localhost pktgen]#
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
>"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
>LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
>A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
>OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
>SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
>LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
>DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
>THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
>(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
>OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
> oot@localhost pktgen]#
>-----------------------# ./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg -- -T -P -m "2.0,3.1"
> Copyright (c) <2010-2014>, Wind River Systems, Inc. All rights reserved.
>
> Redistribution and use in source and binary forms, with or without
> modification, are permitted provided that the following conditions are met:
>
> 1) Redistributions of source code must retain the above copyright
> notice, this list of conditions and the following disclaimer.
>
> 2) Redistributions in binary form must reproduce the above copyright
> notice, this list of conditions and the following disclaimer in the
> documentation and/or other materials provided with the distribution.
>
> 3) Neither the name of Wind River Systems nor the names of its
> contributors may be used to endorse or promote products derived from
> this software without specific prior written permission.
>
> 4) The screens displayed by the application must contain the copyright
> notice as defined above and can not be removed without specific prior written permission.
>
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
> AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
> THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
> CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
> EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
> PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
> PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
> LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
> NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>
> Pktgen created by: Keith Wiles -- >>> Powered by Intel(r) DPDK <<<
>-----------------------
>EAL: Detected lcore 0 as core 0 on socket 0
>EAL: Detected lcore 1 as core 1 on socket 0
>EAL: Detected lcore 2 as core 0 on socket 0
>EAL: Detected lcore 3 as core 1 on socket 0
>EAL: Support maximum 64 logical core(s) by configuration.
>EAL: Detected 4 lcore(s)
>EAL: Auto-detected process type: PRIMARY
>EAL: cannot open VFIO container, error 2 (No such file or directory)
>EAL: VFIO support could not be initialized
>EAL: Setting up memory...
>EAL: Ask a virtual area of 0x800000 bytes
>EAL: Virtual area found at 0x7f071ca00000 (size = 0x800000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f071c600000 (size = 0x200000)
>EAL: Ask a virtual area of 0x49800000 bytes
>EAL: Virtual area found at 0x7f06d2c00000 (size = 0x49800000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f06d2800000 (size = 0x200000)
>EAL: Ask a virtual area of 0x35400000 bytes
>EAL: Virtual area found at 0x7f069d200000 (size = 0x35400000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069ce00000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069ca00000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069c600000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069c200000 (size = 0x200000)
>EAL: Requesting 256 pages of size 2MB from socket 0
>EAL: TSC frequency is ~3092981 KHz
>EAL: Master core 2 is ready (tid=1d745880)
>EAL: Core 3 is ready (tid=1bdfe700)
>EAL: PCI device 0000:01:00.0 on NUMA socket -1
>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>EAL: 0000:01:00.0 not managed by UIO driver, skipping
>EAL: PCI device 0000:01:00.1 on NUMA socket -1
>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>EAL: 0000:01:00.1 not managed by UIO driver, skipping
>2.0 = lcores(rx 0000000000000004, tx 0000000000000004) ports(rx
>0000000000000001, tx 0000000000000001)
>3.1 = lcores(rx 0000000000000008, tx 0000000000000008) ports(rx
>0000000000000002, tx 0000000000000002) !
>!
>!
>Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
>>>> Packet Burst 32, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf
>>>> cache 512
>!PANIC!: *** Did not find any ports to use *** PANIC in
>pktgen_config_ports():
>*** Did not find any ports to use ***6: [./app/build/pktgen()
>[0x422c25]]
>5: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x3b37821d65]]
>4: [./app/build/pktgen(main+0x463) [0x4226f3]]
>3: [./app/build/pktgen(pktgen_config_ports+0xf71) [0x439111]]
>2: [./app/build/pktgen(__rte_panic+0xc9) [0x42210f]]
>1: [./app/build/pktgen(rte_dump_stack+0x18) [0x4b58b8]] Aborted (core
>dumped) [root@localhost pktgen]# [root@localhost pktgen]#
>
>On googling i found the issues might be due to binding and when i tried
>the below steps i was ending up with binding failed and logs are as
>below
>
>[root@localhost tools]# ./dpdk_nic_bind.py --status
>
>Network devices using DPDK-compatible driver
>============================================
><none>
>
>Network devices using kernel driver
>===================================
>0000:00:19.0 '82579LM Gigabit Network Connection' if=em1 drv=e1000e
>unused=igb_uio
>0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p1
>drv=ixgbe unused=igb_uio
>0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p2
>drv=ixgbe unused=igb_uio
>0000:02:00.0 'VT6105/VT6106S [Rhine-III]' if=p33p1 drv=via-rhine
>unused=igb_uio *Active*
>
>Other network devices
>=====================
><none>
>[root@localhost tools]# ./dpdk_nic_bind.py -bind=igb_uio p1p2
>Error: bind failed for 0000:01:00.1 - Cannot open
>/sys/bus/pci/drivers/ind=igb_uio/bind
>Error: unbind failed for 0000:01:00.1 - Cannot open
>/sys/bus/pci/drivers//unbind [root@localhost tools]# [root@localhost
>tools]#
>
>Please let me know if i miss any...
>
>Thanks in advance.
>Kommana
>
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DPDK-PKTGEN_Stats.png
Type: image/png
Size: 98635 bytes
Desc: DPDK-PKTGEN_Stats.png
URL: <http://dpdk.org/ml/archives/users/attachments/20151027/f9930b56/attachment.png>
L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
  2015-10-23 14:42 Wiles, Keith
@ 2015-10-27  5:05 ` Vamsi Kommana
  2015-10-27 11:46   ` Vamsi Kommana
  0 siblings, 1 reply; 9+ messages in thread
From: Vamsi Kommana @ 2015-10-27  5:05 UTC (permalink / raw)
  To: Wiles, Keith, users

Hi Keith,

Thanks for the reply...

I was able to resolve the issue after successfully binding the ports by giving the command "./dpdk_nic_bind.py -b igb_uio p1p2".

But we are facing issues about the performance numbers we are getting measured through the pktgen application provided by Wind River Systems.
We are having two machines, each equipped with 2 dual-port 10 GbE NICs (with a total of 4 ports). Machine 0 runs DPDK code, and Machine 1 runs Wind River System's DPDK-PKTGEN.
After successful installation we are trying to test the line rate with Pkt size 64 we are observing very poor line rate( less than 1G) and the statistics screen shot is attached to mail

Our test bed topology is as below
1. 2 NIC cards in two systems with DPDK running on one and DPDK-PKTGEN on another end connected back to back with cat6 Cables
2. Running on fedora-20
3. Having 3 logical cores, 1 for Display statistics, and remaining two are for Rx/Tx and the command we used to run pktgen is as mentioned bellow
./app/build/pktgen -c 0x0e -n 3 --proc-type auto --file-prefix pg -- -p 0x03 -P -m "2.0,3.1"

Does using only one logical cores per port for both Rx/Tx will effect the line rate ? even in this case i am transmitting traffic only from port 0 to port 1 using command "start 0" from pktgen in this case i am expecting minimum 5GBPS.

please let me know if i miss any steps.

Thanks in advance,
Kommana

________________________________________
From: Wiles, Keith [keith.wiles@intel.com]
Sent: Friday, October 23, 2015 8:12 PM
To: Vamsi Kommana; users@dpdk.org
Subject: Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use

It appears you did not add ports to the UIO module. The dpdk_nic_bind.py shows no ports attached to the UIO module, you need to use the dpdk_nic_bind.py to add them . Look at the setup.sh script and adjust it to help get the system setup, which only needs to be run once per reboot.

—
Regards,
++Keith Wiles

Intel Corporation







On 10/23/15, 2:03 AM, "users on behalf of Vamsi Kommana" <users-bounces@dpdk.org on behalf of Vamsi.Kommana@LntTechservices.com> wrote:

>Hi Team,
>
>I was trying to install DPDK-Pktgen(Pktgen version 2.7.7 using
>DPDK-1.7.1) for testing 10G Ethernet ports using NIC card, with 4
>cores(1: Kernel 1:logs for pktgen 2:for Tx Rx of traffic).
>
>But i was ending up with "*** Did not find any ports to use ***" while I was using the below mentioned command
>
>Command:
>--------
>./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg
>-- -T -P -m "2.0,3.1"
>collected logs are as below...
>
>-----------------------#
> oot@localhost pktgen]#
> BSD LICENSEpktgen]#
> oot@localhost pktgen]#
> Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
> All rights reserved.
> oot@localhost pktgen]#
> Redistribution and use in source and binary forms, with or without
> modification, are permitted provided that the following conditions
> are met:st pktgen]#
> oot@localhost pktgen]#
> * Redistributions of source code must retain the above copyright
> notice, this list of conditions and the following disclaimer.
> * Redistributions in binary form must reproduce the above copyright
> notice, this list of conditions and the following disclaimer in
> the documentation and/or other materials provided with the
> distribution.]#
> * Neither the name of Intel Corporation nor the names of its
> contributors may be used to endorse or promote products derived
> from this software without specific prior written permission.
> oot@localhost pktgen]#
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
> A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
> OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
> SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
> LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
> DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
> THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
> (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
> oot@localhost pktgen]#
>-----------------------# ./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg -- -T -P -m "2.0,3.1"
> Copyright (c) <2010-2014>, Wind River Systems, Inc. All rights reserved.
>
> Redistribution and use in source and binary forms, with or without modification, are
> permitted provided that the following conditions are met:
>
> 1) Redistributions of source code must retain the above copyright notice,
> this list of conditions and the following disclaimer.
>
> 2) Redistributions in binary form must reproduce the above copyright notice,
> this list of conditions and the following disclaimer in the documentation and/or
> other materials provided with the distribution.
>
> 3) Neither the name of Wind River Systems nor the names of its contributors may be
> used to endorse or promote products derived from this software without specific
> prior written permission.
>
> 4) The screens displayed by the application must contain the copyright notice as defined
> above and can not be removed without specific prior written permission.
>
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
> AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
> ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
> LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
> DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
> SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
> OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
> USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>
> Pktgen created by: Keith Wiles -- >>> Powered by Intel® DPDK <<<
>-----------------------
>EAL: Detected lcore 0 as core 0 on socket 0
>EAL: Detected lcore 1 as core 1 on socket 0
>EAL: Detected lcore 2 as core 0 on socket 0
>EAL: Detected lcore 3 as core 1 on socket 0
>EAL: Support maximum 64 logical core(s) by configuration.
>EAL: Detected 4 lcore(s)
>EAL: Auto-detected process type: PRIMARY
>EAL: cannot open VFIO container, error 2 (No such file or directory)
>EAL: VFIO support could not be initialized
>EAL: Setting up memory...
>EAL: Ask a virtual area of 0x800000 bytes
>EAL: Virtual area found at 0x7f071ca00000 (size = 0x800000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f071c600000 (size = 0x200000)
>EAL: Ask a virtual area of 0x49800000 bytes
>EAL: Virtual area found at 0x7f06d2c00000 (size = 0x49800000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f06d2800000 (size = 0x200000)
>EAL: Ask a virtual area of 0x35400000 bytes
>EAL: Virtual area found at 0x7f069d200000 (size = 0x35400000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069ce00000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069ca00000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069c600000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069c200000 (size = 0x200000)
>EAL: Requesting 256 pages of size 2MB from socket 0
>EAL: TSC frequency is ~3092981 KHz
>EAL: Master core 2 is ready (tid=1d745880)
>EAL: Core 3 is ready (tid=1bdfe700)
>EAL: PCI device 0000:01:00.0 on NUMA socket -1
>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>EAL: 0000:01:00.0 not managed by UIO driver, skipping
>EAL: PCI device 0000:01:00.1 on NUMA socket -1
>EAL: probe driver: 8086:1528 rte_ixgbe_pmd
>EAL: 0000:01:00.1 not managed by UIO driver, skipping
>2.0 = lcores(rx 0000000000000004, tx 0000000000000004) ports(rx 0000000000000001, tx 0000000000000001)
>3.1 = lcores(rx 0000000000000008, tx 0000000000000008) ports(rx 0000000000000002, tx 0000000000000002)
>!
>!
>!
>Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
>>>> Packet Burst 32, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf cache 512
>!PANIC!: *** Did not find any ports to use ***
>PANIC in pktgen_config_ports():
>*** Did not find any ports to use ***6: [./app/build/pktgen() [0x422c25]]
>5: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x3b37821d65]]
>4: [./app/build/pktgen(main+0x463) [0x4226f3]]
>3: [./app/build/pktgen(pktgen_config_ports+0xf71) [0x439111]]
>2: [./app/build/pktgen(__rte_panic+0xc9) [0x42210f]]
>1: [./app/build/pktgen(rte_dump_stack+0x18) [0x4b58b8]]
>Aborted (core dumped)
>[root@localhost pktgen]#
>[root@localhost pktgen]#
>
>On googling i found the issues might be due to binding and when i tried the below steps i was ending up with binding failed and logs are as below
>
>[root@localhost tools]# ./dpdk_nic_bind.py --status
>
>Network devices using DPDK-compatible driver
>============================================
><none>
>
>Network devices using kernel driver
>===================================
>0000:00:19.0 '82579LM Gigabit Network Connection' if=em1 drv=e1000e unused=igb_uio
>0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p1 drv=ixgbe unused=igb_uio
>0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p2 drv=ixgbe unused=igb_uio
>0000:02:00.0 'VT6105/VT6106S [Rhine-III]' if=p33p1 drv=via-rhine unused=igb_uio *Active*
>
>Other network devices
>=====================
><none>
>[root@localhost tools]# ./dpdk_nic_bind.py -bind=igb_uio p1p2
>Error: bind failed for 0000:01:00.1 - Cannot open /sys/bus/pci/drivers/ind=igb_uio/bind
>Error: unbind failed for 0000:01:00.1 - Cannot open /sys/bus/pci/drivers//unbind
>[root@localhost tools]#
>[root@localhost tools]#
>
>Please let me know if i miss any...
>
>Thanks in advance.
>Kommana
>
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DPDK-PKTGEN_Stats.png
Type: image/png
Size: 98635 bytes
Desc: DPDK-PKTGEN_Stats.png
URL: <http://dpdk.org/ml/archives/users/attachments/20151027/f9930b56/attachment.png>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use
@ 2015-10-23 14:42 Wiles, Keith
  2015-10-27  5:05 ` Vamsi Kommana
  0 siblings, 1 reply; 9+ messages in thread
From: Wiles, Keith @ 2015-10-23 14:42 UTC (permalink / raw)
  To: Vamsi Kommana, users

It appears you did not add ports to the UIO module. The dpdk_nic_bind.py shows no ports attached to the UIO module, you need to use the dpdk_nic_bind.py to add them . Look at the setup.sh script and adjust it to help get the system setup, which only needs to be run once per reboot.

— 
Regards,
++Keith Wiles

Intel Corporation







On 10/23/15, 2:03 AM, "users on behalf of Vamsi Kommana" <users-bounces@dpdk.org on behalf of Vamsi.Kommana@LntTechservices.com> wrote:

>Hi Team,
>
>I was trying to install DPDK-Pktgen(Pktgen version 2.7.7 using
>DPDK-1.7.1) for testing 10G Ethernet ports using NIC card, with 4
>cores(1: Kernel 1:logs for pktgen 2:for Tx Rx of traffic).
>
>But i was ending up with "*** Did not find any ports to use ***" while I was using the below mentioned command
>
>Command:
>--------
>./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg
>-- -T -P -m "2.0,3.1"
>collected logs are as below...
>
>-----------------------#
>  oot@localhost pktgen]#
>     BSD LICENSEpktgen]#
>  oot@localhost pktgen]#
>     Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
>     All rights reserved.
>  oot@localhost pktgen]#
>     Redistribution and use in source and binary forms, with or without
>     modification, are permitted provided that the following conditions
>     are met:st pktgen]#
>  oot@localhost pktgen]#
>       * Redistributions of source code must retain the above copyright
>         notice, this list of conditions and the following disclaimer.
>       * Redistributions in binary form must reproduce the above copyright
>         notice, this list of conditions and the following disclaimer in
>         the documentation and/or other materials provided with the
>         distribution.]#
>       * Neither the name of Intel Corporation nor the names of its
>         contributors may be used to endorse or promote products derived
>         from this software without specific prior written permission.
>  oot@localhost pktgen]#
>     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
>     "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
>     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
>     A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
>     OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
>     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
>     LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
>     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
>     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
>     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
>     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>  oot@localhost pktgen]#
>-----------------------# ./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg -- -T -P -m "2.0,3.1"
>    Copyright (c) <2010-2014>, Wind River Systems, Inc. All rights reserved.
>
>     Redistribution and use in source and binary forms, with or without modification, are
>     permitted provided that the following conditions are met:
>
>       1) Redistributions of source code must retain the above copyright notice,
>          this list of conditions and the following disclaimer.
>
>       2) Redistributions in binary form must reproduce the above copyright notice,
>          this list of conditions and the following disclaimer in the documentation and/or
>          other materials provided with the distribution.
>
>       3) Neither the name of Wind River Systems nor the names of its contributors may be
>          used to endorse or promote products derived from this software without specific
>          prior written permission.
>
>       4) The screens displayed by the application must contain the copyright notice as defined
>          above and can not be removed without specific prior written permission.
>
>     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
>     AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
>     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
>     ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
>     LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
>     DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
>     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
>     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
>     OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
>     USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>
>  Pktgen created by: Keith Wiles -- >>> Powered by Intel® DPDK <<<
>-----------------------
>EAL: Detected lcore 0 as core 0 on socket 0
>EAL: Detected lcore 1 as core 1 on socket 0
>EAL: Detected lcore 2 as core 0 on socket 0
>EAL: Detected lcore 3 as core 1 on socket 0
>EAL: Support maximum 64 logical core(s) by configuration.
>EAL: Detected 4 lcore(s)
>EAL: Auto-detected process type: PRIMARY
>EAL:   cannot open VFIO container, error 2 (No such file or directory)
>EAL: VFIO support could not be initialized
>EAL: Setting up memory...
>EAL: Ask a virtual area of 0x800000 bytes
>EAL: Virtual area found at 0x7f071ca00000 (size = 0x800000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f071c600000 (size = 0x200000)
>EAL: Ask a virtual area of 0x49800000 bytes
>EAL: Virtual area found at 0x7f06d2c00000 (size = 0x49800000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f06d2800000 (size = 0x200000)
>EAL: Ask a virtual area of 0x35400000 bytes
>EAL: Virtual area found at 0x7f069d200000 (size = 0x35400000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069ce00000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069ca00000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069c600000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f069c200000 (size = 0x200000)
>EAL: Requesting 256 pages of size 2MB from socket 0
>EAL: TSC frequency is ~3092981 KHz
>EAL: Master core 2 is ready (tid=1d745880)
>EAL: Core 3 is ready (tid=1bdfe700)
>EAL: PCI device 0000:01:00.0 on NUMA socket -1
>EAL:   probe driver: 8086:1528 rte_ixgbe_pmd
>EAL:   0000:01:00.0 not managed by UIO driver, skipping
>EAL: PCI device 0000:01:00.1 on NUMA socket -1
>EAL:   probe driver: 8086:1528 rte_ixgbe_pmd
>EAL:   0000:01:00.1 not managed by UIO driver, skipping
>2.0              = lcores(rx 0000000000000004, tx 0000000000000004) ports(rx 0000000000000001, tx 0000000000000001)
>3.1              = lcores(rx 0000000000000008, tx 0000000000000008) ports(rx 0000000000000002, tx 0000000000000002)
>!
>!
>!
>Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio
>>>> Packet Burst 32, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf cache 512
>!PANIC!: *** Did not find any ports to use ***
>PANIC in pktgen_config_ports():
>*** Did not find any ports to use ***6: [./app/build/pktgen() [0x422c25]]
>5: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x3b37821d65]]
>4: [./app/build/pktgen(main+0x463) [0x4226f3]]
>3: [./app/build/pktgen(pktgen_config_ports+0xf71) [0x439111]]
>2: [./app/build/pktgen(__rte_panic+0xc9) [0x42210f]]
>1: [./app/build/pktgen(rte_dump_stack+0x18) [0x4b58b8]]
>Aborted (core dumped)
>[root@localhost pktgen]#
>[root@localhost pktgen]#
>
>On googling i found the issues might be due to binding and when i tried the below steps i was ending up with binding failed and logs are as below
>
>[root@localhost tools]# ./dpdk_nic_bind.py --status
>
>Network devices using DPDK-compatible driver
>============================================
><none>
>
>Network devices using kernel driver
>===================================
>0000:00:19.0 '82579LM Gigabit Network Connection' if=em1 drv=e1000e unused=igb_uio
>0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p1 drv=ixgbe unused=igb_uio
>0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p2 drv=ixgbe unused=igb_uio
>0000:02:00.0 'VT6105/VT6106S [Rhine-III]' if=p33p1 drv=via-rhine unused=igb_uio *Active*
>
>Other network devices
>=====================
><none>
>[root@localhost tools]# ./dpdk_nic_bind.py -bind=igb_uio p1p2
>Error: bind failed for 0000:01:00.1 - Cannot open /sys/bus/pci/drivers/ind=igb_uio/bind
>Error: unbind failed for 0000:01:00.1 - Cannot open /sys/bus/pci/drivers//unbind
>[root@localhost tools]#
>[root@localhost tools]#
>
>Please let me know if i miss any...
>
>Thanks in advance.
>Kommana
>
>L&T Technology Services Ltd
>
>www.LntTechservices.com<http://www.lnttechservices.com/>
>
>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-28 14:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23  7:03 [dpdk-users] DPDK-PKTGEN- Did not find any ports to use Vamsi Kommana
2015-10-23 10:43 ` Mcnamara, John
2015-10-23 12:28   ` Vamsi Kommana
2015-10-23 14:42 Wiles, Keith
2015-10-27  5:05 ` Vamsi Kommana
2015-10-27 11:46   ` Vamsi Kommana
2015-10-27 14:37     ` Wiles, Keith
2015-10-28 12:24       ` Mudit Simlote
2015-10-28 13:59         ` Wiles, Keith

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).