Re: 2.3.DEVEL2 now on the web site

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 04 Aug 1999 20:27:06 +0200

Arjan de Vet wrote:

> FreeBSD has only userspace pthreads at the moment. They never worked
> really well with Squid but I recently saw some messages on the cvs
> commit mailing list about new bugfixes; haven't tried those yet.

userspace threads won't help Squid. Squid's async-io code will only work
with kernel based threads. It may work with a thread package which
automatically translates threaded read/write/open/close calls to aio,
but I doubt that the FreeBSD userspace threads do this.

> >seen some references to a project porting Linux Threads to FreeBSD, but
> >I could find very little information on it (the project seemed to have
> >stalled),
>
> I tried it some time ago, so far I could see it worked OK with Squid.
> The URL is http://lt.tar.com/.
>
> FreeBSD has however an experimental implementation of POSIX 1003.1B
> AIO/LIO. Christopher Sedore is currently improving that implementation,
> see the message below. He made a comparison between the select() based
> approach and an AIO based approach, the results look interesting
> although I have no idea whether the test he did resembles the I/O
> behavior of an application like Squid correctly.

Sounds promising, and the new Squid 2.3 code should be fairly easy to
rewrite to use aio rather than the internal threads based
implementation.

/Henrik
Received on Tue Jul 29 2003 - 13:15:59 MDT

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