Re: Various COSS minor problems

From: Adrian Chadd <adrian@dont-contact.us>
Date: Sun, 24 Sep 2006 10:05:03 +0800

On Sat, Sep 23, 2006, Serassio Guido wrote:
> Hi,
>
> I'm trying the port of COSS on Windows using Ovelapped I/O, and I
> have found some minor problems.
>
> - During squid shutdown, storeCossDirShutdown() is never invoked,
> because it's registered ad sd->freefs, this is executed from
> configFreeMemory() only when LEAK_CHECK_MODE is defined, and after
> storeCossDirDone(), this is the cache.log content:
> 2006/09/23 14:29:19| aioSync: done
> 2006/09/23 14:29:19| Open FD 24
> /usr/local/squid/var/cache1/stripe
> 2006/09/23 14:29:19| Squid Cache (Version 2.6.STABLE4-CVS): Exiting
> normally.
> This is easy to fix, because it was already fixed in old 2.6 Windows port.

Ok, thankje.

> - 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?

> - 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..

Thanks for finding more coss corner-case issues!

Adrian
Received on Sat Sep 23 2006 - 20:04:34 MDT

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