From: Eric Dumazet <eric.dumazet@gmail.com>
To: Robert Olsson <robert@herjulf.net>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org, olofh@kth.se
Subject: Re: [PATCH] pktgen node allocation
Date: Mon, 22 Mar 2010 08:43:14 +0100 [thread overview]
Message-ID: <1269243794.3029.0.camel@edumazet-laptop> (raw)
In-Reply-To: <19367.3346.643084.604021@gargle.gargle.HOWL>
Le lundi 22 mars 2010 à 07:24 +0100, Robert Olsson a écrit :
> Eric Dumazet writes:
>
> > Well, you said "Tested this with 10 Intel 82599 ports w. TYAN S7025
> > E5520 CPU's. Was able to TX/DMA ~80 Gbit/s to Ethernet wires."
> >
> > I am interested to know what particular setup you did to maximize
> > throughput then, or are you saing you managed to reduce it ? :)
>
>
> Some notes from the experiment, It's getting
> complex and hairy. Anyway results from the first
> tests to give you an idea... My colleague Olof
> might have some comments/details
>
> pktgen sending on 10 * 10g interfaces.
>
> [From pktgen script]
> fn()
> {
> i=$1 #ifname
> c=$2 #queue / cpu core
> n=$3 # numa node
> PGDEV=/proc/net/pktgen/kpktgend_$c
> pgset "add_device eth$i@$c "
> PGDEV=/proc/net/pktgen/eth$i@$c
> pgset "node $n"
> pgset "$COUNT"
> pgset "flag NODE_ALLOC"
> pgset "$CLONE_SKB"
> pgset "$PKT_SIZE"
> pgset "$DELAY"
> pgset "dst 10.0.0.0"
> }
>
> remove_all
> # Setup
>
> # TYAN S7025 with two nodes.
> # Each node has own bus with it's own TYLERSBURG bridge
> # so eth0-eth3 is closest to node0 which in turn "owns"
> # CPU-cores 0-3 in this HW setup. So we setup so
> # pktgen according to this. clone_skb=1000000.
> # Used slots are PCIe-x16 except when PCIe-x8 is indicated.
>
> # eth0 queue=0(CPU) node=0
> fn 0 0 0
> fn 1 1 0
> fn 2 2 0
> fn 3 3 0
> fn 4 4 1
> fn 5 5 1
> fn 6 6 1
> fn 7 7 1
> fn 8 12 1
> fn 9 13 1
>
> Result "manually" tuned.
>
> eth0 9617.7 M bit/s 822 k pps
> eth1 9619.1 M bit/s 823 k pps
> eth2 9619.1 M bit/s 823 k pps
> eth3 9619.2 M bit/s 823 k pps
> eth4 5995.2 M bit/s 512 k pps <- PCIe-x8
> eth5 5995.3 M bit/s 512 k pps <- PCIe-x8
> eth6 9619.2 M bit/s 823 k pps
> eth7 9619.2 M bit/s 823 k pps
> eth8 9619.1 M bit/s 823 k pps
> eth9 9619.0 M bit/s 823 k pps
>
> > 90 Gbit/s
>
> Result "manually" mistuned by switching node 0 and 1.
>
> eth0 9613.6 M bit/s 822 k pps
> eth1 9614.9 M bit/s 822 k pps
> eth2 9615.0 M bit/s 822 k pps
> eth3 9615.1 M bit/s 822 k pps
> eth4 2918.5 M bit/s 249 k pps <- PCIe-x8
> eth5 2918.4 M bit/s 249 k pps <- PCIe-x8
> eth6 8597.0 M bit/s 735 k pps
> eth7 8597.0 M bit/s 735 k pps
> eth8 8568.3 M bit/s 733 k pps
> eth9 8568.3 M bit/s 733 k pps
>
> A lot things is to be investgated...
Sure :)
I wonder why eth0-eth3 results are unchanged after a node flip.
Thanks for sharing
next prev parent reply other threads:[~2010-03-22 7:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 8:44 [PATCH] pktgen node allocation Robert Olsson
2010-03-19 9:28 ` Eric Dumazet
2010-03-19 13:35 ` robert
2010-03-19 13:47 ` Eric Dumazet
2010-03-22 6:24 ` Robert Olsson
2010-03-22 7:43 ` Eric Dumazet [this message]
2010-03-22 18:05 ` Robert Olsson
2010-03-22 3:37 ` David Miller
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=1269243794.3029.0.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=olofh@kth.se \
--cc=robert@herjulf.net \
/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