Hi Tru64ers
I was looking for tuning suggestions for squid on a PWS 500 au with
256 MB of RAM and 1.6GB of swap running DU (TU?) 4.0C (soon to be
upgraded to D or E). This will run as a proxy server for a network of
about 100 PCs and workstations and with initially about a 2GB cache.
Attached are some tuning suggestions from Digital's internet
tuning page and one from the squid FAQ.
Thanks to John Speno, Andrew Moar, Andrew Leahy and Jun Tateno.
The advice was:
Compile squid with gnu malloc or possibly pmalloc but not
with Digital's malloc. Both Andrew Moar and Jun reported
problems with Digital malloc which Andrew solved by using
gnu malloc.
Use UFS for the cache disk - not advfs. John mentioned a
-noatimes option for AdvFS available with 4.0E and 4.0D+patch3.
I'll be using UFS but I don't know if the -noatimes option
is also available for UFS. Would be useful if it was.
I've got one more question. One suggestion from Digital's internet
tuning page is to set this socket option:
sbcompress_threshold = 600
I can't find any mention of this in the System Tuning and Performance
Management manual and sysconfig -Q says:
sbcompress_threshold - type=INT op=CRQ min_val=0 max_val=-1
What does a max_val of -1 mean? Does that mean there is no
upper limit? Anyone know what this parameter affects?
Thanks
Ian
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Ian Mortimer _/
_/ ian_at_physics.uq.edu.au ,-_|\ Department of Physics _/
_/ Tel: +61 7 3365 3436 / *\ University of Queensland _/
_/ Fax: +61 7 3365 1242 \_,-._/ St. Lucia, Brisbane _/
_/ v Queensland, Australia 4072 _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Disclaimer: Speaking only for myself.
---------------------------------------------------------------------------
From:
http://www.unix.digital.com/internet/tuning.html
The advice was to modify these kernel subsystem parameters (current
values in brackets):
socket
somaxconn = 65535 (1024)
sominconn = 65535 (0)
sbcompress_threshold = 600 (0)
inet
tcbhashsize = 16384 (32)
pmtu_enabled = 0 (1)
ipport_userreserved = 65000 (5000)
vm
vm-mapentries = 20000 (1000000)
vm-maxvas = 10737418240 (1073741824)
proc
maxusers = 2048 (128)
max-proc-per-user = 512 (64)
max-threads-per-user = 4096 (256)
max-per-proc-data-size = 10737418240 (1073741824)
max-per-proc-address-space = 10737418240 (1073741824)
Some of these might not be relevant to squid (e.g. inet) and
probably apply to a much bigger cache than ours.
From:
http://squid.nlanr.net/Squid/FAQ/FAQ.html
To increase the data size for Digital UNIX, edit the file
/etc/sysconfigtab and add the entry...
proc:
per-proc-data-size=1073741824 (134217728)
Or, with csh, use the limit command, such as
> limit datasize 1024M
Received on Tue Mar 02 1999 - 01:40:18 NZDT