From: Ben Greear <greearb@candelatech.com>
To: Luke Hutchison <luke.hutch@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: Networking hangs when too many parallel requests are made at once
Date: Tue, 09 Nov 2010 14:49:19 -0800 [thread overview]
Message-ID: <4CD9CFEF.5090009@candelatech.com> (raw)
In-Reply-To: <AANLkTi=LGx2mbYT5gRMV0izg5=KY7pCKOuXnwPRNQDMK@mail.gmail.com>
On 11/09/2010 02:38 PM, Luke Hutchison wrote:
> On Tue, Nov 9, 2010 at 5:29 PM, Ben Greear<greearb@candelatech.com> wrote:
>> If you get all names resolved with your caching name-server, can you then
>> open the browser tabs w/out problem?
>
> This is hard to test, because to get all the same domain names
> resolved for all resources on all pages, I have to successfully open
> all the pages once first. Even opening the pages a few seconds apart
> seems to break things quite frequently. And there is a period where
> the connection starts acting up but is not hard locked up, and it's
> hard to know at that point if it's the connection or the individual
> website. The only way I can think of of reliably triggering this 100%
> of the time is to open a bunch of browser tabs all at the same time --
> and that hangs the dns caching server's requests too.
>
>> Have you tried setting all your browser tabs to simple low-bandwidth pages (no ads being
>> served from various hosts, etc) to see if that works?
>
> Not exactly, but I have one browser window with about 20 Wikipedia
> articles open, and not all of them load (some get stalled until they
> time out). I think this serves the same purpose as your suggested
> test, because Wikipedia doesn't draw from many external domains.
>
>> Maybe you are just flooding the network so hard that responses are being
>> dropped?
>
> Yes, but you pointed out earlier that you routinely test with
> thousands of TCP connections, and we're only talking about 20-30
> browser tabs here, maybe a few thousand HTTP requests at most. Also,
> this used to work fine on old Fedora kernels and no longer works with
> more recent kernels.
Well, I'm low on ideas.
For our tests though, we are running across 1G Ethernet most of the time,
so bandwidth is not an issue. Also, we aren't dependent on external DNS for
this type of test.
From looking at your capture, you are not getting DNS responses back
reliably. On the great wild internet, there are lots of reasons why
that might be happening, so without a more controlled test case, I'm
not sure anyone can help you.
It wouldn't be quick, but if you were able to do a git-bisect to figure
out which kernel change affected you, then that might be a start.
If there were a way for you to tune your TCP stack to run slower, that
might help too. Maybe hard limit the max window size to something small like
8k?
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2010-11-09 22:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-09 18:30 Networking hangs when too many parallel requests are made at once Luke Hutchison
2010-11-09 19:04 ` Luke Hutchison
2010-11-09 19:16 ` Ben Greear
2010-11-09 20:27 ` Luke Hutchison
2010-11-09 20:35 ` Ben Greear
2010-11-09 21:17 ` Luke Hutchison
2010-11-09 22:14 ` Ben Greear
2010-11-09 22:20 ` Luke Hutchison
2010-11-09 22:29 ` Ben Greear
2010-11-09 22:38 ` Luke Hutchison
2010-11-09 22:49 ` Ben Greear [this message]
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=4CD9CFEF.5090009@candelatech.com \
--to=greearb@candelatech.com \
--cc=luke.hutch@gmail.com \
--cc=netdev@vger.kernel.org \
/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).