From owner-freebsd-questions Tue Sep 25 13:17: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.avatar.com (ns1.avatar.com [199.33.206.1]) by hub.freebsd.org (Postfix) with ESMTP id A51F537B411 for ; Tue, 25 Sep 2001 13:16:57 -0700 (PDT) Received: from tomcat (tomcat.avatar.com [199.33.206.20]) by ns1.avatar.com (Postfix) with SMTP id 6ED44A4B07; Tue, 25 Sep 2001 13:16:57 -0700 (PDT) From: "Kory Hamzeh" To: "Joel Gudknecht" , Subject: RE: /boot/loader.conf vs /etc/sysctl.conf for tuning Date: Tue, 25 Sep 2001 13:16:58 -0700 Message-ID: <004501c145ff$07802460$14ce21c7@avatar.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'd go with the first document and add it to /boot/loader.conf.local. This file usually doesn't exist, so create it. I don't think it hurts setting it early. Kory > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Joel Gudknecht > Sent: Tuesday, September 25, 2001 12:45 PM > To: freebsd-questions@FreeBSD.ORG > Subject: /boot/loader.conf vs /etc/sysctl.conf for tuning > > > Question is which of these documents should one follow to > actually set kern.maxfiles or possibly others for that matter? > > From: > > http://www.kegel.com/c10k.html#limits.filehandles > > "FWIW: You can't actually tune the maximum number of connections > in FreeBSD trivially, via sysctl.... You have to do it in the > /boot/loader.conf file. > The reason for this is that the zalloci() calls for initializing > the sockets and tcpcb structures zones occurs very early in > system startup, in order that the zone be both type stable and > that it be swappable. > You will also need to set the number of mbufs much higher, since > you will (on an unmodified kernel) chew up one mbuf per > connection for tcptempl structures, which are used to implement > keepalive." > > From: > > http://www.daemonnews.org/200108/benchmark.html > > "sysctl > A few sysctl variables should be tuned for maximum performance. > The following lines were added to /etc/sysctl.conf: > vfs.vmiodirenable=1 > kern.ipc.somaxconn=4096 > kern.maxfiles=65536" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message