From owner-freebsd-performance@FreeBSD.ORG Tue Apr 15 19:10:14 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1414F37B401 for ; Tue, 15 Apr 2003 19:10:14 -0700 (PDT) Received: from mailserv.ait.ac.th (mailserv.ait.ac.th [203.159.5.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02AD543F3F for ; Tue, 15 Apr 2003 19:10:13 -0700 (PDT) (envelope-from alain@ait.ac.th) Received: from localhost (mailserv.ait.ac.th [127.0.0.1]) by mailserv.ait.ac.th (Postfix) with ESMTP id 13387113F66; Wed, 16 Apr 2003 09:10:11 +0700 (ICT) Received: from alain.ait.ac.th (alain.itserv.ait.ac.th [203.159.28.4]) by mailserv.ait.ac.th (Postfix) with ESMTP id 41EAE113F97; Wed, 16 Apr 2003 09:10:07 +0700 (ICT) Received: (from alain@localhost) by alain.ait.ac.th (8.12.4/8.12.4) id h3G2A5LF007881; Wed, 16 Apr 2003 09:10:05 +0700 Date: Wed, 16 Apr 2003 09:10:04 +0700 From: Alain Fauconnet To: Frank Bonnet Message-ID: <20030416021004.GA7867@ait.ac.th> References: <20030415124035.B25027@bart.esiee.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030415124035.B25027@bart.esiee.fr> User-Agent: Mutt/1.4i X-Virus-Scanned: by AMaViS perl-11 cc: freebsd-performance@freebsd.org Subject: Re: tweaking FreeBSD for Squid using X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 02:10:14 -0000 On Tue, Apr 15, 2003 at 12:40:35PM +0200, Frank Bonnet wrote: > Hi > > I need infos in order to tweak a FreeBSD box kernel > to use the Squid cache/proxy software on a dedicated > machine. > > The hardware is OK P4 2.2 Ghz with 2.5 Gb RAM > and a 36 Gb / 15k rpm disk for caching. To my experience, heavly loaded Squid boxes run into I/O bottlenecks faster than anything else (apart from memory maybe, but you have ample memory). My advice would be: get more disks. A single spindle is just not a good configuration for Squid, even a fast disk. You didn't mention whether is it SCSI or IDE. I usually go for SCSI for anything I/O intensive, although that's more a cultural thing than based on any hard evidence I've seen. Don't do RAID. Bring up a filesystem on each disk (with soft updates of course), mount them "-o noatime" and configure Squid to use multiple cache dirs. Sorry if I'm just telling the obvious here. I'm sure someone will come up with some finer tuning advice. Bonne chance, -- Alain Fauconnet IT Security Specialist & CISO -- ITServ Asian Institute of Technology