[Server-devel] Squid tuning recommendations for OLPC School Server tuning...
Henrik Nordstrom
henrik at henriknordstrom.net
Wed Sep 24 05:38:05 EDT 2008
On ons, 2008-09-24 at 10:18 +0200, Henrik Nordstrom wrote:
> For on-disk objects about 100 bytes.
>
> In-memory objects obviously uses a lot more. Probably something like 1kb
> + the object size rounded up to 4k pages.
>
> Also disable the client db unless you need to use the maxconn acl
>
> client_db off
>
> And don't configure with too many filedescriptors. The default 1024 is
> probably reasonable for the environment. (Note: configure flag in
> squid-3, squid.conf option in 2.7)
A quick inspection using nm also reveals that there is some data
elements which can easily be trimmed down
size type name
131072 b queried_keys
131072 b queried_addr
131072 b queried_keys
262144 B server_pconn_hist
262144 B client_pconn_hist
The first three is used by ICP and can be ripped out if you do not need
to support ICP. But if you need ICP then they are needed (but can be
shrunk down a bit by limiting the ICP id range).
The second two histograms is purely informational statistics. Should be
fine to set PCONN_HIST_SZ to something much smaller such as 64, or
disable this part of the code entirely as not used other than for
statistical information available via cachemgr.
There probably is a lot more junk being allocated runtime which can be
trimmed, especially if you build with ssl support. But the fd_table
seems to be the only big one and can not be significantly trimmed by
other means than limiting the number of concurrent connections
(filedescriptors).
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/20080924/d7134528/attachment.pgp
More information about the Server-devel
mailing list