From: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
To: Eric Dumazet <dada1@cosmosbay.com>
Cc: Rick Jones <rick.jones2@hp.com>,
netdev@vger.kernel.org, David Miller <davem@davemloft.net>
Subject: Re: Netperf TCP_RR(loopback) 10% regression in 2.6.24-rc6, comparing with 2.6.22
Date: Tue, 22 Jan 2008 14:52:32 +0800 [thread overview]
Message-ID: <1200984752.3151.261.camel@ymzhang> (raw)
In-Reply-To: <47958CC8.9060609@cosmosbay.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 2221 bytes --]
On Tue, 2008-01-22 at 07:27 +0100, Eric Dumazet wrote:
> Zhang, Yanmin a écrit :
> > On Tue, 2008-01-22 at 13:24 +0800, Zhang, Yanmin wrote:
> >> On Mon, 2008-01-14 at 09:46 -0800, Rick Jones wrote:
> >>>>> *) netperf/netserver support CPU affinity within themselves with the
> >>>>> global -T option to netperf. Is the result with taskset much different?
> >>>>> The equivalent to the above would be to run netperf with:
> >>>>>
> >>>>> ./netperf -T 0,7 ..
> >>>> I checked the source codes and didn't find this option.
> >>>> I use netperf V2.3 (I found the number in the makefile).
> >>> Indeed, that version pre-dates the -T option. If you weren't already
> >>> chasing a regression I'd suggest an upgrade to 2.4.mumble. Once you are
> >>> at a point where changing another variable won't muddle things you may
> >>> want to consider upgrading.
> >>>
> >>> happy benchmarking,
> >> Rick,
> >>
> >> I found my UDP_RR testing is just loop in netperf instead of ping-pang between
> >> netserver and netperf. Is it correct? TCP_RR is ok.
> >>
> >> #./netserver
> >> #./netperf -t UDP_RR -l 60 -H 127.0.0.1 -i 30,3 -I 99,5 -- -P 12384 -r 1,1
> > I digged into netperf and netserver.
> >
> > netperf binds ip 0 and port 12384 to its own socket. netserver binds ip
> > 127.0.0.1 and port 12384 to its own socket. Then, netperf calls connect to setup server
> > 127.0.0.1 and port 12384. Then, netperf starts sends UDP packets, but all packets netperf
> > sends are just received by netperf itself. netserver doesn't receive any packet.
> >
> > I think netperf binding should fail, or netperf shouldn't get the packet it sends out, because
> > netserver already binds port 12384.
> >
> > I am wondering if UDP stack in kernel has a bug.
>
> If :
> - socket A is bound to 0.0.0.0:12384 and
> - socket B is bound to 127.0.0.1:12384
>
> Then packets sent to 127.0.0.1:12384 should be queued for socket B
>
> If they are queued to socket A as you believe it is currently done, then yes
> there is a bug in kernel.
I double-checked it and they are queued to socket A. If I define a different local port
for netperf, packets will be queued to socket B.
-yanmin
next prev parent reply other threads:[~2008-01-22 6:53 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1199871330.3298.132.camel@ymzhang>
2008-01-11 9:30 ` Netperf TCP_RR(loopback) 10% regression in 2.6.24-rc6, comparing with 2.6.22 Zhang, Yanmin
2008-01-11 17:56 ` Rick Jones
2008-01-14 3:11 ` Zhang, Yanmin
2008-01-14 17:46 ` Rick Jones
2008-01-22 5:24 ` Zhang, Yanmin
2008-01-22 6:07 ` Zhang, Yanmin
2008-01-22 6:22 ` David Miller
2008-01-22 6:51 ` Zhang, Yanmin
2008-01-22 7:13 ` Eric Dumazet
2008-01-22 6:27 ` Eric Dumazet
2008-01-22 6:52 ` Zhang, Yanmin [this message]
2008-01-22 7:32 ` David Miller
2008-01-22 18:36 ` Rick Jones
2008-01-23 0:42 ` Zhang, Yanmin
2008-01-23 3:25 ` Zhang, Yanmin
2008-01-14 8:44 ` Ilpo Järvinen
2008-01-14 9:21 ` Ilpo Järvinen
2008-01-14 9:38 ` Zhang, Yanmin
2008-01-14 10:53 ` Herbert Xu
2008-01-16 0:34 ` Zhang, Yanmin
2008-01-16 7:15 ` Zhang, Yanmin
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=1200984752.3151.261.camel@ymzhang \
--to=yanmin_zhang@linux.intel.com \
--cc=dada1@cosmosbay.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=rick.jones2@hp.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).