From owner-freebsd-current@FreeBSD.ORG Wed Oct 3 20:05:54 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 26C36106564A for ; Wed, 3 Oct 2012 20:05:54 +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 064C58FC12 for ; Wed, 3 Oct 2012 20:05:54 +0000 (UTC) Received: from epsilon.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id A81411B829; Wed, 3 Oct 2012 13:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1349294753; bh=6TcTU9FwnSgEOUQSclCyS5k5xgxXcykH0O0zVrC4jOU=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=H22m9HRdH/vYt5/0AHK14/z/WJ1mXuqgcxN3QBgpYM4+ZuZmyW0a3MO4ArK0Z81As DPhxnpGd+c4Lo3Xb/TDFJvbEI8kPxFR9IAbPydtyH9qAmHVFm5cyyAbj3//lMq5pgO UFTwzAwiAoplNk5tISQsmSn+sVnhGRCz7K+NzBvc= Message-ID: <506C9AA0.9060200@delphij.net> Date: Wed, 03 Oct 2012 13:05:52 -0700 From: Xin Li Organization: The freeBSD Project User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.7) Gecko/20120830 Thunderbird/10.0.7 MIME-Version: 1.0 To: freebsd@chrysalisnet.org References: <03e101cda197$326dc240$974946c0$@org> In-Reply-To: <03e101cda197$326dc240$974946c0$@org> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org 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: Wed, 03 Oct 2012 20:05:54 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, On 10/03/12 11:45, freebsd@chrysalisnet.org wrote: > Hi everyone. > > Actually 65k sockets is incredibly easy to reach. No, this is not kern.ipc.maxsockets. kern.ipc.somaxconn is for "baclkog" and not the maximum connections. Accumulating 64K of pending connection request without giving them some love (e.g. accept()) means there is something wrong. Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBCAAGBQJQbJqgAAoJEG80Jeu8UPuz+x0H/2y+aJC1/yotlnjZcjzAmhm2 WpI8l2WNO7oezUH9t6z8SI543Ky0mLjq52oVJTlBWyXuFkGNQdtKJgrbm5hLAiCz FPojm0p/y3T/ujosunPQl0e/yws6odbEdpGrjSCGJ0VXPQrsWj7NqAJNcDn5hW6m 2wYDkkY9gIxgdfLh8GINvEGO1uY0fyKaPZesepzUsAOOSj/fVdvRK7gSKqaHwDdW u8VCvfrgD1I1rKj57ymVsf/lpIVPDAv020rJzDnNWWM1dekqzvM7xZ5HiZgkdCca rTZQGJM3wujuHrjkHP3U5LDMflRWdOHzU236m7vw6jR7ll1xU5GljeNuwp95wFo= =8tip -----END PGP SIGNATURE-----