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

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Wed, 24 Sep 2008 11:38:05 +0200

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

Received on Wed Sep 24 2008 - 09:38:15 MDT

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