From owner-freebsd-questions Sat Oct 27 13:21:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from indigo.quadrant.net (indigo.quadrant.net [207.195.92.9]) by hub.freebsd.org (Postfix) with ESMTP id 3945237B401 for ; Sat, 27 Oct 2001 13:21:49 -0700 (PDT) Received: from git2000 (h24-71-180-125.ss.shawcable.net [24.71.180.125]) by indigo.quadrant.net (8.9.1/8.9.1) with SMTP id OAA08283 for ; Sat, 27 Oct 2001 14:21:47 -0600 (CST) From: "Scott Gerhardt" To: "FreeBSD" Subject: Kernel and sysctl settings Date: Sat, 27 Oct 2001 14:32:48 -0600 Message-ID: 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 IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Looking for recommendations on kernel and sysctl optimizations. I'm building a modest server to host HTTP, FTP, SQL and POP3 services. Running FreeBSD 4.4-Release on a PIII 1GHz with 640MB+ RAM (plan to keep increasing RAM). So far I have recompiled a "stripped down" kernel and added the following options to the kernel: maxusers 256 options NMBCLUSTERS=32768 The following links have given me some ideas on what parameters can be modified to enhance networking and performance: http://www.enteract.com/~robt/Docs/Articles/ip-stack-tuning.html http://www.daemonnews.org/200108/benchmark.html I don't want to start changing the defaults willynilly just because they can be changed without knowing the impact on performance and stability. Here are a few things I was thinking of changing: kern.ipc.somaxconn: 128 (change to 1024, 2048, or 4096) kern.maxfiles: 8232 (change to 32768 or 65536) net.inet.tcp.sendspace: 16384 (change to 32768) net.inet.tcp.recvspace: 16384 (change to 32768) vfs.vmiodirenable=1 **What does this do? Stability 1st and performance 2nd are key factors. Suggestions welcome please. _________________________________ Scott Gerhardt, P.Geo. Gerhardt Information Technologies _________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message