DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jan Viktorin <viktorin@rehivetech.com>
To: dev@dpdk.org
Subject: [dpdk-dev] lost when learning how to test dpdk
Date: Tue, 28 Jul 2015 20:13:36 +0200	[thread overview]
Message-ID: <20150728201336.43239fd0@pcviktorin.fit.vutbr.cz> (raw)

Hello all,

I am learning how to measure throughput with dpdk. I have 4 cores
Intel(R) Core(TM) i3-4360 CPU @ 3.70GHz and two 82545GM NICs connected
together. I do not understand very well, how to setup testpmd.

I've successfully bound the NICs to dpdk:

$ dpdk_nic_bind --status

Network devices using DPDK-compatible driver
============================================
0000:03:00.0 '82545GM Gigabit Ethernet Controller' drv=uio_pci_generic unused=e1000
0000:03:02.0 '82545GM Gigabit Ethernet Controller' drv=uio_pci_generic unused=e1000

Network devices using kernel driver
===================================
0000:00:19.0 'Ethernet Connection I217-V' if=eno1 drv=e1000e unused=uio_pci_generic *Active*

Other network devices
=====================
<none>

and then I tried to run testpmd:

sudo ./testpmd -b 0000:03:00.0 -b 0000:03:02.0 -c 0xf -n2 -- --nb-cores=1 --nb-ports=0 --rxd=2048 --txd=2048 --mbcache=512 --burst=512
...
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f1549800000 (size = 0x400000)
EAL: Requesting 1024 pages of size 2MB from socket 0
EAL: TSC frequency is ~3699999 KHz
EAL: Master lcore 0 is ready (tid=de94a8c0;cpuset=[0])
EAL: lcore 2 is ready (tid=487fd700;cpuset=[2])
EAL: lcore 3 is ready (tid=47ffc700;cpuset=[3])
EAL: lcore 1 is ready (tid=48ffe700;cpuset=[1])
EAL: No probed ethernet devices
EAL: Error - exiting with code: 1
  Cause: Invalid port 0

I tried --nb-ports={0,1,2} but neither of them works. BTW, what does this option it mean? :)
I could not find any description in the docs nor in the help (maybe I've omitted something).


Well, if I manage the testpmd to work I need a packet generator, right? I've downloaded
the dpdk-pktgen. And I am lost again. How can I start it?

After several attempts (mostly trying to use the pktgen-master/slave.sh, what is
their purpose?), the most "successful" output was:

...
EAL: Detected lcore 0 as core 0 on socket 03 handles port 1 rx & core 4 handles port 0-7 tx
EAL: Detected lcore 1 as core 1 on socket 0 as it does not matter to the syntax.
EAL: Detected lcore 2 as core 0 on socket 0
EAL: Detected lcore 3 as core 1 on socket 0p/app/x86_64-native-linuxapp-gcc (master *%=)
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 4 lcore(s)
EAL: No free hugepages reported in hugepages-2048kB
PANIC in rte_eal_init():
Cannot get hugepage information
6: [./pktgen(_start+0x29) [0x41abc9]]
5: [/usr/lib/libc.so.6(__libc_start_main+0xf0) [0x7f93eadcc790]]
4: [./pktgen(main+0x140) [0x419d80]]
3: [./pktgen(rte_eal_init+0xd2b) [0x4bb8bb]]
2: [./pktgen(__rte_panic+0xc9) [0x419ae5]]
1: [./pktgen(rte_dump_stack+0x16) [0x4c3946]]
Aborted (core dumped)

I'd like to run a simple scenario, just sending packets from one NIC to the other (or
something similar) and measure the throughput. Could you please help me?

Regards
Jan Viktorin

-- 
   Jan Viktorin                  E-mail: Viktorin@RehiveTech.com
   System Architect              Web:    www.RehiveTech.com
   RehiveTech
   Brno, Czech Republic

             reply	other threads:[~2015-07-28 18:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28 18:13 Jan Viktorin [this message]
2015-07-29  9:09 ` ciprian.barbu
2015-07-30 12:03   ` Jan Viktorin
2015-07-30 14:44     ` Ravi Kerur
2015-07-30 15:22       ` Jan Viktorin
2015-07-30 15:41         ` Ravi Kerur
2015-07-30 16:19           ` Jan Viktorin
2015-07-30 17:06             ` Ravi Kerur
2015-07-30 17:10               ` Ravi Kerur
2015-07-30 17:29               ` Jan Viktorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150728201336.43239fd0@pcviktorin.fit.vutbr.cz \
    --to=viktorin@rehivetech.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).