Combining poll and epoll for optimal performance

Hongli Lai honglilai at gmail.com
Tue Aug 3 13:32:50 CEST 2010


According to the libev documentation, epoll has a higher overhead than
select and poll. Zed Shaw recently confirmed these findings for epoll
and poll. He states that poll tends to be faster than epoll as long as
the active/total fd ratio is higher than 0.6.
http://sheddingbikes.com/posts/1280829388.html
He's playing with this idea called 'superpoll' in which he combines
poll and epoll: poll would be used when the active/total fd ratio is
higher than 0.6, epoll otherwise.

Might this be an interesting thing to implement in libev as well?



More information about the libev mailing list