* Edwin Eyan Moragas <[EMAIL PROTECTED]> [2008-04-19 07:34]:
> been reading the select(2) man pages and it mentions poll(2)
> being more efficient in most cases. this makes it obvious to
> discard the use of select(2) in writing new servers.

yes. poll is the way better API, easier to use, easier kernel-side, 
avoids a lot of problems (common!) improper use of select() brings, ...

> i've come across some performance benchmarks which is trying
> to use kqueue(2).

using kqueue directly is painful. I'd recommend libevent if you really 
want to go that route.
That said, kqueue really only pays out when you have _lots_ of 
concurrent connections, say, >10000.

> the question is, which one is more useful when writing new servers?
> kqueue or poll?

programming w/ libevent is convenient at times, the decision poll vs 
libevent should not be made based on performance considerations, 
exception beeing the above massive concurrent connection case.

-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam

Reply via email to