From owner-freebsd-questions Mon Mar 24 8:59:36 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 E958137B401 for ; Mon, 24 Mar 2003 08:59:33 -0800 (PST) Received: from mail.2u2.nu (ns1.2u2.nu [62.59.31.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E5BE43FA3 for ; Mon, 24 Mar 2003 08:59:33 -0800 (PST) (envelope-from lucio.jankok@2u2.nu) Received: from mail.2u2.nu (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 190B095A for ; Mon, 24 Mar 2003 11:34:28 +0100 (CET) Received: from localhost (atlantis.local.net [10.23.31.10]) by mail.2u2.nu (Postfix) with ESMTP id E8537519 for ; Mon, 24 Mar 2003 11:34:27 +0100 (CET) Received: (qmail 22661 invoked by uid 109); 24 Mar 2003 10:36:55 -0000 Date: Mon, 24 Mar 2003 11:36:55 +0100 From: "L. Jankok" To: freebsd-questions@FreeBSD.ORG Subject: kernel tuning and Squid performance Message-ID: <20030324103654.GA22625@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 an Ultra SPARC (u10) to FreeBSD I was looking for similar kernel tunables as the ones I tuned on Solaris. The new system is running FreeBSD 4.7 Stable on a SMP machine with two very fast SCSI disks and 1 GB of RAM. I did a man tuning, read the relevant sections on the FreeBSD handbook, searched google and looked at the relevant sections of the FAQ on www.squid-cache.org. This is what I have done so far; /boot/load.conf kern.ipc.nmbclusters=131072 /etc/sysctlt.conf kern.maxfiles=65536 kern.maxfilesperproc=32768 kern.ipc.somaxconn=8192 net.inet.ip.portrange.last=30000 net.inet.tcp.sendspace=65535 net.inet.tcp.recvspace=65535 net.inet.tcp.slowstart_flightsize=2 net.inet.udp.maxdgram=57344 net.inet.udp.recvspace=65535 kern.ipc.shm_use_phys=1 #ok no undesirable overhead> vfs.vmiodirenable=1 #ok # harden the stack a bit net.inet.icmp.drop_redirect=1 net.inet.icmp.log_redirect=1 net.inet.ip.redirect=0 net.inet.ip.sourceroute=0 net.inet.ip.accept_sourceroute=0 net.link.ether.inet.max_age=1200 #ok net.inet.icmp.bmcastecho=0 #ok The system is a dedicated web Proxy server processing approximately 236 GB a month. During peak hours the total request per seconds is nearby 65 and the client_http.all_median_svc_time = 0.045193 seconds. During peak hours the average load is around 0.50. The above tuning has a considerably effect on the performance of the web cache server and it is performing like expected. Lucio Jankok To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message