From owner-freebsd-current@FreeBSD.ORG Thu Jan 5 01:49:50 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 7A7D31065670 for ; Thu, 5 Jan 2012 01:49:50 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout021.mac.com (asmtpout021.mac.com [17.148.16.96]) by mx1.freebsd.org (Postfix) with ESMTP id 57E2B8FC1B for ; Thu, 5 Jan 2012 01:49:49 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com (unknown [17.209.4.71]) by asmtp021.mac.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0LXA00089YF1YK00@asmtp021.mac.com> for freebsd-current@freebsd.org; Thu, 05 Jan 2012 01:49:49 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110,1.0.211,0.0.0000 definitions=2012-01-05_01:2012-01-04, 2012-01-05, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1201040323 From: Chuck Swiger In-reply-to: <4F04FDBE.5060801@delphij.net> Date: Wed, 04 Jan 2012 17:49:48 -0800 Message-id: 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> To: d@delphij.net X-Mailer: Apple Mail (2.1084) Cc: FreeBSD current , 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 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 01:49:50 -0000 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. Regards -- -Chuck