From owner-freebsd-net@FreeBSD.ORG Fri Oct 2 15:38:26 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 528261065672 for ; Fri, 2 Oct 2009 15:38:26 +0000 (UTC) (envelope-from is@rambler-co.ru) Received: from mailrelay1.rambler.ru (mailrelay1.rambler.ru [81.19.66.239]) by mx1.freebsd.org (Postfix) with ESMTP id 0409A8FC23 for ; Fri, 2 Oct 2009 15:38:25 +0000 (UTC) Received: from kas30pipe.localhost (localhost [127.0.0.1]) by mailrelay1.rambler.ru (Postfix) with ESMTP id F1A94130C70 for ; Fri, 2 Oct 2009 19:38:24 +0400 (MSD) Received: from localhost (unknown [81.19.68.137]) by mailrelay1.rambler.ru (Postfix) with ESMTP id 90D25130C4B for ; Fri, 2 Oct 2009 19:38:24 +0400 (MSD) Date: Fri, 2 Oct 2009 19:38:24 +0400 From: Igor Sysoev To: freebsd-net@freebsd.org Message-ID: <20091002153824.GD89571@rambler-co.ru> References: <20091002130646.GC89571@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20091002130646.GC89571@rambler-co.ru> User-Agent: Mutt/1.5.20 (2009-06-14) X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.33/RELEASE, bases: 02092009 #2738642, status: clean X-SpamTest-Envelope-From: is@rambler-co.ru X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 9536 [Sen 02 2009] X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 10 X-SpamTest-SPF: pass X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release Subject: Re: stuck TIME_WAIT sockets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2009 15:38:26 -0000 On Fri, Oct 02, 2009 at 05:06:46PM +0400, Igor Sysoev wrote: > The TIME_WAIT sockets suddenly started to grow on a host running > FreeBSD 7.2-STABLE, date=2009.09.06.23.59.59 > Usually there are 3,000-5,000 TIME_WAIT sockets on the host. > However, today they stared to grow, have reached 110,000 sockets in hour > and still remain on this level. > net.inet.tcp.msl is 30000. > The host uptime is 24 days, 21:53. > > I have saved a coredump and may try to help to debug the issue. There are also 10 stuck LAST_ACK sockets. "swi4: clock sio" is usually idle, however, if I run netstat -an | grep TIME_WAIT | wc -l then swi4 gets some CPU: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 11 root 1 171 ki31 0K 16K CPU1 1 112.0H 98.29% idle: cpu1 12 root 1 171 ki31 0K 16K RUN 0 116.8H 94.78% idle: cpu0 14 root 1 -32 - 0K 16K WAIT 0 13:11 1.66% swi4: clock 26 root 1 -68 - 0K 16K WAIT 0 334:11 0.00% irq19: bge0 -- Igor Sysoev http://sysoev.ru/en/