DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Pktgen-DPDK rate and traffic inconsistency problem
@ 2015-01-27 19:30 Alexandre Frigon
  2015-01-28 14:14 ` Wodkowski, PawelX
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Frigon @ 2015-01-27 19:30 UTC (permalink / raw)
  To: dev

Hi all, 

 I'm using dpdk 1.8 and pktgen-dpdk 2.8 to generate traffic on a back-to-back setup both equipped with 82599EB 10-Gigabit NIC. 
The problem is when I start it, pktgen indicates 10000Mbits/s Tx with 64B packet size,  but I'm receiving  about 15% of it on the other end. 
This percentage seems to be proportional with the packet size.

e.g. 
Using nload to read Rx traffic
Pktgen:	Tx: 10000Mbits/s	==>	Other end: 	Rx 1660 Mbits/s
		Rate: 100%		
		Pkt size: 64B		


e.g 2
Pktgen:	Tx: 10000Mbits/s	==>	Other end: 	Rx 9385 Mbits/s
		Rate: 100%
		Pkt size: 1518B


Pktgen is started with this command on a Xeon(R) CPU E31270 @ 3.40GHz
./app/pktgen -c 1f -n 3 --proc-type auto --socket-mem 1024 --file-prefix pg -- -p 0x3 -P  -N -m "[1:3].0, [2:4].1"

Is there something I'm not configuring correctly or something I have miss?

Also, the % rate is  acting strangely since anything above 50% doesn't change the Tx rate and anything below is modifying it
e.g  	Tx:	 10000Mbits/s		5000Mbits/s
	%Rate: 	>=50%			25%
 			

Thanks
Alexandre F.

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

* Re: [dpdk-dev] Pktgen-DPDK rate and traffic inconsistency problem
  2015-01-27 19:30 [dpdk-dev] Pktgen-DPDK rate and traffic inconsistency problem Alexandre Frigon
@ 2015-01-28 14:14 ` Wodkowski, PawelX
  2015-01-28 16:20   ` Alexandre Frigon
  0 siblings, 1 reply; 3+ messages in thread
From: Wodkowski, PawelX @ 2015-01-28 14:14 UTC (permalink / raw)
  To: Alexandre Frigon, dev, keith.wiles

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Alexandre Frigon
> Sent: Tuesday, January 27, 2015 8:31 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Pktgen-DPDK rate and traffic inconsistency problem
> 
> Hi all,
> 
>  I'm using dpdk 1.8 and pktgen-dpdk 2.8 to generate traffic on a back-to-back
> setup both equipped with 82599EB 10-Gigabit NIC.
> The problem is when I start it, pktgen indicates 10000Mbits/s Tx with 64B packet
> size,  but I'm receiving  about 15% of it on the other end.
> This percentage seems to be proportional with the packet size.
> 
> e.g.
> Using nload to read Rx traffic
> Pktgen:	Tx: 10000Mbits/s	==>	Other end: 	Rx 1660 Mbits/s
> 		Rate: 100%
> 		Pkt size: 64B
> 
> 
> e.g 2
> Pktgen:	Tx: 10000Mbits/s	==>	Other end: 	Rx 9385 Mbits/s
> 		Rate: 100%
> 		Pkt size: 1518B
> 
> 
> Pktgen is started with this command on a Xeon(R) CPU E31270 @ 3.40GHz
> ./app/pktgen -c 1f -n 3 --proc-type auto --socket-mem 1024 --file-prefix pg -- -p
> 0x3 -P  -N -m "[1:3].0, [2:4].1"

>From past experience I don't assign more than 1 core per port. It had some
race conditions issues and one core I capable to RX or TX full 10G.
Also check if you assign proper cores/memory for your NICs (the same
NUMA node).

> 
> Is there something I'm not configuring correctly or something I have miss?
> 
> Also, the % rate is  acting strangely since anything above 50% doesn't change
> the Tx rate and anything below is modifying it
> e.g  	Tx:	 10000Mbits/s		5000Mbits/s
> 	%Rate: 	>=50%			25%
> 
> 

Actually I am getting exactly opposite results :)
If I set rate to 50% I get
MBits/s Rx/Tx   :             0/9942             9942/0          9942/9942

For 10%:
MBits/s Rx/Tx   :             0/1997             1997/0          1997/1997

Which is about 2x  set :D

Additionaly I am getting message when "start 0" -> "stop 0" -> "start 0" is issued
PMD: ixgbe_dev_rx_init(): forcing scatter mode

So there is definitely something wrong there but don't know where.
Another issue I encountered is build system that fail when building out-of-tree.

Till this is fixed you can try version 2.7.1 that is working for me.

Pawel

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

* Re: [dpdk-dev] Pktgen-DPDK rate and traffic inconsistency problem
  2015-01-28 14:14 ` Wodkowski, PawelX
