Hi,

I've tried to change the cpu mask earlier, but that resulted in a core dump. Now I checked that dump more closely, this is the backtrace:

#0 __rte_ring_mp_do_enqueue (behavior=RTE_RING_QUEUE_FIXED, n=1749025281, obj_table=0x7f389f0030c8, r=0x0) at /local/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:412 #1 rte_ring_mp_enqueue_bulk (n=1749025281, obj_table=0x7f389f0030c8, r=0x0) at /local/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:733 #2 __mempool_put_bulk (is_mp=<error reading variable: Cannot access memory at address 0x7f33e1000030>, n=1, obj_table=<synthetic pointer>, mp=0x7f33e1000000)
    at /local/dpdk/x86_64-native-linuxapp-gcc/include/rte_mempool.h:796
#3 rte_mempool_put_bulk (n=1, obj_table=<synthetic pointer>, mp=0x7f33e1000000) at /local/dpdk/x86_64-native-linuxapp-gcc/include/rte_mempool.h:880 #4 rte_mempool_put (obj=0x7f33e11c9140, mp=0x7f33e1000000) at /local/dpdk/x86_64-native-linuxapp-gcc/include/rte_mempool.h:926 #5 __rte_mbuf_raw_free (m=0x7f33e11c9140) at /local/dpdk/x86_64-native-linuxapp-gcc/include/rte_mbuf.h:450 #6 rte_pktmbuf_free_seg (m=<optimised out>) at /local/dpdk/x86_64-native-linuxapp-gcc/include/rte_mbuf.h:739 #7 rte_pktmbuf_free (m=0x7f33e11c9140) at /local/dpdk/x86_64-native-linuxapp-gcc/include/rte_mbuf.h:759 #8 0x000000000043289e in pktgen_main_receive (pkts_burst=0x7f33c33f1920, idx=0 '\000', lid=1 '\001', info=0x7c9618 <pktgen+760>) at /local/pktgen-dpdk/app/pktgen.c:1009 #9 pktgen_main_rxtx_loop (lid=lid@entry=1 '\001') at /local/pktgen-dpdk/app/pktgen.c:1059 #10 0x0000000000432d4f in pktgen_launch_one_lcore (arg=<optimised out>) at /local/pktgen-dpdk/app/pktgen.c:1220
#11 0x00000000004b3c0f in eal_thread_loop ()
#12 0x00007f34465f8182 in ?? ()
#13 0x0000000000000000 in ?? ()


I'll try to figure this out, but if someone knows already what's the problem, let me know.

Zoli

On 17/11/14 18:40, Wiles, Roger Keith wrote:
I just sent you a response, it is a busy day as it is the first day after 
vacation.


Pktgen needs two cores, one for display and timers and the other for packet 
send/receive try:

./app/build/pktgen -c 0x3 -n 4 -w 01:00.0 — -m “1.0”

lcore 0 will be used for display/timers and lcore 1 will be used for Rx/TX of 
packets.

Give that a try and let me know.

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 2 on socket 0
EAL: Detected lcore 3 as core 3 on socket 0
[...]
EAL: Requesting 1024 pages of size 2MB from socket 0
EAL: TSC frequency is ~3192616 KHz
EAL: Master core 1 is ready (tid=d405a880)
EAL: PCI device 0000:01:00.0 on NUMA socket -1
EAL:   probe driver: 8086:1521 rte_igb_pmd
EAL:   PCI memory mapped at 0x7f2dd3f24000
EAL:   PCI memory mapped at 0x7f2dd406a000
1.0              = lcores(rx 0000000000000002, tx 0000000000000002) ports(rx 
0000000000000001, tx 0000000000000001)
[...]
Packet Burst 16, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf cache 512

