From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uCWhHFn63WKLYQEAbAwnHQ (envelope-from ) for ; Mon, 25 Jul 2022 04:05:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MJWgHFn63WJxbgAAauVa8A (envelope-from ) for ; Mon, 25 Jul 2022 04:05:13 +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 4572A2D973 for ; Mon, 25 Jul 2022 04:05:12 +0200 (CEST) Received: from localhost ([::1]:51230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFnT4-0001BX-QI for larch@yhetil.org; Sun, 24 Jul 2022 22:05:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFnSw-0001BP-4S for guix-patches@gnu.org; Sun, 24 Jul 2022 22:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59218) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFnSv-0007pm-S3 for guix-patches@gnu.org; Sun, 24 Jul 2022 22:05:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFnSv-0000xF-Ly for guix-patches@gnu.org; Sun, 24 Jul 2022 22:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56618] [PATCH 0/2] Let 'guix gc -d' delete old Home generations Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Jul 2022 02:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56618 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 56618@debbugs.gnu.org, Andrew Tropin Received: via spool by 56618-submit@debbugs.gnu.org id=B56618.16587146603611 (code B ref 56618); Mon, 25 Jul 2022 02:05:01 +0000 Received: (at 56618) by debbugs.gnu.org; 25 Jul 2022 02:04:20 +0000 Received: from localhost ([127.0.0.1]:48967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFnSF-0000wA-Mx for submit@debbugs.gnu.org; Sun, 24 Jul 2022 22:04:20 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:40924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFnSB-0000vr-3L for 56618@debbugs.gnu.org; Sun, 24 Jul 2022 22:04:18 -0400 Received: by mail-qk1-f182.google.com with SMTP id g1so7670556qki.7 for <56618@debbugs.gnu.org>; Sun, 24 Jul 2022 19:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=XDw3AzNz64lwy/cxznzYTN3oIcz7118NmyMSOIdX4Go=; b=MnJgaQAV7n3tJW9pTNYrnzW7Sr95NwbPvxhfpef+8lSyGSSQZ8MyKKi6bsc3T8A8i9 KaxZSF8I8Nv9hohfrjI0kDdd9+3yewXlSQXrd2ZG52f3KW8WS5U3GSc1VnBmvtPg3ksH KVyK9YV0ysibT5AzD5cadOvr55vieI3VOGAlpr/2ChXd/Q+skH/bcZV+ZUFENmqyibb8 IyLQXFBklCSslyY900hFwyVCGfWxrU3oyovls4NHahkJDCkbnbRMz1VYL53ahvO+ENhr 5MaOCz8g6dWY2mxW7gMNv9tqP0i22pyT8Y45kexxyk+6AgfrFf1z2b3hCqUsfdHIKaF8 rqvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=XDw3AzNz64lwy/cxznzYTN3oIcz7118NmyMSOIdX4Go=; b=wnmolPaRreqBfCfUQuX9ny3YHXZ/qkaP/WhqvTVLETS3wPlTbYPIzzKDk5PZcE0SP+ BsQ0XhommGLfmuCmY8zok+AIJplLok0CSOOcJQSZvv5hKeb5UeIezhriD+/DALWHXtRw UwsTHeFdDProSBPudCPO7WAR7M5Zym+17mASBfgxMA6xd7L+5BZQgIRiVvb0tuEYsvxq v4ndGbZTjaQ4um8e0bzba66vCZ6OGpFFGkcSjSHzV3mIQv0kRD45acqhegB1P1nbmolO 3UU3RkPTH4q5d4A+ZALkE9/ne80nJBL8Y+hVymM7ENYcQwChb13aU3Mtyu9Ji56Ihf55 bHjA== X-Gm-Message-State: AJIora9jNcKLFW5Ae62GuXzjJg/thTJrW6KXJlyss6XNEBEvg9Tkw+CK zJKAzC86pjAwHgBX1nPjTF2QBq4mcUQ= X-Google-Smtp-Source: AGRyM1sx4WRZYL7OEYax4NMI1ghiiwREu2wiw7nq8oXRX8nSjSquNavJzLeJLqEf54Dpb92ZeYb0sQ== X-Received: by 2002:a05:620a:15ce:b0:6b5:f69c:3432 with SMTP id o14-20020a05620a15ce00b006b5f69c3432mr7607473qkm.587.1658714649203; Sun, 24 Jul 2022 19:04:09 -0700 (PDT) Received: from hurd (dsl-148-23.b2b2c.ca. [66.158.148.23]) by smtp.gmail.com with ESMTPSA id bp20-20020a05620a459400b006b5f9b7ac87sm8358578qkb.26.2022.07.24.19.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 19:04:08 -0700 (PDT) From: Maxim Cournoyer References: <20220717151930.23383-1-ludo@gnu.org> <87k08ad1b7.fsf@trop.in> <875yjtwlo4.fsf@gnu.org> <87bktlbfjo.fsf@trop.in> <87v8rqn8a7.fsf@gnu.org> <87y1wmp6qv.fsf@gmail.com> <87zgh1gwz0.fsf@gnu.org> Date: Sun, 24 Jul 2022 22:04:07 -0400 In-Reply-To: <87zgh1gwz0.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 22 Jul 2022 14:20:35 +0200") Message-ID: <878roi9cdk.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1658714712; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XDw3AzNz64lwy/cxznzYTN3oIcz7118NmyMSOIdX4Go=; b=Xsh1tuKMOArmeU2edstIS5Wr5WBhmNz54p9tumwf68j5cB8q8U343/ZlVquCwPqUoqf52B F773+0/2skF186kjPj/QTBcsBYfpztV3W6UoMTcWxY3LOK/xmBM6sBwAL9xxWn/xxAJRWj Uro/rZ4wg/IkqnCXZ3kLZGdwCByX3graL9kcadgAYfHxUivatuSsub/mrDMIcpztfpfmDm Oggo69gP6ZuEc+bpqX4Zhdw78k7MEKxwT1LV8EkzLhk0zepNGo+dJB4pqIH4cbMu43sEwH cKpSZLEKygLV1q31RfdSRTMiuw/qnnQNWsT7tD8ClNH2nHN395s5plelFJoiqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658714712; a=rsa-sha256; cv=none; b=O01M4IRx3Li9JiCFpeVK9W64NTrAUe4Pw5ROpvHsqtuGhj7sbFrLyKRD8EUqVHvRiM31xv zt64ONlCf24ntPjYbTB5o8C9YsF2UYZp3fe4ix1K+1vswmbz3S9bO2ZnABnIwE0jh/oco+ lCN/W86jD2KleizZARqM8uBo4hj0Nx6Bs25mIMLAHvCsQWe8VfA6uA1qXFF+AZVPOstuky +ydLIe7BsSy0z2LG8SMYZaZ6i9HQLInkT4CE9UmU6fdEeIN5/DI6h2xNkuibrbqsRkksdf EmE99koeeW5OwV8JycpJuJVq3Ko5erIFpj5KhRfCJPWQcrF8xQqPPN2271xVoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MnJgaQAV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.47 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MnJgaQAV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4572A2D973 X-Spam-Score: 4.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: TNdb9SL0tO+I Hi Ludo, Ludovic Court=C3=A8s writes: > Hello, > > Maxim Cournoyer skribis: > >> Ludovic Court=C3=A8s writes: > > [...] > >>> It=E2=80=99s an expected annoyance: to determine whether a graft needs = to be >>> applied, we first need to download/build the ungrafted variant, which is >>> why you=E2=80=99re seeing this (this is worsened by the fact that many = packages >>> are candidates for grafting currently on =E2=80=98master=E2=80=99). >> >> A perhaps naive idea: could we register GC roots for the ungrafted >> variant when grafted? To avoid having to fetch it anew following 'guix >> gc' ? > > And then we need code to remove those GC roots at some point, etc. To > me that seems like a can of worms and lack of separation of concerns. OK. > A related topic is GC. If personally only ever use =E2=80=98guix gc -F25= G=E2=80=99 or > similar; I almost never run =E2=80=98guix gc=E2=80=99 without arguments. = Perhaps we > should more clearly advocate that and/or have a Guix System service > enabled by default that does something along these lines. If I'm not mistaken, the problem with 'guix gc -F' (or guix gc) in general, is that it doesn't start by deleting the *oldest*, i.e. the store items the user no longer use/cares about. So you could have 'guix gc -F25G' prune these recently fetched non-grafted variants again and again, if you are unlucky. Perhaps we could arrange for 'guix gc' to start deleting oldest items first (as a default behavior)? Then the above advice would provide more value. Thanks, Maxim