[ruby-core:81052] Re: [ruby-cvs:65407] normal:r58236 (trunk): thread.c: comments on M:N threading [ci skip]

From: Eric Wong <normalperson@...>
Date: 2017-05-09 06:15:20 UTC
List: ruby-core #81052
SASADA Koichi <ko1@atdot.net> wrote:
> On the other hand, aggressive I/O request can conflict by multi-thread
> app. But current ruby threads don't run in parallel, so that it seems no
> problem (hopefully). It seems can cause problem on parallel running
> Guilds (but not available now).

Yes, it's pointless to have so many epoll|kqueue with GVL.

I think Guilds:(epoll|kqueue):nprocesso s can be 1:1:1
relationship.  I think memcached is similar in that way with
threads:event_loops:nprocessors.

nginx and cmogstored both allow using multiple processes for
multiple event loops.

Guild won't get around FD allocation contention in processes,
right?  In other words, guilds will still be implemented with
separate native threads in same process, but with separate
objspace?

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread