From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cFZWJHkAQ2LLHwEAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 14:50:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OC08HXkAQ2LgtAAAG6o9tA (envelope-from ) for ; Tue, 29 Mar 2022 14:50:01 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0524F3A2B2 for ; Tue, 29 Mar 2022 14:50:00 +0200 (CEST) Received: from localhost ([::1]:59484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZBIN-0006UD-VH for larch@yhetil.org; Tue, 29 Mar 2022 08:49:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZBFz-0004dx-M2 for guix-devel@gnu.org; Tue, 29 Mar 2022 08:47:32 -0400 Received: from [2001:470:142:3::e] (port=34912 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZBFy-0005fC-Rc; Tue, 29 Mar 2022 08:47:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=VM7pKyCtJa9idx4mU3lDvUgzrpFma79DHebt5LuRA6o=; b=BAVbWsC0C2SVN3Gv6UC5 oVcz+8xruHJq0ZF5m0rQ135pOG3WbexQ5rjQ3I1HgqarqBeyzX9kPTKw3Cy0qUwfbNn6BpDOVieGU eYewgE5CjBKPDaP+2K9a50ZJn5bvGZ6+qvRiWTDfoEtodW6wMkxHFGVqbSFsrnPbcikTel1QkCQiT vZJ+9eAcwCHcR9HIYGKzTGdR4GzWF0/eSNb5EK3DjjRVd3p5yI9BTxd2vNq20nYjFrPXb3Ipq7IGb Gicx+yr8dY6zf0l4CYLoJW3q6978UrRbKEN0QQ6X84YGW3d3y6MWKRU4NL5f0mR8rej1Qfv+3T99i jfD6nrdlqh3ZLQ==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=38684 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZBFy-0006G3-Dc; Tue, 29 Mar 2022 08:47:30 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxime Devos Subject: Re: The Shepherd on Fibers References: <87ee2sfg9d.fsf@inria.fr> <5fe2a8d59cf6335f42702738906185d10a3ffda4.camel@telenet.be> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Germinal an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 29 Mar 2022 14:47:28 +0200 In-Reply-To: <5fe2a8d59cf6335f42702738906185d10a3ffda4.camel@telenet.be> (Maxime Devos's message of "Sat, 26 Mar 2022 13:03:42 +0100") Message-ID: <871qyl0vtr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648558201; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=VM7pKyCtJa9idx4mU3lDvUgzrpFma79DHebt5LuRA6o=; b=WLkEvERuM0HWYiJRCwyopkpKtJSUbY6jmTfR0QNliFzZH84+8w3xutTUSpSlK//5LgA/pF uk3aMI7EE4BVurdTjQJJJ4n7tC/bCUvRKkA4GAepoZ34E9gdZuWgtGmL3z5mCKNt/Vidyx alWZFJX5r54G/R87gmX5UZosVCJmeMxlTJX9owp5OfVSy8hJpY4JzSS19mX/0mlJQteXNk Kb2Uk5nj16gaimaRniztq4MEZo5qz6JdjC8Gd5dQci53Ue0kgGT1FXjC7YgHnOYhbdR1LO ppovlZ47OM5A9ISQGYx8X8mywqtDd3DW+08Ho3Oq9Sks+S8hXjKxW/iUTHYiwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648558201; a=rsa-sha256; cv=none; b=jguPkRKQf6gIeVCZJFKWYOkniEIcprNc0R7XryH06mArONGWZmAYrpkCnYz+F6FXUc74HV wXeCrGHHgx0rXtv2UKX6XsXvSu5UXHleWfVIfxOY3Rdo/UgryV/HHXRqbX7ysBGFz+dZA1 r3IKJ1636+dvREd/K/+V8pVpN82Tf3ESd2lseBWPDPOt8JssKjW4Um1vhAg+QSiIdwpru0 9rG/PHDZWoVEs7BJYCfTyeoykr3oS5H5uHmnBRP3qG4j6R7LCiPkR3qu3djNkRBSLn3G5R BobdXZXqiYIDxiJiYzEqzqXnJdnlDyvr1f1SnZ4ajxeoywnfqMQ1enpvW5CpfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BAVbWsC0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BAVbWsC0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0524F3A2B2 X-Spam-Score: -9.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: LTp5wGoWI7Bi Maxime Devos skribis: > Ludovic Court=C3=A8s schreef op wo 23-03-2022 om 23:36 [+0100]: >> Fibers is used in a single-threaded fashion, which is the main >> constraint for shepherd since it forks. That also means that fibers >> cannot be preempted, so it=E2=80=99s fully cooperative scheduling. > > When hz!=3D0, guile-fibers uses with-interrupts/thread-cputime which uses > threads. However, when (provided? 'threads) is false, it uses > 'with-interrupts/sigprof', which uses signal handlers and SIGPROF > instead. So with some small tweaks to guile-fibers, it should be > feasible to have singly-threaded, preemptive scheduling. Right. Good to know we can take that route if it turns out to be necessary. Ludo=E2=80=99.