From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id E2fGA89ov2CLtQAAgWs5BA (envelope-from ) for ; Tue, 08 Jun 2021 14:55:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id fNc0Os5ov2D8JgAAB5/wlQ (envelope-from ) for ; Tue, 08 Jun 2021 12:55:42 +0000 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 4DFD31784C for ; Tue, 8 Jun 2021 14:55:42 +0200 (CEST) Received: from localhost ([::1]:58290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqbGf-0003FZ-2S for larch@yhetil.org; Tue, 08 Jun 2021 08:55:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqbGU-0003FI-VM for guix-devel@gnu.org; Tue, 08 Jun 2021 08:55:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60478) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqbGU-0005Xj-Dh; Tue, 08 Jun 2021 08:55:30 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34132 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqbGT-0000yR-Ii; Tue, 08 Jun 2021 08:55:30 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: =?utf-8?B?4oCcZ3VpeCBnY+KAnSw=?= auto gcroots, cluster deployments References: <87im3qq57z.fsf@elephly.net> <8735utvvtu.fsf@gnu.org> <8735uplioz.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 Prairial an 229 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, 08 Jun 2021 14:55:28 +0200 In-Reply-To: <8735uplioz.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 14 May 2021 12:21:16 +0200") Message-ID: <87mts0h5xb.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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623156942; 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; bh=m+MTCE1VZ/JkOrn54uPxsOgiHWSBHX7yzwt8fX2G3cU=; b=QA0oXel3ftlZBHhjdBmYpAOgrwjBDXadiQvZw+W7IhG/ydCpCesu+9xE0PQh3O3WUl4EXD jJaezvXlfceGGh0QIhLwJqSkKWKTTv6LqZIHPHY8dZglmBVOjYiafjXkatGS99wwQev+Je 57yKfr6ilPp+vrZkKbBiIMDt5Z3q1z4v9wOd9baFVuDA8zbIl3vrX14m95LiO902E9xzco dbXG0D37YSQtdV1YZWpnJdIte6g5ZX+n5/WHZyOmygELPrmdYCw7R0kwjocZm/DqnSxgq9 Q00TgAniyTaU+9yR8lztNJfe1WRn3MmetjcA7UfCrYB2J2O+sRykjRvIe2dQWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623156942; a=rsa-sha256; cv=none; b=AVRFHCf+7MIKYH1i3Y0V1wLNCf90KKIyaMlYGVp9VWm6eOTyaRIsUfSeU00Qb87IiARBXX WbyGNGrW+8QtG3s15C+SLwuZgrJ9aVlBLb8q7wNlNITuC5ywgDUFWKbWD0TPAW6S1ARlik 8AHd1NNNBgN0ECGJ95yBbvgUKNMpakuMa/QOPdJzbaGnqcIDXPQKElwgy8tuvge5t6VMvK rxP/25THFCM7l+vCUW++Ps0oJZ6yYrdGEIzsXkqcPeGyNKSgIdlltxB1PqxEl8ZrjFve6U yGDpb9AfZVgqMbWh1L74EERvNnj8Vn1xr4gpAloesm5XJooIwNUDvDaEpDOKZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 4DFD31784C X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: ss4xS16EytI2 Hi, Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: > >> Hi! >> >> Ricardo Wurmus skribis: >> >>> There are two problems here: >>> >>> 1) I don=E2=80=99t think =E2=80=9Cguix gc --list-dead=E2=80=9D (or =E2= =80=9C--list-live=E2=80=9D, or more >>> generally =E2=80=9CfindRoots=E2=80=9D in nix/libstore/gc.cc) should del= ete >>> anything. It should just list and not clean up. >> >> Maybe =E2=80=98findRoots=E2=80=99 could populate the list of stale roots= and it=E2=80=99d be >> up >> to the caller to decide whether to delete them or not? > > Yes, this would be better. It already does this for links whose > targets exist but cannot be read. OK. >>> 2) For cluster installations with remote file systems perhaps >>> there=E2=80=99s >>> something else we can do to record gcroots. We now have this [...] >>> [=E2=80=A6] we would >>> record >>> /var/guix/profiles/per-user/me/auto/8ypp8dmwnydgbsgjcms2wyb32mng0wri >>> pointing to=20 >>> /gnu/store/ap0vrfxjdj57iqdapg8q83l4f7aylqzm-profile, and >>> then point /home/me/projects/mrg1_chipseq/.guix-profile-1-link at >>> that. Yes, removing >>> /home/me/projects/mrg1_chipseq/.guix-profile-1-link would no longer >>> free up the profile for garbage collection, but removing >>> $(readlink /home/me/projects/mrg1_chipseq/.guix-profile-1-link) >>> would. >> >> Yes, but how would per-user/me/auto/* be cleaned up? > > Yeah, that=E2=80=99s an open question. > > I get the appeal of having these things be cleaned up automatically > when the link disappears, but if we added this extra layer of > indirection for cluster deployments this would become manual. > > Can we make this configurable perhaps=E2=80=A6? On my cluster installati= on > I=E2=80=99d rather have a cron job to erase the stuff in per-user/me/auto= /* on > my own terms, than to have =E2=80=9Cguix gc=E2=80=9D fail to resolve link= s and > consider it all garbage. Sure, why not. Do you have configuration options in mind? I have troubles wrapping my head around this problem. Should we split it into smaller chunks in bug-guix? Thanks, Ludo=E2=80=99.