From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id B52011BA007E for ; Tue, 9 May 2017 15:01:01 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id B916FB5D8E7 for ; Tue, 9 May 2017 15:44:42 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 5E6A018CC883 for ; Tue, 9 May 2017 15:44:43 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 5E78D12076A; Tue, 9 May 2017 15:44:42 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from mail.atdot.net (ik1-326-23156.vs.sakura.ne.jp [153.126.180.160]) by neon.ruby-lang.org (Postfix) with ESMTP id 14F9F120754 for ; Tue, 9 May 2017 15:44:39 +0900 (JST) To: Ruby developers References: <38090d10-c6a1-5097-66af-130275d773ea@atdot.net> <2b47c736-08d8-095b-0454-2dd0b1020b03@atdot.net> <20170508030120.GB24763@starla> <94ca8f9a-7001-12d3-323d-8c5751569c51@atdot.net> <20170508063633.GA6821@starla> <4a83bbeb-b22b-61ec-a03f-657746843431@atdot.net> <20170509033806.GA27973@starla> <20170509051223.GA31857@whir> <20170509062353.GB8654@starla> From: SASADA Koichi Message-ID: Date: Tue, 9 May 2017 15:44:37 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170509062353.GB8654@starla> X-ML-Name: ruby-core X-Mail-Count: 81054 Subject: [ruby-core:81054] Re: [ruby-cvs:65407] normal:r58236 (trunk): thread.c: comments on M:N threading [ci skip] X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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