Re: Frequency of reboot?

From: Apiset Tananchai <[email protected]>
Date: Wed, 2 Jul 1997 08:34:31 +0700 (ICT)

On Tue, 1 Jul 1997, Malcolm B.J. Garbutt wrote:

> > > My server takes not more than 5 mins to restart if it was shut down
> > > cleanly. Tom, are you shutdown squid before restart? A simplest way is to
> > > send a TERM signal to squid process and wait until it terminate. If you
> > > start from RunCache, it will restart squid in 10 seconds.
> > >
> > Oh sure Squid restarts in 10 seconds, but then it has to load in the metadata
> > for cached objects...
> Hmm Just some feedback here
>
> on a complete shutdown and restart,
> our squid
> 10 Gig hdd (1 drive)
> 128MB Ram
> P133
> takes about 20 Secs to restart, it operates fine while reading the data
>
> But on another note
> before we loaded the additional 64MB Ram it used to be unusable for about
> 40 Minutes.

Here's what from my cache.log after I restart squid.
        .
        .
97/06/30 02:03:42| 897024 Lines read so far.
97/06/30 02:03:43| 901120 Lines read so far.
97/06/30 02:03:44| 905216 Lines read so far.
97/06/30 02:03:44| 909312 Lines read so far.
97/06/30 02:03:45| 913408 Lines read so far.
97/06/30 02:03:46| 917504 Lines read so far.
97/06/30 02:03:47| 921600 Lines read so far.
97/06/30 02:03:47| 925696 Lines read so far.
97/06/30 02:03:48| ERR_CLIENT_ABORT: http://www.arrakis.es/~verde/nkfon.jpg
97/06/30 02:03:48| 929792 Lines read so far.
97/06/30 02:03:49| 933888 Lines read so far.
97/06/30 02:03:49| Finished rebuilding storage from disk image.
97/06/30 02:03:49| 934991 Lines read from previous logfile.
97/06/30 02:03:49| 934966 Objects loaded.
97/06/30 02:03:49| 0 Objects expired.
97/06/30 02:03:49| 29 Duplicate URLs purged.
97/06/30 02:03:49| 25 Swapfile clashes avoided.
97/06/30 02:03:49| Took 162 seconds (5771.4 objects/sec).
97/06/30 02:03:49| store_swap_size = 12840059k
        .
        .
As you can see, squid took ~3 mins to read ~900k metadata into memory.
During squid reading metadata into memory, I didn't notice any slowness.
It ever took much more than this (2-3 hrs) if the cache was not cleanly
shutdown.

My system is
Squid 1.1.10
PPro 200
16 GB swap
256 MB Ram
Linux 2.0.29

--
aet
Received on Tue Jul 01 1997 - 18:28:07 MDT

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