Re: what are recommended numbers of "directory levels" for cache

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 04 Apr 1999 03:12:29 +0200

Evren Yurtesen wrote:

> I think you should decide them by calculating how many objects will be in
> a directory, as I have seen on the running machines if there is more than
> 1000 files in a directory then the machine is slowing down when reading

You almost got the point. However, the default config does not place
more than 256 files (usually less) in a single directory. From a
performance point of view the Level 1 setting is irrelevant as long as
it is large enought.

A simplistic view of the algoritm is that L2 determines how many files
to place in each directory, and L1 is a upper limit (*L2) on the number
of directories created.

So I repeat what I said before in a slightly different wording: there is
no reason to set these to anything else than the default unless you are
running a very small cache (lets say less than 100MB) where the overhead
of creating a lot of unused directories makes a significant impact on
disk space.. (~4MB or 4K inodes)

--
Henrik Nordstrom
Spare time Squid hacker
Received on Sat Apr 03 1999 - 18:10:48 MST

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