Re: Slippery Squid

From: Peter Marelas <maral@dont-contact.us>
Date: Wed, 9 Oct 1996 21:14:54 +1000 (EST)

On Wed, 9 Oct 1996, Stan Dermanis wrote:

> Hi all
>
> BACKGROUND
>
> I have a "slippery" question for anyone caring enough to help.I am a
> teacher who helps provide Internet access and support for over 60 rural
> schools in Victoria Australia.We have a Sun netra i5 which has been "rock
> solid" for nearly a year now. Thankfully I have had to do very little
> techically on the server other than create accounts etc which is the way it
> has to be since I knowledge of Unix is very limited although its improved
> markedly over the last week.
>
> THE PROBLEM
>
> About a month ago our technical advisor (who is situated about 400Km away)
> suggested that we upgrade our proxy server so we purchased a new
> machine(Intel 166/128Ram 4GB) and it was configured with Solaris 2.5 and
> Squid 1.0.12 installed.Since it's introduction the cache serving has slowed
> down considerably....like 50% of what it use to be.
>

What type of disk does this intel machine have? If its IDE this could be
the problem.

A SPARC 5 is superiour in I/O over your intel machines (even if it is SCSI). One of the main functions of any proxy server is to read/write from/to disk.

I suggest you turn on "sar".
As root do the following.
su - sys
EDITOR=vi
export EDITOR
crontab -e

Uncomment the 3 crontab entries then save the file.

Now you can monitor your systems performance with the "sar" command and
see where the bottleneck is.

>
> WHAT I KNOW
>
> I know after a number of sleepless nights that:
>
> *performance increases intermittantly.
> *files are being cached and served from the proxy but at much
> slower rates
> *pointing my http proxy to our neighbours(both using Squid) greatly
> increases performance
> *http port set to 8080 which is also the port the the Netra had the
> proxy on.
> *initally the config file was set up incorrectly and Squid
> would not fire-up resulting in the following errors
>
> [02/Oct/1996:12:06:14 +1000] main.c:412: Starting Squid Cache
> version 1.0.12 for i386-unknown-solaris2.5...
> [02/Oct/1996:12:06:14 +1000] main.c:415: With 1024 file descriptors
> available
> [02/Oct/1996:12:06:14 +1000] ipcache.c:214: Performing DNS Tests...
> [02/Oct/1996:12:06:14 +1000] ipcache.c:1112: Successful DNS name lookup
> tests...
> [02/Oct/1996:12:06:14 +1000] ipcache.c:1053: ipcacheOpenServers:
> Starting 5 'dns_server' processes
> [02/Oct/1996:12:06:14 +1000] neighbors.c:874: neighbors_init:
> Initializing Neighbors...
> [02/Oct/1996:12:06:14 +1000] neighbors.c:377: Hierachical logging is
> disabled.
> [02/Oct/1996:12:06:14 +1000] neighbors.c:889: Adding a neighbor:
> proxy.netspace.net.au/80/3130
> [02/Oct/1996:12:06:14 +1000] disk.c:203: file_open: error opening
> file none: (13) Permission denied
> [02/Oct/1996:12:06:14 +1000] stat.c:1054: none: (11) Resource
> temporarily unavailable
> FATAL: Cannot open logfile.
>
>
> Squid Cache (Version 1.0.12): Terminated abnormally.
> CPU Usage: user 0 sys 0
> Memory Usage: rss 0 KB
> Page faults with physical i/o: 0
> Memory usage for squid via mallinfo():
> total space in arena: 929 KB
> Ordinary blocks: 852 KB 30 blks
> Small blocks: 5 KB 800 blks
> Holding blocks: 0 KB 8 blks
> Free Small blocks: 68 KB
> Free Ordinary blocks: 3 KB
> Total in use: 858 KB 92%
> Total free: 71 KB 8%
> [28/Sep/1996:11:51:47 +1000] main.c:250: reconfigure: SIGHUP received
> [28/Sep/1996:11:51:47 +1000] main.c:251: Waiting 30 seconds for
> active connections to finish
> [28/Sep/1996:11:51:48 +1000] main.c:341: FD 17 Closing HTTP connection
> [28/Sep/1996:11:51:48 +1000] main.c:353: FD 18 Closing ICP connection
> [28/Sep/1996:11:51:48 +1000] main.c:372: Restarting Squid Cache
> (version 1.0.12)...
> [28/Sep/1996:11:51:48 +1000] neighbors.c:874: neighbors_init:
> Initializing Neighbors...
> [28/Sep/1996:11:51:48 +1000] neighbors.c:377: Hierachical logging is
> disabled.
> [28/Sep/1996:11:51:48 +1000] neighbors.c:889: Adding a neighbor:
> proxy.netspace.net.au/80/3130
> [28/Sep/1996:11:51:48 +1000] ipcache.c:1053: ipcacheOpenServers:
> Starting 5 'dns_server' processes
> [28/Sep/1996:11:51:48 +1000] main.c:295: Accepting HTTP connections
> on FD 13.
> [28/Sep/1996:11:51:48 +1000] main.c:311: Accepting ICP connections
> on FD 14.
> [28/Sep/1996:11:51:48 +1000] main.c:384: Ready to serve requests.
> [28/Sep/1996:11:53:38 +1000] store_clean.c:98: Cleaned 2 unused
>

--
The Fulcrum Consulting Group               Peter Marelas - Consultant
12/10-16 Queen St, Melbourne VIC 3000,Australia   Ph: +61-3-9621-2100
PGP Key -> finger maral@fusion.mel.sprint.com.au  Fx: +61-3-9621-2724
Received on Wed Oct 09 1996 - 04:24:14 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:15 MST