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

Henrik Nordstrom henrik at henriknordstrom.net
Tue Sep 23 08:08:29 EDT 2008


On tis, 2008-09-23 at 14:57 +0800, Adrian Chadd wrote:

> >> You can limit the amount of cache_mem which limits the memory cache
> >> size; you could probably modify the squid codebase to start purging
> >> objects at a certain object count rather than based on the disk+memory
> >> storage size. That wouldn't be difficult.
> >
> > Any chance of having patches that do this?
> 
> 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.

Regards
Henrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://lists.laptop.org/pipermail/server-devel/attachments/20080923/d3383338/attachment.pgp 


More information about the Server-devel mailing list