Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Oct 2001 14:32:48 -0600
From:      "Scott Gerhardt" <scott@gerhardt-it.com>
To:        "FreeBSD" <freebsd-questions@FreeBSD.ORG>
Subject:   Kernel and sysctl settings
Message-ID:  <KPEMLBLEMPMHGLJOCDEGOEGCCLAA.scott@gerhardt-it.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?KPEMLBLEMPMHGLJOCDEGOEGCCLAA.scott>