LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Nicolas Cannasse <ncannasse@motion-twin.com>
To: swivel@shells.gnugeneration.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: poll() blocked / packets not received ?
Date: Mon, 20 Oct 2008 12:46:56 +0200 [thread overview]
Message-ID: <48FC61A0.7010003@motion-twin.com> (raw)
In-Reply-To: <20081020101549.GH2811@fc6222126.aspadmin.net>
>> We have Shorewall installed and enabled, but what seems strange is that
>> the problem depends on multithreading. It also occurs much more often on
>> the 4 core machines than on a 2 core ones (both with Hyperthreading
>> activated). We're using kernel 2.6.20-15-server (#2 SMP) provided by Ubuntu.
>>
>> Any tip on we could fix that or investigate further would be
>> appreciated. After one month of debugging we're really out of solution now.
>>
>> Best,
>> Nicolas
>
> Your usage pattern is a very common one, I highly doubt you are experiencing
> a kernel bug here or many people (including myself) would be complaining.
>
> Shorewall sounds like it might be suspect, are FIN's not coming in when the
> remote closes? You can look in the output of netstat to see what state the
> TCP is in, still ESTABLISHED?
Yes, it's still ESTABLISHED, but we can't see the corresponding
connection on the other machine while running netstat. I'm not a TCP
expert, so I'm not sure in which case this can occur.
I agree with your comment in general, except that we have been running
the same application in single-thread environment for years without
running into this very specific problem.
The only logs we get in the dmesg are the following :
either (a few everyday) :
[10742708.006350] TCP: Treason uncloaked! Peer 213.209.177.218:32924/80
shrinks window 4049064122:4049064123. Repaired.
Or (more often) :
[10755036.856217] Shorewall:net2all:DROP:IN=eth0 OUT=
MAC=00:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:00 SRC=60.238.83.204
DST=XX.XX.XX.43 LEN=404 TOS=0x00 PREC=0x00 TTL=114 ID=12366 PROTO=UDP
SPT=1057 DPT=1434 LEN=384
Both SRC/DST IPs does not correspond to the connections that are
stalled, since they occur on the local network.
Best,
Nicolas
next prev parent reply other threads:[~2008-10-20 10:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-20 8:25 Nicolas Cannasse
2008-10-20 10:15 ` swivel
2008-10-20 10:46 ` Nicolas Cannasse [this message]
2008-10-20 11:39 ` swivel
2008-10-20 12:13 ` Nicolas Cannasse
2008-10-20 12:39 ` Nicolas Cannasse
2008-10-20 15:53 ` David Schwartz
2008-10-20 17:24 ` Nicolas Cannasse
2008-10-20 23:21 ` David Schwartz
2008-10-21 5:12 ` Willy Tarreau
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=48FC61A0.7010003@motion-twin.com \
--to=ncannasse@motion-twin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=swivel@shells.gnugeneration.com \
--subject='Re: poll() blocked / packets not received ?' \
/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
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).