=== port to lcore mapping table (# lcores 1) ===
  lcore:     1
port   0:  D: T =  1: 1
Total   :  1: 1
   Display and Timer on lcore 1, rx:tx counts per port/lcore

Configuring 1 ports, MBUF Size 1984, MBUF Cache Size 512
Lcore:
   1, type RXTX, rx_cnt  1, tx_cnt  1 private (nil), RX (pid:qid): ( 0: 0) , TX 
(pid:qid): ( 0: 0)

Port :
   0, nb_lcores  1, private 0x7c9618, lcores:  1


Initialize Port 0 -- TxQ 1, RxQ 1,  Src MAC a0:36:9f:39:0b:d6
   Create: Default RX  0:0  - Memory used (MBUFs 4096 x (size 1984 + Hdr 64)) + 
790720 =   8965 KB

   Create: Default TX  0:0  - Memory used (MBUFs 4096 x (size 1984 + Hdr 64)) + 
790720 =   8965 KB
   Create: Range TX    0:0  - Memory used (MBUFs 4096 x (size 1984 + Hdr 64)) + 
790720 =   8965 KB
   Create: Sequence TX 0:0  - Memory used (MBUFs 4096 x (size 1984 + Hdr 64)) + 
790720 =   8965 KB
   Create: Special TX  0:0  - Memory used (MBUFs   64 x (size 1984 + Hdr 64)) + 
790720 =    901 KB
PMD: To improve 1G driver performance, consider setting the TX WTHRESH value to 
4, 8, or 16.

Port memory used =  36757 KB
Total memory used =  36757 KB
Port  0: Link Up - speed 1000 Mbps - full-duplex


=== Display processing on lcore 1
[...]
\ Ports 0-0 of 1   ** Main Page **  Copyright (c) <2010-2014>, Wind River 
Systems, Inc. All rights reserved. Powered by Intel® DPDK
Flags:Port    :   --------------:0
Link State      :       <UP-1000-FD>                          ---TotalRate---
Pkts/s  Rx      :                  0                                        0
       Tx      :                  0                                         0
MBits/s Rx/Tx   :                0/0                                      0/0
Broadcast       :                  0
Multicast       :                  0
64 Bytes      :                  0
65-127        :                  0
128-255       :                  0
256-511       :                  0
512-1023      :                  0
1024-1518     :                  0
Runts/Jumbos    :                0/0
Errors Rx/Tx    :                0/0
Total Rx Pkts   :                  5
     Tx Pkts   :                  0
     Rx MBs    :                  0
     Tx MBs    :                  0
ARP/ICMP Pkts   :                0/0
               :
Tx Count/% Rate :      19531250/100%
PktSize/Tx Burst:              64/16
Src/Dest Port   :          1234/5678
Pkt Type:VLAN ID:      IPv4/UDP:0001
Dst  IP Address :        192.168.0.2
Src  IP Address :     192.168.0.1/24
Dst MAC Address :  12:34:56:78:ab:cd
Src MAC Address :  a0:36:9f:39:0b:d6
-- Pktgen Ver:2.7.5(DPDK-1.7.1) 
-------------------------------------------------------------------------------------
[...]
Pktgen> set 0 count 19531250
Pktgen> set 0 size 64
Pktgen> proto udp 0
Pktgen> set mac 0 12:34:56:78:ab:cd
Pktgen> set ip dst 0 192.168.0.2
Pktgen> start 0
Pktgen> quit

On Nov 17, 2014, at 12:28 PM, Zoltan Kiss <[email protected]> wrote:

Hi,

I've an issue with pktgen DPDK, I wrote to Keith but maybe someone here already 
used it and have a quicker response. I have a feeling I'm making some trivial 
mistake, but couldn't figure it out so far.

Any help appreciated!

Zoltan

-------- Forwarded Message --------
Hi,

I'm trying to set up DPDK pktgen, but it doesn't really send out any
packets. I'm using a 4 core box with a dual port card, one port is given
to DPDK to generate packets. This is just my initial test setup, to see
that I can squash packets out of DPDK. I've already made some
modifications in pktgen_get_link_status, as my card needs more kicking
to wake up (it tries now 50 times in every 100 ms, instead of 3 times in
every second). After starting I'm issuing these commands, but no packet
seems to come out (based on the displayed counters, but I've checked on
the other end with tcpdump):

set 0 count 19531250
set 0 size 64
proto udp 0
set mac 0 12:34:56:78:ab:cd
set ip dst 0 192.168.0.2
start 0

Everything seems fine, but I have a feeling that I'm missing something
trivial here. Btw. the l2fwd app works fine with the same port, and it
seems to receive the traffic the other ends sends, just TX has a problem.

Regards,

Zoltan Kiss

P.S.: Let me put here some log excerpts to show what I'm exactly doing:

root@dpdktest1:/local/dpdk# tools/dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver
============================================
0000:01:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused=

root@dpdktest1:/local/pktgen-dpdk# ./app/build/pktgen -c 0x2 -n 4 -w
01:00.0 -- -m "1.0"

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 2 on socket 0
EAL: Detected lcore 3 as core 3 on socket 0
[...]
EAL: Requesting 1024 pages of size 2MB from socket 0
EAL: TSC frequency is ~3192616 KHz
EAL: Master core 1 is ready (tid=d405a880)
EAL: PCI device 0000:01:00.0 on NUMA socket -1
EAL:   probe driver: 8086:1521 rte_igb_pmd
EAL:   PCI memory mapped at 0x7f2dd3f24000
EAL:   PCI memory mapped at 0x7f2dd406a000
1.0              = lcores(rx 0000000000000002, tx 0000000000000002)
ports(rx 0000000000000001, tx 0000000000000001)
[...]
Packet Burst 16, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf
cache 512

=== port to lcore mapping table (# lcores 1) ===
   lcore:     1
port   0:  D: T =  1: 1
Total   :  1: 1
    Display and Timer on lcore 1, rx:tx counts per port/lcore

Configuring 1 ports, MBUF Size 1984, MBUF Cache Size 512
Lcore:
    1, type RXTX, rx_cnt  1, tx_cnt  1 private (nil), RX (pid:qid): (
0: 0) , TX (pid:qid): ( 0: 0)

Port :
    0, nb_lcores  1, private 0x7c9618, lcores:  1


Initialize Port 0 -- TxQ 1, RxQ 1,  Src MAC a0:36:9f:39:0b:d6
    Create: Default RX  0:0  - Memory used (MBUFs 4096 x (size 1984 +
Hdr 64)) + 790720 =   8965 KB

    Create: Default TX  0:0  - Memory used (MBUFs 4096 x (size 1984 +
Hdr 64)) + 790720 =   8965 KB
    Create: Range TX    0:0  - Memory used (MBUFs 4096 x (size 1984 +
Hdr 64)) + 790720 =   8965 KB
    Create: Sequence TX 0:0  - Memory used (MBUFs 4096 x (size 1984 +
Hdr 64)) + 790720 =   8965 KB
    Create: Special TX  0:0  - Memory used (MBUFs   64 x (size 1984 +
Hdr 64)) + 790720 =    901 KB
PMD: To improve 1G driver performance, consider setting the TX WTHRESH
value to 4, 8, or 16.


Port memory used =  36757 KB

Total memory used =  36757 KB
Port  0: Link Up - speed 1000 Mbps - full-duplex


=== Display processing on lcore 1
[...]
\ Ports 0-0 of 1   ** Main Page **  Copyright (c) <2010-2014>, Wind
River Systems, Inc. All rights reserved. Powered by Intel® DPDK
  Flags:Port    :   --------------:0
Link State      :       <UP-1000-FD>
                         ---TotalRate---
Pkts/s  Rx      :                  0
                                       0
        Tx      :                  0
                                        0
MBits/s Rx/Tx   :                0/0
                                     0/0
Broadcast       :                  0
Multicast       :                  0
  64 Bytes      :                  0
  65-127        :                  0
  128-255       :                  0
  256-511       :                  0
  512-1023      :                  0
  1024-1518     :                  0
Runts/Jumbos    :                0/0
Errors Rx/Tx    :                0/0
Total Rx Pkts   :                  5
      Tx Pkts   :                  0
      Rx MBs    :                  0
      Tx MBs    :                  0
ARP/ICMP Pkts   :                0/0
                :
Tx Count/% Rate :      19531250/100%
PktSize/Tx Burst:              64/16
Src/Dest Port   :          1234/5678
Pkt Type:VLAN ID:      IPv4/UDP:0001
Dst  IP Address :        192.168.0.2
Src  IP Address :     192.168.0.1/24
Dst MAC Address :  12:34:56:78:ab:cd
Src MAC Address :  a0:36:9f:39:0b:d6
-- Pktgen Ver:2.7.5(DPDK-1.7.1)
-------------------------------------------------------------------------------------
[...]
Pktgen> set 0 count 19531250
Pktgen> set 0 size 64
Pktgen> proto udp 0
Pktgen> set mac 0 12:34:56:78:ab:cd
Pktgen> set ip dst 0 192.168.0.2
Pktgen> start 0
Pktgen> quit



_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Keith Wiles, Principal Technologist with CTO office, Wind River mobile 
972-213-5533


_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to