Re: number of dir....

From: Kendall Lister <kendall@dont-contact.us>
Date: Fri, 9 Jun 2000 10:40:47 +1000 (EST)

On Fri, 9 Jun 2000, Mehdi wrote:

> I have just installed Squid2-3-stable on a PIII 500 with 256 MG RAM
> and use a hard disk for system files and swap, and a high speed Hard
> with 14G capability for squid cache dir.
> i divided this hard to 10 partitions for cache. ( /cache/part1,
> /cache/part2,...) and have this lines in squid.conf:

People have suggested on this list that there is no advantage to
partitioning a drive used for cache storage, so you can probably save
yourself some bother by juts using one large partition.

> cache_dir /cache/part0/ ufs 1000 32 128
> cache_dir /cache/part1/ ufs 1000 32 128
> ...
> ...
> cache_dir /cache/part8/ ufs 1000 32 128
> cache_dir /cache/part9/ ufs 1000 32 128
>
> what is ur idea about numbers "32" and "128" for each partition in
> order to speed up search method for cached URLs ?

This apparently depends on your filesystem - it's been suggested that for
Linux's ext2fs you are better off using 254 files per directory than the
default 256. Beyond that, you're unlikely to get any improvement. From
discussions on this list it doesn't seem to be an area really worth
putting much effort into - the gains appear to be minimal at best.

--
 Kendall Lister, Systems Operator for Charon I.S. - kendall@charon.net.au
  Charon Information Services - Friendly, Cheap Melbourne ISP: 9589 7781
Received on Thu Jun 08 2000 - 18:43:14 MDT

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