From owner-freebsd-doc Fri May 17 3:27: 6 2002 Delivered-To: freebsd-doc@freebsd.org Received: from host217-39-109-120.in-addr.btopenworld.com (host217-39-109-120.in-addr.btopenworld.com [217.39.109.120]) by hub.freebsd.org (Postfix) with ESMTP id CB41037B407 for ; Fri, 17 May 2002 03:27:00 -0700 (PDT) Received: by host217-39-109-120.in-addr.btopenworld.com (Postfix, from userid 1001) id 2A26C4D1; Fri, 17 May 2002 11:26:56 +0100 (BST) Date: Fri, 17 May 2002 11:26:56 +0100 From: Dominic Marks To: Sergey Ledenev Cc: doc@freebsd.org Subject: Re: maxusers Message-ID: <20020517112656.A9628@host217-39-109-120.in-addr.btop> References: <74386210.20020517062631@orl.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <74386210.20020517062631@orl.ru>; from sergey@orl.ru on Fri, May 17, 2002 at 06:26:31AM +0400 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, May 17, 2002 at 06:26:31AM +0400, Sergey Ledenev wrote: > Hi! The appropriate list for this is freebsd-questions@freebsd.org. > I have question about maxusers parameter in freebsd kernel. how slowly > will be machine if i set maxusers more that i'm need. (for example > maxusers 100 is enough for my, but i'm set maxusers 200. How slowly my > computer will be work and how can i see it?). Over allocating wastes resources. You can see this in for example the output of netstat -m, if you are only using 30% of the allocated buffers at peak times, you are wasting chunks of memory. You should of course always allow around 10-20% extra for unexpected load spikes. > Why in man 7 tuning write: "We do not recommend going above 256 unless you > need a huge number of file descriptors"? Because for most uses 256 descriptors is plenty. Only rarely do people really need as many as say, maxusers 512, provides. Some people think they will get better performance by allocating huge pools of resources which they never come close to making use of, which is silly. -- Dominic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message