Re: Cache Dir Settings?

From: Colin Campbell <[email protected]>
Date: Thu, 30 Mar 2000 15:50:47 +1000 (EST)

Hi,

Here's what I'd do (based on squid 2.2S5 - 2.3 is probably different :-)

Build filesystem and note how much free space is left on disk. Let's say
it's 14GB. I'd build a cache around 90% of that, say 13.5GB. Now we play
squid games.

nbits = (13500 * 1024 * 1024 * 2)/(13 * 1024) = 2126769.23, say 2126770

That's how many bits squid will want for the file map. If we have 256
files in 256 2nd level directories you'll need

2126770/(256*256) = 32.45, directories. You can probably get away with 32,
so ...

cache_dir /wherever 13500 32 256

Anyone can feel free to correct me.

Colin

On Thu, 30 Mar 2000, Jason Thompson wrote:

> Hi All,
>
> Could someone tell me what the best cache_dir settings should be for
> 15GB of cache stored on a single hard disk.
Received on Wed Mar 29 2000 - 22:57:53 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:28 MST