netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Dâniel Fraga" <fragabr@gmail.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi>
Cc: David Miller <davem@davemloft.net>,
	thomas.jarosch@intra2net.com, billfink@mindspring.com,
	Netdev <netdev@vger.kernel.org>, Patrick Hardy <kaber@trash.net>,
	netfilter-devel@vger.kernel.org, kadlec@blackhole.kfki.hu
Subject: Re: [PATCH] tcp FRTO: in-order-only "TCP proxy" fragility workaround
Date: Fri, 29 Aug 2008 14:41:50 -0300	[thread overview]
Message-ID: <20080829144150.171ba495@tux> (raw)
In-Reply-To: <Pine.LNX.4.64.0808291045430.7971@wrl-59.cs.helsinki.fi>

On Fri, 29 Aug 2008 16:07:04 +0300 (EEST)
"Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi> wrote:

> Can you check during a "normal" time if the ListenOverflows grows with as 
> considerable rate as during the stall (no need to send that log to me,
> just confirm that it doesn't do that is enough). A little cheat to do that 
> for a logfile (the command I used):
> 
> grep -A1 "ListenOverflows" <log> | cut -d ' ' -f 21-22 | grep [0-9]

	It does not grow:

10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953
10953 10953

	It stays in this value for a long time.

> ...When you use nmap to resolve, is the time always constant or do you run 
> it until the situation resolves?

	The time is constant. It takes just 3 seconds to nmap to
"solve" the problem. I always have to use Ctrl+C to stop nmap before it
completes the scanning because in the first 3 seconds the problem is
"solved".

> There are constantly 9 items in sk_ack_backlog (ie., connections which are 
> not yet accept), those connections are in TCP_CLOSE_WAIT, then there are 
> ~7 connections hanging in SYN_RECV which cannot make progress (all of them 
> from a single address besides two flows of yours in SYN_RECV).
> 
> So I guess that the configured 128 is not related to the number that 
> is given to listen syscall, as it seems to be 9.
> 
> ...Next we need to find out why dovecot is not accept()ing or is doing 
> that dead slow (the client's state is hardly significant, so I guess 
> it's no longer mandatory to collect it every time)...

	Would it be useful if I do the same for port 119? Because inn
(nntp) stalls too. And proftp too. So I'm sure it isn't related to
dovecot, otherwise the other services wouldn't stall too.

> Can you provide these to familiarize myself a bit to the server's 
> environment (no need to wait for the stall):
> 
> ps ax | grep dovecot  (or whatever the process is named)

fraga@teleporto ~$ ps ax|grep dovecot
 2361 ?        Ss     0:13 /usr/local/sbin/dovecot
 2363 ?        S      0:07 dovecot-auth
 4751 ?        S      0:00 dovecot-auth -w
 6133 ?        S      0:00 dovecot-auth -w
 6134 ?        S      0:00 dovecot-auth -w
15963 ?        S      0:00 dovecot-auth -w

	The dovecot-auth I use for postfix too.

> netstat -p -n -l | grep "995"

fraga@teleporto ~$ sudo netstat -p -n -l | grep "995"
Password:
tcp        0      0 0.0.0.0:995             0.0.0.0:*       LISTEN      2361/dovecot        

> But you'll mostly have to resort to strace during the stall, I recommend 
> trying to trace just part of the syscalls, eg at least these:
> 
> strace -e trace=accept,listen,close,shutdown,select
> 
> ...as it would probably not be wise to make a full dump available (that it 
> would contain every syscall). Alternatively, you can create one full dump 
> for yourself and just grep the relevant parts. There may be need to strace
> more than one process (all dovecot related).
	
	Ok, at next stall I'll do that.

	Maybe it's good to strace inn and proftp too, right?

	Don't you think it's interesting that http (apache) and ssh never stalls?

-- 

  reply	other threads:[~2008-08-29 17:42 UTC|newest]

Thread overview: 107+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <47EA0DAB.7080205@securenet.de>
     [not found] ` <Pine.LNX.4.64.0807042251500.4142@blackhole.kfki.hu>
     [not found]   ` <200807071118.32988.thomas.jarosch@intra2net.com>
2008-07-07 13:18     ` TCP connection stalls under 2.6.24.7 Thomas Jarosch
2008-07-10 13:17       ` Jozsef Kadlecsik
2008-07-10 14:12         ` Thomas Jarosch
2008-07-10 21:21           ` Jozsef Kadlecsik
2008-07-11 14:33             ` Thomas Jarosch
2008-07-15 11:47               ` Thomas Jarosch
2008-07-15 16:10                 ` Thomas Jarosch
2008-07-15 18:30                   ` Dâniel Fraga
2008-07-31  4:47                     ` Dâniel Fraga
2008-07-31  7:39                       ` Ilpo Järvinen
2008-08-02 12:24                         ` Dâniel Fraga
2008-07-15 20:17                   ` Ilpo Järvinen
2008-07-16  8:07                     ` Thomas Jarosch
2008-07-16  9:03                     ` Thomas Jarosch
2008-07-17 13:55                       ` Ilpo Järvinen
2008-07-17 15:15                         ` Thomas Jarosch
2008-07-17 15:53                           ` Ilpo Järvinen
2008-07-18  9:14                             ` Thomas Jarosch
2008-07-18 13:55                               ` Ilpo Järvinen
2008-07-18 14:02                                 ` Thomas Jarosch
2008-07-19  7:35                                   ` Ilpo Järvinen
2008-07-25 10:00                                   ` Ilpo Järvinen
2008-07-25 13:00                                     ` Thomas Jarosch
2008-07-25 14:06                                       ` Ilpo Järvinen
2008-07-25 15:34                                         ` Thomas Jarosch
2008-07-31  7:39                                           ` Thomas Jarosch
2008-07-31 12:44                                             ` Dâniel Fraga
2008-07-31 13:47                                               ` Thomas Jarosch
2008-07-31 14:11                                                 ` Dâniel Fraga
2008-08-06 18:53                                                 ` Dâniel Fraga
2008-08-07  6:54                                                   ` Ilpo Järvinen
2008-08-07 11:50                                                     ` Denys Fedoryshchenko
2008-08-07 12:11                                                       ` Thomas Jarosch
2008-08-07 12:14                                                       ` Ilpo Järvinen
2008-08-07 12:23                                                         ` Denys Fedoryshchenko
2008-08-08  9:56                                                           ` Ilpo Järvinen
2008-08-08 10:32                                                             ` Denys Fedoryshchenko
2008-08-07 11:33                                                   ` [PATCH] tcp FRTO: in-order-only "TCP proxy" fragility workaround Ilpo Järvinen
2008-08-08  4:42                                                     ` Bill Fink
2008-08-08 10:32                                                       ` Ilpo Järvinen
2008-08-11 21:44                                                         ` David Miller
2008-08-12  7:46                                                           ` Thomas Jarosch
2008-08-12  8:18                                                             ` David Miller
2008-08-12 17:43                                                               ` Dâniel Fraga
2008-08-12 17:52                                                                 ` Ilpo Järvinen
2008-08-13 17:53                                                                   ` Dâniel Fraga
2008-08-13 18:34                                                                     ` Ilpo Järvinen
2008-08-15  4:34                                                                       ` Dâniel Fraga
2008-08-15  7:06                                                                         ` Ilpo Järvinen
2008-08-15 21:35                                                                           ` Dâniel Fraga
2008-08-15 22:06                                                                             ` Ilpo Järvinen
2008-08-15 23:57                                                                               ` Dâniel Fraga
2008-08-16  2:15                                                                               ` Dâniel Fraga
2008-08-16  7:10                                                                                 ` Ilpo Järvinen
2008-08-16 19:18                                                                                   ` Ilpo Järvinen
2008-08-17  0:36                                                                                     ` Dâniel Fraga
2008-08-19 10:38                                                                                       ` Ilpo Järvinen
2008-08-20  0:34                                                                                         ` Dâniel Fraga
2008-08-20  7:57                                                                                           ` Ilpo Järvinen
2008-08-20 12:37                                                                                           ` Ilpo Järvinen
2008-08-22 21:32                                                                                             ` Dâniel Fraga
2008-08-22 21:37                                                                                               ` David Miller
2008-08-23 14:14                                                                                                 ` Dâniel Fraga
2008-08-23 14:38                                                                                                   ` Ilpo Järvinen
2008-08-24 19:38                                                                                                     ` Dâniel Fraga
2008-08-26 14:10                                                                                                       ` Ilpo Järvinen
2008-08-26 14:32                                                                                                         ` Ilpo Järvinen
2008-08-26 17:18                                                                                                         ` Dâniel Fraga
2008-08-26 20:40                                                                                                           ` Ilpo Järvinen
2008-08-26 21:17                                                                                                             ` Dâniel Fraga
2008-08-27 10:22                                                                                                               ` Ilpo Järvinen
2008-08-27 19:51                                                                                                                 ` Dâniel Fraga
2008-08-27 20:32                                                                                                                   ` Ilpo Järvinen
2008-08-27 20:50                                                                                                                     ` Dâniel Fraga
2008-08-27 21:25                                                                                                                       ` Ilpo Järvinen
2008-08-27 21:42                                                                                                                         ` Dâniel Fraga
2008-08-27 22:24                                                                                                                           ` Dâniel Fraga
2008-08-28 21:49                                                                                                             ` Dâniel Fraga
2008-08-29 13:07                                                                                                               ` Ilpo Järvinen
2008-08-29 17:41                                                                                                                 ` Dâniel Fraga [this message]
2008-09-01  7:11                                                                                                                   ` Ilpo Järvinen
2008-08-30  6:56                                                                                                                 ` Dâniel Fraga
2008-09-01  7:11                                                                                                                   ` Ilpo Järvinen
2008-09-07  8:17                                                                                                                     ` Dâniel Fraga
2008-09-08 10:27                                                                                                                       ` Ilpo Järvinen
2008-09-08 20:20                                                                                                                         ` Dâniel Fraga
2008-09-11 13:44                                                                                                                           ` Ilpo Järvinen
2008-09-11 17:30                                                                                                                             ` Dâniel Fraga
2008-09-12 10:16                                                                                                                               ` Ilpo Järvinen
2008-09-13 23:31                                                                                                                                 ` Dâniel Fraga
2008-09-16 12:10                                                                                                                                   ` Ilpo Järvinen
2008-09-16 14:24                                                                                                                                     ` Dâniel Fraga
2008-09-17 10:23                                                                                                                                       ` Ilpo Järvinen
2008-09-18 20:35                                                                                                                                         ` Dâniel Fraga
2008-09-18 21:04                                                                                                                                           ` Ilpo Järvinen
2008-09-21  3:02                                                                                                                                             ` Dâniel Fraga
2008-09-22  4:23                                                                                                                                             ` Dâniel Fraga
2008-09-22 11:22                                                                                                                                               ` Ilpo Järvinen
2008-09-22 16:13                                                                                                                                                 ` Dâniel Fraga
2008-09-15 19:42                                                                                                                                 ` Dâniel Fraga
2008-09-11 18:12                                                                                                                             ` Dâniel Fraga
2008-08-15 21:59                                                                           ` Dâniel Fraga
2008-08-13  8:00                                                               ` Thomas Jarosch
2008-08-22 21:18                                                             ` Ilpo Järvinen
2008-08-11 21:41                                                       ` David Miller
2008-08-25 16:45 Thomas Jarosch
2008-08-26 12:03 ` Ilpo Järvinen

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=20080829144150.171ba495@tux \
    --to=fragabr@gmail.com \
    --cc=billfink@mindspring.com \
    --cc=davem@davemloft.net \
    --cc=ilpo.jarvinen@helsinki.fi \
    --cc=kaber@trash.net \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=thomas.jarosch@intra2net.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).