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 8MaVJq8GQ2JtRQEAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 15:16:31 +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 gJ1FH68GQ2KteQAAG6o9tA (envelope-from ) for ; Tue, 29 Mar 2022 15:16:31 +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 221A03B25F for ; Tue, 29 Mar 2022 15:16:31 +0200 (CEST) Received: from localhost ([::1]:53730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZBi1-0006PK-WC for larch@yhetil.org; Tue, 29 Mar 2022 09:16:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZBhr-0006OR-5r for guix-devel@gnu.org; Tue, 29 Mar 2022 09:16:19 -0400 Received: from [2001:470:142:3::e] (port=35446 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 1nZBhq-0001sW-TI for guix-devel@gnu.org; Tue, 29 Mar 2022 09:16:18 -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=pJf6JuQvIgKyEjGgChiJ0wwoPFYglXZf4riQ0rVmbd0=; b=Ov8rU0ZePyJNkNAnp8yj GZApZLcmVO8hV+AEWfKakEU3mldeVMQ6ZgnGKGhmx5M7RnnYHgg+KnmJ8QK6mOcbRGqNKtfosjonQ 88W4Dfi5WLouQOGVlsUi1mD+ruto9yz4P5EG5malRdZezNb7MUEmv5Os0MTneYqxk6ntT1YgDxCzN SQbc4JoAqSLV7YMt7BvTwUq2rEJ1GihzLClzJbScM6AzhPvnnq+5l6nkIH4RTygJ2QHKVk+L3dt+P dkS9+oAiUNR9Fk/W/2ebpj6gOoHpGEPgI+R9YyDBi96P17oc5Sm3fZEBSviKX/ZTpJcULk4bMem+Q 8bjXc/aE/7DKcg==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=38692 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZBhq-0004Td-Ga for guix-devel@gnu.org; Tue, 29 Mar 2022 09:16:18 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: guix-devel@gnu.org Subject: Re: The Shepherd on Fibers References: <87ee2sfg9d.fsf@inria.fr> 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 15:16:15 +0200 In-Reply-To: <87ee2sfg9d.fsf@inria.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?= =?utf-8?Q?'s?= message of "Wed, 23 Mar 2022 23:36:30 +0100") Message-ID: <871qykzyow.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: , 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=1648559791; 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: 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=pJf6JuQvIgKyEjGgChiJ0wwoPFYglXZf4riQ0rVmbd0=; b=RI4P8r+mHJLsVoSXZ3KK4Irp+ZYANAfkyevHvb1KaAG7h5B6ox85JbAIx4bK3xJ4ANzVK1 5dflqgy5SA8WZ0T4Uj3aMc4GCLSvUejIisBsDTjG76UTdOOBTX+oTB/Pehs05OiVCKA0Hc LcskUmIZGjCzuVhE1RMk8iBgc9raUQTF7pd705eAVt52vC29KMZ2K8VNC82ZxrzksUKVit n9kpnHS/IvVFbiMAcQ80Wh7mrIjcE2AWsfe/OTxRG7uSrIHUqseYPrAuRb3Teo429o4cQp ognakIVOCSOJxIRLYGGLqEWzuu22dSWsYp1yE6fsSUvpjz+6FfPmxlIUGriDmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648559791; a=rsa-sha256; cv=none; b=OhAHeCqGVjqUXuL47GmX71b69poHOs/eVxpsJcwwiMsg5OdMjnSVVeP/s9eabdScXx7CRh nPF5QVFqP0tQ9Gg+zKXN1rRe16bUn9KVOVghU9FMezbbyUOyRpguJK6+hymJuPK8Z+Z6O1 h9zMN9OWC9hyACcJUup6sOOc4Nc92h5m6tqTzLK761FwUN38I/ULXo5pHCU5Zj9qFxYAdt 7ehYfr2v9gXbEAazcANAzGcw033C0Xxgim/lWDs100DFe7fbUk+EwW6UyoxDbBNQTTTUQU t1nGlN959gGQpHE6ebLHDloFpAs5zPxvhpTBKLEYm4Av+ySf+ZM6RzaIU+KsVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Ov8rU0Ze; 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: -6.87 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Ov8rU0Ze; 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: 221A03B25F X-Spam-Score: -6.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: bRuKKAq/nb6R Hi! Ludovic Court=C3=A8s skribis: > I have pushed a =E2=80=98wip-fibers=E2=80=99 branch of the Shepherd: > > https://git.savannah.gnu.org/cgit/shepherd.git/log/?h=3Dwip-fibers > > The goal is to make shepherd (the daemon) use Fibers=C2=B9 for concurrenc= y. The latest news are: 1. Support for inetd-style services=C2=B9, where shepherd listens and accepts client connections, starts the daemon and hands it the connection socket=E2=80=94e.g., =E2=80=98sshd -i=E2=80=99. Each daemon process is handled as a =E2=80=9Ctransient service=E2=80= =9D, a new type of service that is automatically unregistered when it=E2=80=99s done. = You can see those when running =E2=80=98herd status=E2=80=99; in the OpenS= SH example, you=E2=80=99d see =E2=80=98sshd-1=E2=80=99, =E2=80=98sshd-2=E2=80=99, = etc. corresponding to individual SSH client connections. 2. Support for systemd-style =E2=80=9Csocket activation=E2=80=9D=C2=B2, w= here shepherd listens, spawns the daemon when the first request arrives, and hands it the *listening* socket. From the user viewpoint, this one is similar to the existing =E2=80=98make-forkexec-constructor=E2=80=99 type of service. The main= difference is that its =E2=80=9Crunning value=E2=80=9D as shown by =E2=80=98herd = status SERVICE=E2=80=99 is initially a socket and then becomes a PID. My plan is to merge =E2=80=98wip-fibers=E2=80=99 in =E2=80=98master=E2=80= =99, publish a release candidate, publish a =E2=80=98wip-=E2=80=99 branch of Guix that we can use = for testing, and hopefully release the Shepherd 0.9.0 within a week or two. Ludo=E2=80=99. =C2=B9 https://www.gnu.org/software/inetutils/manual/html_node/inetd-invoca= tion.html =C2=B2 https://www.freedesktop.org/software/systemd/man/daemon.html#Socket-= Based%20Activation