DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Pktgen performance tricks
@ 2016-06-23 10:33 Marko Niinimaki
  2016-06-23 14:17 ` Wiles, Keith
  0 siblings, 1 reply; 2+ messages in thread
From: Marko Niinimaki @ 2016-06-23 10:33 UTC (permalink / raw)
  To: users

Hi, apologies for such a simple question:
I'm able to send about 4M custom packets by Pktgen using the following
parameters:
pktgen -c 0x3 -n 4 --  -m "1.0"
Hoping to speed up, I added some more cores with
pktgen -c 0x7 -n 4 --  -m "1.0, 2.1"
but this does not really improve the performance. I've been tinkering a
bit, but no great breaktrough. What would be the best approach/parameters?
I'm only interested in TX this time.

Thanks in advance,
Mark

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

* Re: [dpdk-users] Pktgen performance tricks
  2016-06-23 10:33 [dpdk-users] Pktgen performance tricks Marko Niinimaki
@ 2016-06-23 14:17 ` Wiles, Keith
  0 siblings, 0 replies; 2+ messages in thread
From: Wiles, Keith @ 2016-06-23 14:17 UTC (permalink / raw)
  To: Marko Niinimaki, users


On 6/23/16, 12:33 PM, "users on behalf of Marko Niinimaki" <users-bounces@dpdk.org on behalf of manzikki@gmail.com> wrote:

>Hi, apologies for such a simple question:
>I'm able to send about 4M custom packets by Pktgen using the following
>parameters:
>pktgen -c 0x3 -n 4 --  -m "1.0"
>Hoping to speed up, I added some more cores with
>pktgen -c 0x7 -n 4 --  -m "1.0, 2.1"
>but this does not really improve the performance. I've been tinkering a
>bit, but no great breaktrough. What would be the best approach/parameters?
>I'm only interested in TX this time.

Can you tell me more about the system like how many cores maybe run the cpu_layout.py script in the tools directory?
Also the type of NIC being used 1G, 10G or 40G?

Normally the best performance is to split the TX and RX of a single port on to two different physical cores. If you have hyper-threading enabled then make sure the two lcores being used are on the same socket, but two different cores.

Pktgen is able to send close to 10GB 64 byte frames on a single XEON core.

Try pktgen –l 1-3 –n 4 -- -m “[2:3].0” This assume lcore 2 and 3 are on different physical cores on the same socket. Note skipping lcore 0 for Linux and lcore 1 is used for Pktgen display and timers.

If you need two ports pktgen –l 1-5 –n 4 -- -m”[2:3].0, [4:5].1” 

>
>Thanks in advance,
>Mark
>




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

end of thread, other threads:[~2016-06-23 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-23 10:33 [dpdk-users] Pktgen performance tricks Marko Niinimaki
2016-06-23 14:17 ` 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).