From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iAbCIt0d2mWtsgAA62LTzQ:P1 (envelope-from ) for ; Sat, 24 Feb 2024 17:48:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iAbCIt0d2mWtsgAA62LTzQ (envelope-from ) for ; Sat, 24 Feb 2024 17:48:29 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=G377PSCM; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708793309; 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=s0WhIt0wDKp/Y7MEZmt+apGsgsMkAfXRXkvaqHetBOo=; b=o0WO/7uqHvE2ElYojV+NhA6AqDh6hK9DFGINpuzdNXbE7ad+RmFR9qqmFDLA3jL+lU/i6R r074j1zYR7jKhoIt3j6CgHfIFLHIBgMAlRNgXuDTcLYgjxKEiJIvSrVmao54TiLCFsqLBW sPvzvEzONXaIJHnRFgEJAO0rlNDADm6z9Gh1WwtOQ/KsfCS2uwUA3M0w8EbBEzaUa5hVCi udXs08Of3zWXVG4YFvG6qDTU7I3quEdA3Xt2WsoxCJ36eaUyODW5nbH1WSDED30UHjewUC 5Rm3h7GumyQmjvNkmUWIagGqq0feAk5AEfqAv2/7+K5mbJNwyR+QU0pCndWD1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=G377PSCM; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708793309; a=rsa-sha256; cv=none; b=mvNJ4vmynDW0Cry183+Gy8GQQaWaeh9tVu6vvvCL31OKx0XlKk47z4fCIoyDPKG5FwQAWa q+6MQOltOGFksLhcodb0D1+nG1to3sS6196uoi/d3pyAKknhmcU00BsgsWl8J4t9GvhPZJ fbTvvkxuOsYh8OJv44ZRXdY0vgkyYMA1PzXenqj+bugsH1AfQLeCDZXqdwcoxMcGzHGntl 5XwjyHV1h5W+e/w9wUzkoFQwexZ8wsa/Ly3Uolc5ig+kaAhRxDThzzTc2CaCLjS90b/BM2 UMJlAdLyD3VCoIHqnxSaJVVoP7rYTycPlbQGF049QBZ7JurEaRGac9u+fv5qgw== 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 6A8DB2671F for ; Sat, 24 Feb 2024 17:48:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdvC2-0007ox-15; Sat, 24 Feb 2024 11:48:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdvC1-0007o4-1l for guix-devel@gnu.org; Sat, 24 Feb 2024 11:48:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdvC0-0008U8-P0; Sat, 24 Feb 2024 11:48:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=s0WhIt0wDKp/Y7MEZmt+apGsgsMkAfXRXkvaqHetBOo=; b=G377PSCMweu/YAdrY9XM rA0lOMOxx+l8blyT1yNdjoaHFmC/Nh1jBlghv9A+rU1xQbuwpYkkSwgBr4Wn+AxPUiUhupsBuCBGS DaKs5T1vzWhaQpbI1g+KbX5X4rD4O+qBqgCwnevA3Svbn7ggFqoblEsM6hnUZQzoWZgqXFTXTiii6 n6V+crAztD+58RFXFmfXaSL0800NouGVzzEk88x1pzRqc+ka7V2yzt+/u5dmQJOfmgxEjZT3/nrfZ KMjEtNJ0a4G3rTXjTIo0Q0EzINiq5U93BpBqJl+y/OdOO5bzMy2/h/GBj9h2TIXOhbo2j1CYeiD34 khlIYOx+UZj6UQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christopher Baines Cc: guix-devel@gnu.org Subject: Re: February update on the Guile guix-daemon In-Reply-To: <87cysqn2ko.fsf@cbaines.net> (Christopher Baines's message of "Tue, 20 Feb 2024 19:53:43 +0000") References: <87cysqn2ko.fsf@cbaines.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 6 =?utf-8?Q?Vent=C3=B4se?= an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de l'Asaret 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: Sat, 24 Feb 2024 17:48:02 +0100 Message-ID: <87ttlx6c71.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.56 X-Spam-Score: -9.56 X-Migadu-Queue-Id: 6A8DB2671F X-TUID: Ua6gB27JpVUm Hello! Thanks for the update! Christopher Baines skribis: > - Then there's the big areas to work on next: > > - I think I'm going to need to use thread pools for SQLite operations > in the daemon, as the build coordinator does. I think we should refrain from using POSIX threads directly and instead use Fibers to its full extent. In this case, I=E2=80=99d use a resource po= ol as done in Cuirass (and in the Coordinator too, no? maybe that=E2=80=99s what = you meant?). > - There's the low level work of setting up the build environment, the > work on the guile-daemon branch helps a lot with this, but as > pointed out by Ludo, there might be some issues with fork and > similar operations in a Guile program using threads. Right. I think one of the things we discussed in Brussels is that, since SQLite operations might block for a while, the daemon will have to be multithreaded. Which means no fork/clone, which in turn probably means delegating forking/cloning to a separate helper process. (That=E2=80= =99s also what bubblewrap does, IIUC.) > - While I've implemented some of the server side protocol used by the > daemon, I'd like to extract that code in to a module so that it's > not wrapped up inside the daemon script Wo0t! Cheers, Ludo=E2=80=99.