From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YO2VMEIBP2KezwAAgWs5BA (envelope-from ) for ; Sat, 26 Mar 2022 13:04:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QGsDLkIBP2K9KwEA9RJhRA (envelope-from ) for ; Sat, 26 Mar 2022 13:04:18 +0100 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 6C7B1153E9 for ; Sat, 26 Mar 2022 13:04:18 +0100 (CET) Received: from localhost ([::1]:56656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nY59V-00049a-Ix for larch@yhetil.org; Sat, 26 Mar 2022 08:04:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY592-00049Q-0f for guix-devel@gnu.org; Sat, 26 Mar 2022 08:03:48 -0400 Received: from [2a02:1800:120:4::f00:13] (port=37310 helo=baptiste.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nY58z-0008HQ-Dp for guix-devel@gnu.org; Sat, 26 Mar 2022 08:03:46 -0400 Received: from [172.20.10.9] ([213.119.160.242]) by baptiste.telenet-ops.be with bizsmtp id B03i2700A5E5NyV0103iTb; Sat, 26 Mar 2022 13:03:43 +0100 Message-ID: <5fe2a8d59cf6335f42702738906185d10a3ffda4.camel@telenet.be> Subject: Re: The Shepherd on Fibers From: Maxime Devos To: Ludovic =?ISO-8859-1?Q?Court=E8s?= , guix-devel@gnu.org Date: Sat, 26 Mar 2022 13:03:42 +0100 In-Reply-To: <87ee2sfg9d.fsf@inria.fr> References: <87ee2sfg9d.fsf@inria.fr> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-yHisJHhyXJcCcswUXE7M" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1648296223; bh=l5EuyciHG4L/dWgSRX6s/YtpVyaJlqLXSl1htmAvAI0=; h=Subject:From:To:Date:In-Reply-To:References; b=DpCh5Oe8uU9ky5hBLsenGIwDecFtkt4oaI8tZm55cmkAm/ZK1imq4YPYkdfizwKKE N5or4lqM28POOAtswZba/NeT3Zt0qFbIVWnMw95sG2/0DL5RZ9lE3Cw13OgEwdc/kt WQfuIz3RLZy3bQ/vi4ZOJG1dYEHYl/3Ja1GI1OlMtiBDLBfXKyo0E89RMOmFi0IkZ+ mb2LbEYWdRp6cLp8zHq5r+ijb58w3JS0zuetrag6DSJGUeYjOyXl4J0TSryJLYLCDn zKXwTL7S7dCoonCo+6+DxiDH5smLe3+sQBVueCMsRU1b/dIIaLklGA0OrRYC3IFR3Z qyHezhtnCr8dw== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:120:4::f00:13 (failed) Received-SPF: pass client-ip=2a02:1800:120:4::f00:13; envelope-from=maximedevos@telenet.be; helo=baptiste.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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: , 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=1648296258; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=l5EuyciHG4L/dWgSRX6s/YtpVyaJlqLXSl1htmAvAI0=; b=EuEJ1J5mD0NA9CQj7wIw3uT3zJTPtQPMvtA23B1o3NL3IJP9SWD6l8OXmID0nk2+Dky8Pf 0DBgl2oOmtreMlEhe9ym3408jA8qBs3ScZTY9/C8e0TwxEGNeAN7rwiNAfOqgoUef03VcM KvFRLej6Or9zvKEBAWbXu8KlsaOabi7hZiM3777avAtxIuXeEKke0U8KaamjVP6FVmqea3 D0dOEaveaMjc11Lcaa118VhbYhFnDQqwO0G38YpNg/8WbbPBKG+4EeTnDa1disIJ55ekSJ 1Y8U69bq8j5pWoSNpKpSDZRxVI56tNJwIL4yX9VejhhlCM2ctmRJx/Z2ONVmVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648296258; a=rsa-sha256; cv=none; b=PzdJ2q8Fpn+1uMmACkVj3OBDO6sI0ecnUtNnhn/x4IgvdupgBm5kMgPSrqrtCkaf/3lNj5 X10RJ/I/vby7UgY3hnORUO2NxAIJIMNGmCKcOP2TRfwuQ31PHFNuihRKbMOUWl8qOAF9A8 teLCK3ngomAOUTvNHdQGqk/yQ/Uf/WZGXCqJvaQcLhP1cim6YTcbwSZkJib0N05CpI3TFG +1NZvESblg3xr5pmIWY4546yaOFA6cHK+LpT07y5YcKxUUeICMZDUWt+8HHhfwpTSBKUmU WykEaM2G77VyrHb/VQtiQ4c64QHJXbwdlBbtxkrWK6yx0pOGQCsEfJm7CVviAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=DpCh5Oe8; dmarc=pass (policy=none) header.from=telenet.be; 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: -6.28 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=DpCh5Oe8; dmarc=pass (policy=none) header.from=telenet.be; 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: 6C7B1153E9 X-Spam-Score: -6.28 X-Migadu-Scanner: scn1.migadu.com X-TUID: QHJqvky1KEnX --=-yHisJHhyXJcCcswUXE7M Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. Greetings, Maxime. --=-yHisJHhyXJcCcswUXE7M Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYj8BHhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7gvbAQCWiWD/InTwjp2t7WCxkkogV+a1 2cJ+D3Sy6HMbE+dFTQD/QEYbA96XIGSq36AFKTyYUbDUjTbhFqnJbrgubTATcwM= =M38J -----END PGP SIGNATURE----- --=-yHisJHhyXJcCcswUXE7M--