public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Jon Zhou <Jon.Zhou@jdsu.com>
Cc: "juice@swagman.org" <juice@swagman.org>,
	Stephen Hemminger <shemminger@vyatta.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: RE: Using ethernet device as efficient small packet generator
Date: Wed, 22 Dec 2010 18:51:11 +0100	[thread overview]
Message-ID: <1293040271.3027.284.camel@edumazet-laptop> (raw)
In-Reply-To: <4A6A2125329CFD4D8CC40C9E8ABCAB9F249D5F3457@MILEXCH2.ds.jdsu.net>

Le mercredi 22 décembre 2010 à 09:40 -0800, Jon Zhou a écrit :
> 
> -----Original Message-----
> From: Eric Dumazet [mailto:eric.dumazet@gmail.com] 
> Sent: Thursday, December 23, 2010 1:18 AM
> To: Jon Zhou
> Cc: juice@swagman.org; Stephen Hemminger; netdev@vger.kernel.org
> Subject: RE: Using ethernet device as efficient small packet generator
> 
> 
> > PGDEV=/proc/net/pktgen/eth4
> 
> You meant :  PGDEV=/proc/net/pktgen/kpktgend_0   ???
> 
> 
> With "PGDEV=/proc/net/pktgen/kpktgend_0", I can't pgset "queue_map_min 0"
> Only able to pgset "queue_map_min 0" with "PGDEV=/proc/net/pktgen/eth4"
> 
> >   echo "Configuring $PGDEV"
> >  pgset "$COUNT"
> >  pgset "$CLONE_SKB"
> >  pgset "$PKT_SIZE"
> >  pgset "$DELAY"
> >  pgset "dst 10.10.11.2" 
> >  pgset "queue_map_min 0"
> >  pgset "queue_map_max 7"
> >  pgset "dst_mac  00:04:23:08:91:dc"
> > 
> > ->it is ok
> > 
> > 
> > Here is the top result, why only kpktgend_0 is running?
> > Eric,can you share the pktgen script? Thank you
> 
> If you want to control several kpktgend you need to send each one of
> them a full pktgen script.
> 
> PGDEV=/proc/net/pktgen/kpktgend_0
> script0
> PGDEV=/proc/net/pktgen/kpktgend_1
> script1
> PGDEV=/proc/net/pktgen/kpktgend_2
> script2
> PGDEV=/proc/net/pktgen/kpktgend_3
> script3
> 
> but these kpktgend can not share the same device?
> i.e.
> I can't add the device again?
> 
> PGDEV=/proc/net/pktgen/kpktgend_1
>  #echo "Removing all devices"
>  #pgset "rem_device_all" 
>  #echo "Adding eth4"
>  pgset "add_device eth4"   
>  pgset "queue_map_min 1"
>  pgset "queue_map_max 1"
> 
> as I saw when pps reach 1M, throughput reach 900Mbps,the kpktgend_0 also reach 100% cpu (with intel 10G X520 nic,ixgbe)
> 
> 

Please quote messages normally

You mix several things, please read :

http://www.spinics.net/lists/netdev/msg71164.html




  reply	other threads:[~2010-12-22 17:51 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-22  7:30 Using ethernet device as efficient small packet generator juice
2010-12-22  8:08 ` Eric Dumazet
2010-12-22 11:11   ` juice
2010-12-22 11:28     ` Eric Dumazet
2010-12-22 15:48   ` Jon Zhou
2010-12-22 15:59     ` Eric Dumazet
2010-12-22 16:52       ` Jon Zhou
2010-12-22 17:18         ` Eric Dumazet
2010-12-22 17:40           ` Jon Zhou
2010-12-22 17:51             ` Eric Dumazet [this message]
2010-12-22 17:15       ` Jon Zhou
  -- strict thread matches above, loose matches on Subject: below --
2010-12-30  1:11 Loke, Chetan
2011-01-21 11:44 ` juice
2011-01-21 11:51   ` Eric Dumazet
2011-01-21 12:12     ` juice
2011-01-21 13:38       ` Ben Greear
2011-01-21 22:09   ` Brandeburg, Jesse
2011-01-23 21:48     ` juice
2011-01-24  8:10       ` juice
2011-01-24  9:18         ` Eric Dumazet
2011-01-24 16:34         ` Eric Dumazet
2011-01-24 20:51           ` juice
2011-02-02  8:13       ` juice
2010-12-23  5:15 juice
2010-12-23  8:57 ` Jon Zhou
2010-12-23 10:50   ` juice
2010-12-21  9:56 juice
2010-12-21 18:22 ` Stephen Hemminger

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=1293040271.3027.284.camel@edumazet-laptop \
    --to=eric.dumazet@gmail.com \
    --cc=Jon.Zhou@jdsu.com \
    --cc=juice@swagman.org \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@vyatta.com \
    /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