Date: Tue, 25 Sep 2001 14:44:51 -0500 From: "Joel Gudknecht" <joel.gudknecht@honeywell.com> To: <freebsd-questions@FreeBSD.ORG> Subject: /boot/loader.conf vs /etc/sysctl.conf for tuning Message-ID: <sbb099a3.005@jmaci.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?sbb099a3.005>
