On Wed, Sep 24, 2008 at 12:08 AM, Henrik Nordstrom <[EMAIL PROTECTED]> wrote: > On tis, 2008-09-23 at 14:57 +0800, Adrian Chadd wrote: >> I could probably do that in a week or so once I've finished my upcoming >> travel. >> Someone could try beating me to it.. > > The relevant code locations for implementing this if you want to take a > stab at it yourself is the maintain function in each cache_dir type > (src/fs/*/store_dir_...) > > Should be trivial to add a cache_dir parameter specifyung the max number > of files in this cache_dir, and use this in the maintenance function.
Good hint, thanks! If we did have such a control, what is the wired memory that squid will use for each entry? In an email earlier I wrote... - Each index entry takes between 56 bytes and 88 bytes, plus additional, unspecificed overhead. Is 1KB per entry a reasonable conservative estimate? - Discussions about compressing or hashing the URL in the index are recurrent - is the uncompressed URL there? That means up to 4KB per index entry? the notes I read about the index structure were rather old... m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff
