From owner-freebsd-stable@FreeBSD.ORG Thu Apr 17 06:06:20 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64B401065670 for ; Thu, 17 Apr 2008 06:06:20 +0000 (UTC) (envelope-from ericlin@tamama.org) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id 45F858FC12 for ; Thu, 17 Apr 2008 06:06:20 +0000 (UTC) (envelope-from ericlin@tamama.org) Received: by rv-out-0506.google.com with SMTP id b25so1570396rvf.43 for ; Wed, 16 Apr 2008 23:06:19 -0700 (PDT) Received: by 10.140.136.6 with SMTP id j6mr515439rvd.56.1208410648344; Wed, 16 Apr 2008 22:37:28 -0700 (PDT) Received: by 10.141.152.4 with HTTP; Wed, 16 Apr 2008 22:37:28 -0700 (PDT) Message-ID: <47713ee10804162237h7223f8c0jf44c8211ffb36269@mail.gmail.com> Date: Thu, 17 Apr 2008 13:37:28 +0800 From: "Lin Jui-Nan Eric" To: freebsd-stable@freebsd.org, freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Lots of FIN_WAIT_1 TCP Connections and deadlock in zoneli state X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2008 06:06:20 -0000 Hi All, I am running squid as reverse proxy on FreeBSD 7.0-R amd64. After running for a while (~ 8 hours), the throughput degrades to very very low rate. I found the squid is in "zoneli" state and is already a bug report on http://www.freebsd.org/cgi/query-pr.cgi?pr=106317 But after more investigation, I found there are lots of TCP Connections in FIN_WAIT_1 and never close. # netstat -an | grep FIN_WAIT_1 | wc -l 823 # netstat -an | grep FIN_WAIT_1 | head tcp4 0 273 192.168.1.1.80 61.62.121.195.64739 FIN_WAIT_1 tcp4 0 13448 192.168.1.1.80 163.22.44.102.58775 FIN_WAIT_1 tcp4 0 33304 192.168.1.1.80 163.32.61.253.2273 FIN_WAIT_1 tcp4 0 48416 192.168.1.1.80 24.78.35.230.61059 FIN_WAIT_1 tcp4 0 33580 192.168.1.1.80 140.130.102.8.24673 FIN_WAIT_1 tcp4 0 32009 192.168.1.1.80 163.23.57.133.38863 FIN_WAIT_1 tcp4 0 78112 192.168.1.1.80 122.146.0.210.21639 FIN_WAIT_1 tcp4 0 32046 192.168.1.1.80 140.130.102.8.23723 FIN_WAIT_1 tcp4 0 32120 192.168.1.1.80 140.128.194.130.56875 FIN_WAIT_1 tcp4 0 33580 192.168.1.1.80 163.21.235.230.33900 FIN_WAIT_1 Is there a timeout timer for the FIN_WAIT_1 state? Thank you for any suggestions!