Date: Wed, 04 Jan 2012 18:06:17 -0800 From: Xin Li <delphij@delphij.net> To: Chuck Swiger <cswiger@mac.com> Cc: FreeBSD current <freebsd-current@freebsd.org>, d@delphij.net, Dan The Man <dan@sunsaturn.com> Subject: Re: sysctl kern.ipc.somaxconn limit 65535 why? Message-ID: <4F050599.8060000@delphij.net> In-Reply-To: <F82A899B-7912-42F4-A080-269E5353A808@mac.com> References: <alpine.BSF.2.00.1201041419340.4843@sunsaturn.com> <0A9B7C39-DFA9-4C65-BE39-CC72E18DAB87@mac.com> <alpine.BSF.2.00.1201041439080.4843@sunsaturn.com> <52A4B11E-592E-458D-BA0F-9B5A349F4B73@mac.com> <alpine.BSF.2.00.1201041456300.4843@sunsaturn.com> <AC03F2F8-92AD-4520-BFCB-AA29AA18FF4D@mac.com> <CACqU3MULYpULrX6CiCOwim3hwO7cbGdiRm7apJ_GOtJLY5gFNA@mail.gmail.com> <1E97A7DF-71C3-4F3A-A24F-017CF5DC8E4F@mac.com> <alpine.BSF.2.00.1201041618120.4843@sunsaturn.com> <F9AAD6B7-1653-4E7E-8A3D-806F301C12D2@mac.com> <alpine.BSF.2.00.1201041735030.4843@sunsaturn.com> <4F04FDBE.5060801@delphij.net> <F82A899B-7912-42F4-A080-269E5353A808@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <delphij@delphij.net> 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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F050599.8060000>