Re: multiple squids

From: Adrian Chadd <adrian@dont-contact.us>
Date: Tue, 17 Oct 2000 21:40:41 +0800

On Tue, Oct 17, 2000, Henrik Nordstrom wrote:

>
> > Depends how it is implemented. See, if we use aio, we can schedule reads
> > of the file from multiple processes and have the reads block whilst the
> > object is being written. Squid can't do that now due to how the storage
> > manager is written but I don't imagine it'd be that hard.
>
> The first problem is that you must know that the object is being
> written. Once you know this the rest is quite trivial. An I imagine that
> it is quite trivial to know that the object is currently being open for
> writing...

You might not even have to care - if the object exists, you schedule a read,
and if the data hasn't been read yet the AIO doesn't return.

-- 
Adrian Chadd			"It was then that I knew that I wouldn't
<adrian@creative.net.au>	    die, as a doctor wouldn't fart in front
				      of a dying boy." -- Angela's Ashes
Received on Tue Oct 17 2000 - 07:40:47 MDT

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