squid

Steen "Miravlix" Poulsen dragon at lix-world.net
Wed Aug 2 15:49:35 UTC 2006


ons, 02 08 2006 kl. 09:35 -0400, skrev boricua:
> i tried a basic config and notice squid to be extremely slow in rending pages.
> any hints

If you find a guide, let me know, Squid performance is just black magic,
there is a million options and I've found no easy way to make decissions
on what to set them to.

Maybe some wget and time script could be made to test configurations?


This suggested list might be somewhat correct for a Small Squid cache.

Setup a huge memory cache, that at least give some performance. Use the
small objects in memory model "heap GDSF" and go for large files on disk
"heap LFUDA"

heap GDSF - The smaller the file, the better it is to cache them, since
tcp/ip packets has overhead.

heap LFUDA - Searching the disk and reading a file has a cost and it
takes a bit of work before this cost is smaller than the cost of going
over the network, so we optimize the disk for large files.

What is a good object size for memory? I'm using 100 KB with a 500 MB
memory cache.

Use a large disk object size, the larger the file, the better when on
disk, so I have a 10 GB cache and 100 MB max file size. For a company
you might have to go higher, if there is a reason to get movies or
ISO's, just two downloads of the same huge file is a big saving on the
connection.

Hmm, if I wasn't sick this could have turned into a guide, but I need a
break so here it ends.





More information about the ubuntu-users mailing list