Re: [Server-devel] Squid tuning recommendations for OLPC School Server tuning...

From: Martin Langhoff <martin.langhoff_at_gmail.com>
Date: Wed, 24 Sep 2008 14:14:41 +1200

On Wed, Sep 24, 2008 at 12:08 AM, Henrik Nordstrom
<henrik_at_henriknordstrom.net> 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

-- 
 martin.langhoff_at_gmail.com
 martin_at_laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
Received on Wed Sep 24 2008 - 02:14:44 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 24 2008 - 12:00:06 MDT