Don't forget about /dev/poll

When I posted my first benchmark results, I did not realize that the limit on /dev/poll's file descriptors is a soft one. Using setrlimit(2), you can change the limit (in my case from about 250 to over 64,000). With that, I've run some new benchmarks. These are the same as before, but now I'm running them with /dev/poll as well.

The bottom line is that, as expected, it scales very well (similarly to event ports). Its requirement for the use of synchronization between multiple threads is a remaining problem.

Without further adieu, here are the updated results:






Thanks to Alan Bateman for pointing out that /dev/poll can, in fact, handle a larger number of file descriptors.



Comments:

FYI, I just released libevent 1.2 which includes the event port support you contributed. I hope it still works :-)

Posted by Niels Provos on October 15, 2006 at 10:01 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

On Fishworks, Sun, and software engineering

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today