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

From: SASADA Koichi <ko1@...>
Date: 2017-05-09 06:44:37 UTC
List: ruby-core #81054
On 2017/05/09 15:23, Eric Wong wrote:
> OK.  I also started to work on making GVL switch nd remaining native
> mutex/condvars faster on Linux by using futex.  However, it is only
> faster with multi-core, single core performance is a little slower.
> 
> 	https://80x24.org/spew/20170509062022.4413-1-e@80x24.org/raw
> 	(I still use my Pentium-M laptop from 2005 :)

Let us clear the your plan.

Maybe we have several tasks.

(1) lightweight fiber switching by pointer-exchange
    (w/o copying context).
(2) auto-fiber swiching
   (2-1) implement with epoll/kqueue/select
   (2-2) design APIs to use it
(3) Implement GVL with futex (in your comment)
(4) Re-implement Queue (some days ago you wrote)

(please add your plan if you have others)

Do you have a schedule? (priority?)

-- 
// SASADA Koichi at atdot dot net

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

In This Thread