Re: Various COSS minor problems

From: Guido Serassio <guido.serassio@dont-contact.us>
Date: Sun, 24 Sep 2006 10:57:13 +0200

Hi Adrian,

At 04.05 24/09/2006, Adrian Chadd wrote:
>On Sat, Sep 23, 2006, Serassio Guido wrote:
>
> > - AioDone, when AIOPS is used only from COSS, is not called during
> > shutdown. This must be fixed carefully.
>
>Eww! Thats my fault. How do we fix that?
>Also, should AioDone be called by COSS, or by the Squid main loop?

AioDone() now is called from StoreAufsDirDone() during squid shutdown
and calls squidaio_shutdown(). We must be sure that AioDone() is
executed once after both aufs and COSS shutdown.
I think that we could add a reference counter incremented after every
AioInit() call and decremented after any AioDone(). When the counter
is 0, AioDone is really executed.

> > - The COSS store is always declared DIRTY during the startup and
> > always rebuild, is correct ?
>
>Yup.
>
> > - When a new stripe file is created, the rebuild process is very
> > strange: it try to read from the stripe for the all configured size:
> > this fails always on Windows, with all I/O method. For this reason, I
> > must delay the coss port on Windows.
>
>Hm! Well, you could make squid-z actually write out the correctly-sized
>file if it isn't correctly-sized..

I like this, it should be more portable.

>Thanks for finding more coss corner-case issues!

This is the funny of the platform porting .... :-)

Just found another little problem:

When squid is executed, the following is printed to the terminal:
rea:~# /usr/local/squid/sbin/squid -k rotate
2006/09/24 10:54:38| COSS: max disk fileno is 6291456
2006/09/24 10:54:38| COSS: number of stripes: 3072 of 1048576 bytes each
2006/09/24 10:54:38| COSS: number of memory-only stripes 10 of
1048576 bytes each

This happens because there are some debug() called to early during
the configuration parsing.
This could be very annoying into cron scheduled jobs.

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135 Fax. : +39.011.9781115
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Sun Sep 24 2006 - 02:57:35 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:06 MDT