[Eventmachine-talk] Ruby I/O

Francis Cianfrocca
Tue, 13 Mar 2007 05:54:10 -0000

On 3/13/07, Tony Arcieri <tony at clickcaster.com>
wrote:
>
>  I''ve seen a number of interesting things in gprof, including a
number of
> platform-specific oddities.  On Linux, during an I/O handling event loop,
> Ruby spends a relatively large amount of time calling sigprocmask() (this
> doesn''t occur on MacOS X).  When running EventMachine, there are a
large
> number of calls to gettimeofday() (which I assume EventMachine is using for
> its timer scheduling).  However, the overwhelming number of calls are to
> select(), although this number decreased with an increasing number of
> connections.



how expensive are the gettimeofday calls? Ruby calls sigprocmask because it
uses a signal to schedule its thread scheduler.

I''m running out of excuses to do an epoll implementation of EM.
Incidentally, did you guys get a chance to look at the HTTP server I sent
you?
-------------- next part --------------
An HTML attachment was scrubbed...