Subject: Re: FIONWRITE proposal
To: David Brownlee <abs@NetBSD.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 10/19/2004 11:32:28
--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Oct 19, 2004 at 09:07:37AM +0100, David Brownlee wrote:
> I may be missing something here, but what is wrong with
> setting SO_SNDLOWAT on the socket and then using poll() or
> select()?
The fact that the application isn't written as one large event loop. It's=
=20
a multi-threaded app. Since the work is done in the threads, to move to=20
anything where poll() (well kevent()) would be useful would mean adding=20
more thread context switches. We'd have to hand the transmission off from=
=20
the thread generating data to the one doing the poll, then had control=20
back to the worker thread when it's done.
Take care,
Bill
--17pEHd4RhPHOinZp
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQFBdV28Wz+3JHUci9cRApb2AJ93SBOo2wK8B38izNL6cTb+cDTYBwCfYnTd
mfjuNkTHmUptLZsHhwY0p7U=
=N2qG
-----END PGP SIGNATURE-----
--17pEHd4RhPHOinZp--