Ticket #133 (new defect)

Opened 1 month ago

Eventmachine is slow with epoll on Centos 5.2

Reported by: bartoszblimke Assigned to:
Priority: major Milestone:
Keywords: Cc:

Description

With epoll:

time ruby -rubygems -e "require 'eventmachine'; EM.epoll; EM.run{ EM.add_timer(0){ Thread.new{ 100.times{|i| p(i)}; EM.stop } } }" > /dev/null

real	0m6.975s
user	0m0.133s
sys	0m0.026s

and without:

time ruby -rubygems -e "require 'eventmachine'; EM.run{ EM.add_timer(0){ Thread.new{ 100.times{|i| p(i)}; EM.stop } } }" > /dev/null

real	0m0.323s
user	0m0.119s
sys	0m0.022s
uname -a
Linux localhost 2.6.18-92.1.13.el5 #1 SMP Wed Sep 24 19:32:05 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]

It was confirmed on different machines with Centos 5.2

It was also confirmed to happen with ruby 1.8.7.