Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2001 12:42:47 -0500 (CDT)
From:      Chris Dillon <cdillon@wolves.k12.mo.us>
To:        Adrian Chadd <adrian@FreeBSD.ORG>
Cc:        <cvs-committers@FreeBSD.ORG>, <cvs-all@FreeBSD.ORG>
Subject:   Re: cvs commit: ports/www/squid24 Makefile ports/www/squid24/files squid.sh
Message-ID:  <Pine.BSF.4.32.0109011221250.20834-100000@mail.wolves.k12.mo.us>
In-Reply-To: <200109010834.f818YEC44976@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 1 Sep 2001, Adrian Chadd wrote:

>   I've added some sleep code to wait for squid to complete its shutdown,
>   but I have commented it out for the time being as I don't know whether
>   its good practice to have your machine sleep during shutdown.
>   I'll research it some more. :)

Thanks for your work on Squid. :-)

Squid is one of the few daemons that can take a siginificant amount of
time to shut down with a large cache as opposed to 99.99% of the other
daemons that have very little or no cleanup to perform.  Along with
modifying RunCache to keep a pidfile so I could kill it, I added a
20-second wait to my shutdown sequence (with no adverse side-affects,
by the way) to make real sure that Squid could properly write out the
swap state for a 26GB cache.  If that doesn't happen, it has to take
almost a minute to rebuild the swap state on the next start.  As you
can see below, it can take over 12 seconds (not usually that slow,
though) to write out the swap state on a PIII Xeon 800 with 512MB RAM
and four cache_dir's on four 10K RPM Ultra2 SCSI disks.

Sep  1 02:30:18 cheetah squid[384]:   Finished.  Wrote 1686499 entries.
Sep  1 02:30:18 cheetah squid[384]:   Took 12.3 seconds (137131.3 entries/sec).

Whatever you can do to make sure the swap state gets written out
cleanly on each reboot by default without the user having to hack up
the scripts is appreciated.  :-)


--
 Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net
 FreeBSD: The fastest and most stable server OS on the planet
 - Available for IA32 (Intel x86) and Alpha architectures
 - IA64, PowerPC, UltraSPARC, and ARM architectures under development
 - http://www.freebsd.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.32.0109011221250.20834-100000>