Re: Relationshipt of cache_swap and cache_dir?

From: Benarson Behajaina R. <Benarson.Behajaina@dont-contact.us>
Date: Thu, 10 Oct 1996 08:55:52 +0100 (MET)

In his previous mail Julianne Weekers wrote:
>
> Hello,
>
> Could someone explain how the cache_swap config option is
> interpreted if there are multiple cache_dir entries? Does it apply to
> each entry?
>

See archive of squid-users message
There is a message (Subject: Re: Using 2 partitions as cache_dir ... )
from Duane Wessels on Mon Jun 10 15:50:05 1996

The contents of this message :

>
>Received: from localhost (localhost [127.0.0.1]) by nlanr.net (8.7.3/8.7.3) with SMTP id PAA27468; Mon, 10 Jun 1996 15:50:05 -0700 (PDT)
>Message-Id: <199606102250.PAA27468@nlanr.net>
>X-Authentication-Warning: oceana.nlanr.net: Host localhost [127.0.0.1] didn't use HELO protocol
>To: kclau@www.nsysu.edu.tw
>cc: squid-users@nlanr.net
>Subject: Re: Using 2 partitions as cache_dir...
>In-reply-to: Your message of Mon, 10 Jun 1996 09:39:01 +0800
>Date: Mon, 10 Jun 96 15:50:05 -0700
>From: Duane Wessels <wessels>
>X-Mts: smtp
>Status: RO
>
>kclau@www.nsysu.edu.tw writes:
>
>>Hi,
>>
>> I am wonder that how to use 2 partitions for cache storage?
>> The explanation in configuration file doesn't say clearly.
>> What should I set for the cache size ? I have 2x2G HD, for example:
>>
>> /cache1 & /cache2
>>
>> so, I use:
>>
>> cache_dir /cache1
>> cache_dir /cache2
>>
>> and
>>
>> cache_swap 4000
>>
>> is it right? Will it possible that when /cache1 is full and /cache2
>> is still in low level usage ?
>
>That is correct.
>
>Squid assumes that /cache1 and /cache2 are the same size. It just
>alternates between the two for every object which gets stored.
>
>However, you can use more cache_dir lines in the proper ratio if
>you have partitions of different size. If you have /P1 with 1G
>and /P2 with 2G, then you could use
>
> cache_dir /P1/cache1
> cache_dir /P2/cache2
> cache_dir /P2/cache3
>
>and similarly for other ratios.
>
>You might want to do this anyway since each 'cache_dir' has 100
>subdirectories. If you have too few cache_dir's then each of
>the subdirectories will have 1000's of files and the time to
>seek through large directory entries may slow down your cache.
>
>Duane W.
>
>
>

        Benarson.

-- 
------------------------------------------------------
-  Email  :  Benarson.Behajaina@swh.sk               -
-  Tel    :  +42 (7) 378 3560                        -
-  Fax    :  +42 (7) 377 433                         - 
-  URL    :  http://www.drp.fmph.uniba.sk/~benarson  -
------------------------------------------------------
Received on Thu Oct 10 1996 - 01:03:15 MDT

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