From owner-freebsd-net Mon Mar 3 17:57:58 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3577C37B401; Mon, 3 Mar 2003 17:57:57 -0800 (PST) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34B6443FCB; Mon, 3 Mar 2003 17:57:54 -0800 (PST) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id h2447jvb050154; Tue, 4 Mar 2003 04:07:46 GMT Received: (from ml@localhost) by phantom.cris.net (8.12.6/8.12.2) id h2424YiH042292; Tue, 4 Mar 2003 04:04:34 +0200 (EET) (envelope-from ml) Date: Tue, 4 Mar 2003 04:04:34 +0200 From: Alexey Zelkin To: Garrett Wollman Cc: Ruslan Ermilov , freebsd-net@FreeBSD.ORG Subject: Re: maxsockbuf is useless value {?|:-(} Message-ID: <20030304040434.A42256@phantom.cris.net> References: <20030228130621.A16504@phantom.cris.net> <200302281931.h1SJVAUg060319@khavrinen.lcs.mit.edu> <20030301134118.GE77007@sunbay.com> <200303022015.h22KFbn0075585@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200303022015.h22KFbn0075585@khavrinen.lcs.mit.edu>; from wollman@lcs.mit.edu on Sun, Mar 02, 2003 at 03:15:37PM -0500 X-Operating-System: FreeBSD 4.7-STABLE i386 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 hi, On Sun, Mar 02, 2003 at 03:15:37PM -0500, Garrett Wollman wrote: > < said: > > > Seriously, you didn't give any alternative. How does one > > knows the maximum allowed limit? By just blindly trying? > > Ask for however much you think you actually need, and bleat to the > administrator (or limp along) if you don't get it. Keep in mind that > this is a security-sensitive parameter (a user can use up to > `maxsockbuf' bytes of wired kernel memory for each file descriptor he > is allowed to open). Wrong. As I stated originally, it's impossible to use 'maxsockbuf' value. kernel uses another value to check user supplied arguments, and this value is ~4-5% less than maxsockbuf. Therefore attempt to use 'maxsockbuf' as bufsize will fail in 100% of cases. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message