From owner-freebsd-questions@FreeBSD.ORG Wed Jun 25 04:02:57 2003 Return-Path: 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 0C88637B401 for ; Wed, 25 Jun 2003 04:02:57 -0700 (PDT) Received: from sferics.mongueurs.net (sferics.mongueurs.net [81.80.147.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F46143FE3 for ; Wed, 25 Jun 2003 04:02:56 -0700 (PDT) (envelope-from david@landgren.net) Received: from landgren.net (81-80-147-206.bpinet.com [81.80.147.206]) by sferics.mongueurs.net (Postfix) with ESMTP id 06F52A94A; Wed, 25 Jun 2003 13:02:55 +0200 (CEST) Message-ID: <3EF980BA.1060003@landgren.net> Date: Wed, 25 Jun 2003 13:00:10 +0200 From: David Landgren Organization: A thousand golden eyes are watching User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612 X-Accept-Language: en-us, en MIME-Version: 1.0 To: User Frankb References: <20030625081407.GA71720@plonk.esiee.fr> In-Reply-To: <20030625081407.GA71720@plonk.esiee.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: softupdate and squid-cache ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2003 11:02:57 -0000 User Frankb wrote: > Hi > > I'm setting up a Squid cache running on latest 4.8 release > and I wondering about disk write performances as it is > a crucial point on that kind on machine. > > My question : does softupdate slow down disk writes ? What you *really* want to do is put the disk cache on a second disk. It's the only game in town for Squid. I mounted a disk as /cache and told squid to use that for its cache, keeping its logs under /var on the first disk. I ran tunefs to give the /cache disk the following characteristics (based on analysis of my first generation squid server): tunefs: average file size: (-f) 8192 tunefs: average number of files in a directory: (-s) 256 Be aware though that by default squid will write so many small files that you'll run out of i-nodes before you run out of disk-space. I have to reformat the disk this summer when things are quieter, and I can get away with a smaller disk cache on the system disk. At the moment, with the above tunefs settings, I'm using around 3-4% more available i-nodes than file blocks used as per df -i output. I'm not sure how that translates to specifying the number of i-nodes when I reformat the disk. Hope this helps, David