From owner-freebsd-current@FreeBSD.ORG Thu Jan 5 02:06:19 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14619106564A for ; Thu, 5 Jan 2012 02:06:19 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id E3ECE8FC15 for ; Thu, 5 Jan 2012 02:06:18 +0000 (UTC) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id ACC4817F5F; Wed, 4 Jan 2012 18:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1325729178; bh=0WvJllfIFKHjmxUXNJemwJV62wn0At5+CH8nulmzUb4=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=1mcHB5cfIsj2PQ1blMdkJ2ItmgiIc9iVW6wyz/Ahby4Olqy0EK3g2RzQP7JC68Z6/ zvbJrfFQHYSXCNwn1XqDS6xgbcrp7sQ/cTlLpsSddU2HPdzdfoWu8GTO/BtGyXIbm2 TarxJn/hdn23gWx2PsYzmWdE8qg5qeKZ6ExX7k3w= Message-ID: <4F050599.8060000@delphij.net> Date: Wed, 04 Jan 2012 18:06:17 -0800 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: Chuck Swiger References: <0A9B7C39-DFA9-4C65-BE39-CC72E18DAB87@mac.com> <52A4B11E-592E-458D-BA0F-9B5A349F4B73@mac.com> <1E97A7DF-71C3-4F3A-A24F-017CF5DC8E4F@mac.com> <4F04FDBE.5060801@delphij.net> In-Reply-To: X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD current , d@delphij.net, Dan The Man Subject: Re: sysctl kern.ipc.somaxconn limit 65535 why? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2012 02:06:19 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/04/12 17:49, Chuck Swiger wrote: > Hi, Xin-- > > On Jan 4, 2012, at 5:32 PM, Xin Li wrote: >> I am personally quite convinced that FreeBSD should make such >> change though -- having more than 64K of outstanding and >> unhandled connections does not sound a great idea (i.e. it's not >> a connection limit after all, but the pending handle connection. >> If my math were right, 64K connections would require about 1Gbps >> bandwidth in and out if they happen in the same second.) But I >> agree this would be a good stress test, which might expose some >> bugs we don't know today. > > I think I agree with the change from a correctness standpoint-- > listen(2) accepts an int backlog argument. > > I'm not convinced that there are many scenarios where needing to > exceed a listen queue backlog of 64K would be beneficial to a > real-world system, and I am sure there are many scenarios where it > would be counterproductive, but folks can adjust kern.ipc.somaxconn > as they see fit and perhaps Dan or others would gain some value > from it. Ah sorry that should read something like "I'm not quite convinced" and as you see I were explaining why in detail but apparently I missed to check the spellings... Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8FBZkACgkQOfuToMruuMDQqQCfWPenaWKpC41i8CXJeuFPlAzg y/cAnR2zTBCa1qG3/0G/nP/vDbQ5Z3vp =lGcl -----END PGP SIGNATURE-----