@ 2015-01-28 16:20   ` Alexandre Frigon
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Frigon @ 2015-01-28 16:20 UTC (permalink / raw)
  To: Wodkowski, PawelX, dev, keith.wiles

Hi Pawel,
Thanks for your reply.

Sadly, assigning 1 core per port didn't change anything.

As for the NUMA nodes, If I understand correctly there is a node for each socket and I'm only using 1 socket with 4 cores and lscpu is showing me only 1 node. I don't think I can do anything about that. Correct me if I'm wrong on this one.

I'm definitely going to try a older version and see if it works properly.

Thanks for your help
Alexandre F.

> -----Original Message-----
> From: Wodkowski, PawelX [mailto:pawelx.wodkowski@intel.com]
> Sent: Wednesday, January 28, 2015 9:15 AM
> To: Alexandre Frigon; dev@dpdk.org; keith.wiles@windriver.com
> Subject: RE: Pktgen-DPDK rate and traffic inconsistency problem
> 
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Alexandre Frigon
> > Sent: Tuesday, January 27, 2015 8:31 PM
> > To: dev@dpdk.org
> > Subject: [dpdk-dev] Pktgen-DPDK rate and traffic inconsistency problem
> >
> > Hi all,
> >
> >  I'm using dpdk 1.8 and pktgen-dpdk 2.8 to generate traffic on a
> > back-to-back setup both equipped with 82599EB 10-Gigabit NIC.
> > The problem is when I start it, pktgen indicates 10000Mbits/s Tx with
> > 64B packet size,  but I'm receiving  about 15% of it on the other end.
> > This percentage seems to be proportional with the packet size.
> >
> > e.g.
> > Using nload to read Rx traffic
> > Pktgen:	Tx: 10000Mbits/s	==>	Other end: 	Rx 1660
> Mbits/s
> > 		Rate: 100%
> > 		Pkt size: 64B
> >
> >
> > e.g 2
> > Pktgen:	Tx: 10000Mbits/s	==>	Other end: 	Rx 9385
> Mbits/s
> > 		Rate: 100%
> > 		Pkt size: 1518B
> >
> >
> > Pktgen is started with this command on a Xeon(R) CPU E31270 @ 3.40GHz
> > ./app/pktgen -c 1f -n 3 --proc-type auto --socket-mem 1024
> > --file-prefix pg -- -p
> > 0x3 -P  -N -m "[1:3].0, [2:4].1"
> 
> From past experience I don't assign more than 1 core per port. It had some
> race conditions issues and one core I capable to RX or TX full 10G.
> Also check if you assign proper cores/memory for your NICs (the same
> NUMA node).
> 
> >
> > Is there something I'm not configuring correctly or something I have miss?
> >
> > Also, the % rate is  acting strangely since anything above 50% doesn't
> > change the Tx rate and anything below is modifying it
> > e.g  	Tx:	 10000Mbits/s		5000Mbits/s
> > 	%Rate: 	>=50%			25%
> >
> >
> 
> Actually I am getting exactly opposite results :) If I set rate to 50% I get
> MBits/s Rx/Tx   :             0/9942             9942/0          9942/9942
> 
> For 10%:
> MBits/s Rx/Tx   :             0/1997             1997/0          1997/1997
> 
> Which is about 2x  set :D
> 
> Additionaly I am getting message when "start 0" -> "stop 0" -> "start 0" is
> issued
> PMD: ixgbe_dev_rx_init(): forcing scatter mode
> 
> So there is definitely something wrong there but don't know where.
> Another issue I encountered is build system that fail when building out-of-
> tree.
> 
> Till this is fixed you can try version 2.7.1 that is working for me.
> 
> Pawel

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

end of thread, other threads:[~2015-01-28 16:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 19:30 [dpdk-dev] Pktgen-DPDK rate and traffic inconsistency problem Alexandre Frigon
2015-01-28 14:14 ` Wodkowski, PawelX
2015-01-28 16:20   ` Alexandre Frigon

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