Re: [squid-users] propose additional field in cache_dir

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 27 Mar 2001 01:18:09 +0200

Are you sure you want this?

UNIX filesystems like to have a certain percentage of the filesystem
free to be able to limit fragmentation somewhat and optimize writing of
files/directories.

Anyway, adding the requested feature to Squid-2.4 should be quite
simple. Left as an exercise to an interested reader.

Hints: See src/cf.data.pre, src/fs/*/*_dir_*.c

--
Henrik Nordstrom
Squid hacker
fooler wrote:
> 
> squid developers,
> 
>     i have a proxy server with multiple disks with different sizes. the
> problem with global cache_swap_low and cache_swap_high parameters is
> that lower disk capacity has less space remaining while higher disk
> capacity has more space left, which leads to poor disk usage.
>     i would like to propose to add two additional fields locally for
> cache_swap_low and cache_swap_high in cache_dir parameter.
> 
>     for example:
> 
>     cache_dir ufs /cache1 8000 16 256 90 95
>     cache_dir ufs /cache2 16000 16 256 95 98
> 
>     where 90 and 95 for cache1 and 95 and 98 for cache2 represents local
> cache_swap_low and cache_swap_high respectively for every disk with
> different size. if its blank, it will use global cache_swap_low and
> cache_swap_high.
> 
> fooler.
Received on Mon Mar 26 2001 - 16:20:36 MST

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