Re: Patch to fix comm_incoming (squid-1.2beta22)

From: Chris Wedgwood <chris@dont-contact.us>
Date: Mon, 8 Jun 1998 11:57:55 +1200

--MimeMultipartBoundary
Content-Type: text/plain; charset=us-ascii

> It seems that poll() is emulated in libc on Linux. It is slower, and I
> could not find it in the kernel sources.

Poll exists in linux 2.1.34 and later. I think libc will use this, and if
its not there will emulate it with select.

For large numbers of fd's - poll is much faster than select. In general,
select doesn't scale well. Select also has some other nasties which make it
particularly painful when you wants lots of fd's, like having to tweak
libc, etc. because of fixed fd_set sizes, etc.

I'd be really surprised if Solaris networking is indeed faster in a real
world tests on comparable hardware. All indications I've seen is that linux
(well recent kernels anyhow) leaves Solaris for dead, especially the
UltraLinux vs. Solaris 2.6 comparisons on the UltraSparc. (The exception to
this is that presumably the Solaris stack scales better of SMP boxes, but
this will soon change).

-Chris

--MimeMultipartBoundary--
Received on Tue Jul 29 2003 - 13:15:51 MDT

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