From: "juice" <juice@swagman.org>
To: "Eric Dumazet" <eric.dumazet@gmail.com>,
"Loke, Chetan" <chetan.loke@netscout.com>,
"Jon Zhou" <jon.zhou@jdsu.com>,
"Stephen Hemminger" <shemminger@vyatta.com>,
netdev@vger.kernel.org
Subject: RE: Using ethernet device as efficient small packet generator
Date: Fri, 21 Jan 2011 14:12:33 +0200 [thread overview]
Message-ID: <37bfb9ca79c2325ec4b70033f509200a.squirrel@www.liukuma.net> (raw)
In-Reply-To: <1295610709.2601.35.camel@edumazet-laptop>
> Le vendredi 21 janvier 2011 à 13:44 +0200, juice a écrit :
>
>
> You should try
>
> CLONE_SKB="clone_skb 10"
> ...
> pgset "$CLONE_SKB"
>
>
> Because I suspect you hit a performance problem on skb
> allocation/filling/use/freeing
Actually, that makes the performance worse:
(Now I tried it with kernel 2.6.37, which is currently running)
root@d8labralinux:/var/home/juice/pkt_test# cat /proc/net/pktgen/eth1
Params: count 10000000 min_pkt_size: 60 max_pkt_size: 60
frags: 0 delay: 0 clone_skb: 10 ifname: eth1
flows: 0 flowlen: 0
queue_map_min: 0 queue_map_max: 0
dst_min: 10.10.11.2 dst_max:
src_min: src_max:
src_mac: 00:1b:21:7c:e5:b1 dst_mac: 00:04:23:08:91:dc
udp_src_min: 9 udp_src_max: 9 udp_dst_min: 9 udp_dst_max: 9
src_mac_count: 0 dst_mac_count: 0
Flags:
Current:
pkts-sofar: 10000000 errors: 0
started: 2555660074us stopped: 2569239323us idle: 3484us
seq_num: 10000001 cur_dst_mac_offset: 0 cur_src_mac_offset: 0
cur_saddr: 0x0 cur_daddr: 0x20b0a0a
cur_udp_dst: 9 cur_udp_src: 9
cur_queue_map: 0
flows: 0
Result: OK: 13579248(c13575763+d3484) nsec, 10000000 (60byte,0frags)
736417pps 353Mb/sec (353480160bps) errors: 0
> You can use perf tool to get some performance profile while your pktgen
> session is running
>
> # cd tools/perf
> # make
> ...
> # ./perf top
>
I can try that.
Where do I get the performance profiler tool?
Yours, Jussi Ohenoja
next prev parent reply other threads:[~2011-01-21 12:12 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-30 1:11 Using ethernet device as efficient small packet generator Loke, Chetan
2011-01-21 11:44 ` juice
2011-01-21 11:51 ` Eric Dumazet
2011-01-21 12:12 ` juice [this message]
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
-- strict thread matches above, loose matches on Subject: below --
2010-12-23 5:15 juice
2010-12-23 8:57 ` Jon Zhou
2010-12-23 10:50 ` juice
2010-12-22 7:30 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
2010-12-22 17:15 ` Jon Zhou
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=37bfb9ca79c2325ec4b70033f509200a.squirrel@www.liukuma.net \
--to=juice@swagman.org \
--cc=chetan.loke@netscout.com \
--cc=eric.dumazet@gmail.com \
--cc=jon.zhou@jdsu.com \
--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;
as well as URLs for NNTP newsgroup(s).