From owner-freebsd-questions Fri Jul 10 06:14:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA07378 for freebsd-questions-outgoing; Fri, 10 Jul 1998 06:14:02 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from oslo.geco-prakla.slb.com (geos01.oslo.geco-prakla.slb.com [134.32.44.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA07346; Fri, 10 Jul 1998 06:13:55 -0700 (PDT) (envelope-from smoergrd@oslo.geco-prakla.slb.com) Received: from sunw110.oslo.Geco-Prakla.slb.com (sunw110 [192.23.231.54]) by oslo.geco-prakla.slb.com (8.8.8/8.6.9) with SMTP id PAA07767 ; Fri, 10 Jul 1998 15:13:16 +0200 (MET DST) Received: by sunw110.oslo.Geco-Prakla.slb.com (SMI-8.6/SMI-SVR4) id PAA01130; Fri, 10 Jul 1998 15:13:15 +0200 To: "Andrew N. Edmond (Nero)" Cc: questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: optimizing with a heavy load... References: Organization: Schlumberger Geco-Prakla X-Disclaimer: I speak only for myself. From: smoergrd@oslo.geco-prakla.slb.com (Dag-Erling Coidan Smørgrav) Date: 10 Jul 1998 15:13:13 +0200 In-Reply-To: "Andrew N. Edmond's message of Fri, 10 Jul 1998 02:08:46 -0700 (PDT) Message-ID: Lines: 27 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Andrew N. Edmond (Nero)" writes: > FreeBSD 052098-SNAP, some of the kernel configuration: > > maxusers 512 > options NMBCLUSTERS=4096 > options "CHILD_MAX=512" > options "OPEN_MAX=512" > options SYSVSHM > options SYSVSEM > options SYSVMSG Your maxusers is so high that setting NMBCLUSTERS to 4096 actually *reduces* the number of mbuf clusters instead of increasing it. Leave that line out, or raise the value above 8704 (which is the default computed value for maxusers=512) > also, I do this is /etc/rc.local: > > /sbin/sysctl -w kern.ipc.somaxconn=4096 > /sbin/sysctl -w kern.maxfiles=16384 The default value for maxfiles with maxusers=512 is 16424, which again is higher (though not by much) than your arbitrarily tweaked value. DES -- Dag-Erling Smørgrav - smoergrd@oslo.geco-prakla.slb.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message