From owner-freebsd-questions Tue Sep 25 12:50:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from jmaci.com (mail.advancir.com [206.146.104.6]) by hub.freebsd.org (Postfix) with SMTP id 8D50F37BA72 for ; Tue, 25 Sep 2001 12:50:46 -0700 (PDT) Received: from Minnetonka#032#South-Message_Server by jmaci.com with Novell_GroupWise; Tue, 25 Sep 2001 14:50:11 -0500 Message-Id: X-Mailer: Novell GroupWise 5.5.2 Date: Tue, 25 Sep 2001 14:44:51 -0500 From: "Joel Gudknecht" To: Subject: /boot/loader.conf vs /etc/sysctl.conf for tuning Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 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=20 "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.con= f file.=20 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.=20 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."=20 From: http://www.daemonnews.org/200108/benchmark.html=20 "sysctl A few sysctl variables should be tuned for maximum performance. The = following lines were added to /etc/sysctl.conf:=20 vfs.vmiodirenable=3D1 kern.ipc.somaxconn=3D4096 kern.maxfiles=3D65536" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message