Re: Rebulding storage

From: Christian Balzer <cb@dont-contact.us>
Date: Wed, 16 Jul 1997 15:21:38 +0200

Andreas Jung wrote:
>
>On Tue, 15 Jul 1997, Martin Svoboda wrote:
>
>> Hi all!
>> Our Squid 1.1.8 rebuilding storage (after correct shutdown) about 8.5h!
>> It was 13G (17.6 object / s).
>> Is it correct or is it too long?
>>
>
>
>Depends on the Maschine that is running squid however it sound ok.
>We are running a 2GB cache and rebuiling from scratch takes about 45mins
>on a Sparc Station 20.
>
That sounds utterly wrong, unless your system crashed or you killed #
squid rudely it should do something like this when shutting down
(from cache.log):

---
97/07/16 10:07:52| Shutting down...
97/07/16 10:07:52| storeWriteCleanLog: Starting...
[...]
97/07/16 10:08:02|   Finished.  Wrote 202565 lines.
97/07/16 10:08:02|   Took 10 seconds (20256.5 lines/sec).
---
Make sure you have a sufficiently long sleep in your shutdown procedures
to allow the store.log being written...
And thus with a valid store.log present it should restart in
fast mode, on this lowly AMD K133 system it just takes this long:
---
97/07/16 10:17:55| Rebuilding storage from disk image in /var/spool/cache
97/07/16 10:17:57| Rebuilding in FAST MODE.
[...]
97/07/16 10:19:13| Finished rebuilding storage from disk image.
97/07/16 10:19:13|    202565 Lines read from previous logfile.
97/07/16 10:19:13|    202565 Objects loaded.
97/07/16 10:19:13|         0 Objects expired.
97/07/16 10:19:13|         0 Duplicate URLs purged.
97/07/16 10:19:13|         0 Swapfile clashes avoided.
97/07/16 10:19:13|   Took 76 seconds (2665.3 objects/sec).
97/07/16 10:19:13|   store_swap_size = 3195089k
---
Dewa,
<CB>
-- 
  // <CB> aka Christian Balzer, Tannenstr. 23c, D-64342 Seeheim, Germany
\X/  CB@brewhq.swb.de | Voice: +49 6257 83036, Fax/Data: +49 6257 83037
SWB  - The Software Brewery - | Team H, Germany HQ | Anime no Otaku
Received on Wed Jul 16 1997 - 06:27:13 MDT

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