Date: Mon, 24 Mar 2003 16:48:09 -0500 (EST) From: synrat <synrat@wirewalk.org> To: "L. Jankok" <lj@2u2.nu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: squid performance and kernel tuneables Message-ID: <20030324164207.I45769@mail.wirewalk.com> In-Reply-To: <20030323133904.GA21593@atlantis.local.net> References: <20030323133904.GA21593@atlantis.local.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I would say that with that much traffic first thing you don't want to do is cache anything to the disk. Get a couple of gigabytes of memory, use as few ACLs as possible, cache dns for squid on the same machine, but don't use it as dns server for others, setup a logging server or disable logging, disable everything the requires extra processing. On Sun, 23 Mar 2003, L. Jankok wrote: > Hi folks, > > Having to migrate a proxy server from a ultra sparc (u10) to > FreeBSD I am looking for the appropriate kernel tuneables. > The new system will run FreeBSD 4.7 Stable on a SMP machine > with two very fast scsi disks and 1 1/2 GB of RAM. > > I did a man tuning, read the relevant sections on the freebsd handbook > searched google and looked at the faq at www.squid-cache.org. > > This is what I have so far; > > kern.maxfiles: == 65536 > kern.maxfilesperproc: == 32768 > kern.ipc.somaxconn: == 8192 > kern.ipc.nmbclusters: == 131072 > net.inet.ip.portrange.last: == 30000 > net.inet.tcp.sendspace: == 65535 > net.inet.tcp.recvspace: == 65535 > net.inet.tcp.delayed_ack: == 0 > net.inet.udp.maxdgram: == 57344 > net.inet.udp.recvspace: == 65535 > kern.ipc.shm_use_phys: == 1 > vfs.write_behind: == shouldn't this be turned off for web cache systems ? > kern.ipc.shm_use_phys: == ok <set explicitely, no undesirable overhead> > vfs.vmiodirenable: == ok <set explicitely, cache as much directories as you can> > > For diskd the FAQ on www.squid-cache.org is clear about the kernel tuneables. > It is the above settings which I want to know more about. > > > My question to the list is as follows; > > Are there any kernel tuneables paramater above which are set wrong or which are plain > irrelevant for a high performance http proxy server on FreeBSD ? and are there any relevant > parameters (besides that for diskd) which are not included in the above list ? > The system will be a dedicated http proxy server processing approximately 236 GB a month > and like 216426 request per hour. > > > tnx, > > Lucio Jankok > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > 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?20030324164207.I45769>