From owner-freebsd-questions Mon Mar 24 8:42:57 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 794FC37B401 for ; Mon, 24 Mar 2003 08:42:54 -0800 (PST) Received: from mail.2u2.nu (ns1.2u2.nu [62.59.31.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C85143F75 for ; Mon, 24 Mar 2003 08:42:53 -0800 (PST) (envelope-from lj@2u2.nu) Received: from mail.2u2.nu (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id C8D8D95C for ; Sun, 23 Mar 2003 14:36:37 +0100 (CET) Received: from localhost (atlantis.local.net [10.23.31.10]) by mail.2u2.nu (Postfix) with ESMTP id A2DB1519 for ; Sun, 23 Mar 2003 14:36:37 +0100 (CET) Received: (qmail 21611 invoked by uid 109); 23 Mar 2003 13:39:05 -0000 Date: Sun, 23 Mar 2003 14:39:05 +0100 From: "L. Jankok" To: freebsd-questions@FreeBSD.ORG Subject: squid performance and kernel tuneables Message-ID: <20030323133904.GA21593@atlantis.local.net> Reply-To: lj@2u2.nu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: SunOS atlantis 5.9 sparc X-Sender: lj@2u2.nu X-message-flag: Outlook : A program to spread viri, but it can do mail too. X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT 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 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