On Fri, 29 Aug 2008 16:07:04 +0300 (EEST) "Ilpo Järvinen" <ilpo.jarvinen@xxxxxxxxxxx> 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? -- -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html