From owner-freebsd-questions Mon Mar 24 13:47:16 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5238D37B404 for ; Mon, 24 Mar 2003 13:47:11 -0800 (PST) Received: from mail.wirewalk.com (dsl092-100-221.nyc2.dsl.speakeasy.net [66.92.100.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5886743F3F for ; Mon, 24 Mar 2003 13:47:10 -0800 (PST) (envelope-from synrat@wirewalk.org) Received: by mail.wirewalk.com (Postfix, from userid 1002) id 671D3CDCD9; Mon, 24 Mar 2003 16:48:09 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.wirewalk.com (Postfix) with ESMTP id 5E385CDBA8; Mon, 24 Mar 2003 16:48:09 -0500 (EST) Date: Mon, 24 Mar 2003 16:48:09 -0500 (EST) From: synrat X-X-Sender: synrat@mail.wirewalk.com To: "L. Jankok" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: squid performance and kernel tuneables In-Reply-To: <20030323133904.GA21593@atlantis.local.net> Message-ID: <20030324164207.I45769@mail.wirewalk.com> References: <20030323133904.GA21593@atlantis.local.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-26.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 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 > vfs.vmiodirenable: == ok > > 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