From owner-freebsd-net Wed Mar 20 8:10:35 2002 Delivered-To: freebsd-net@freebsd.org Received: from patrocles.silby.com (d80.as14.nwbl0.wi.voyager.net [169.207.134.80]) by hub.freebsd.org (Postfix) with ESMTP id CB6C137B419; Wed, 20 Mar 2002 08:08:39 -0800 (PST) Received: from patrocles.silby.com (localhost [127.0.0.1]) by patrocles.silby.com (8.12.2/8.12.2) with ESMTP id g2KG61jJ054273; Wed, 20 Mar 2002 16:06:01 GMT (envelope-from silby@silby.com) Received: from localhost (silby@localhost) by patrocles.silby.com (8.12.2/8.12.2/Submit) with ESMTP id g2KG4sT0054267; Wed, 20 Mar 2002 10:06:01 -0600 (CST) X-Authentication-Warning: patrocles.silby.com: silby owned process doing -bs Date: Wed, 20 Mar 2002 10:04:54 -0600 (CST) From: Mike Silbersack To: Dmitry Koltsov Cc: freebsd-net@FreeBSD.ORG, Subject: Re: ADD TO(NEW Info): Apache/TCP stack issues In-Reply-To: <20020313164434.D28A16B349@mail2.hostonfly.net> Message-ID: <20020320100234.C54069-100000@patrocles.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 13 Mar 2002, Dmitry Koltsov wrote: > Hello, > > I'm running on 4.4-stable. > > Seems like my problem is (connection refused) caused by listen queue. > > I have 1-10 requsts in apache listen queue (port 80), queue len is 511 > connections and have counter "listen queue overflows" growing in the same time (!) > > Current listen queue sizes (qlen/incqlen/maxqlen) > Listen Local Address > 11/11/511 216.65.107.31.80 > > How it may be? Is there solution? As I said before, the listen queue has been mostly replaced by the syn cache in 4.5. Therefore, it is very unlikely that anyone is going to go back and work on it. If you are concerned about listen queue overflows, upgrade to 4.5. > Also I have tested queue with simple program (socket(), bind(), listen(sock,128), do nothing in the loop) > and received this amazing stats: > > Current listen queue sizes (qlen/incqlen/maxqlen) > Listen Local Address > 193/0/128 216.65.107.31.81 (queue len >> queue maxlen) !!! That's entirely expected, and the reason why is visible in the source. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message