From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eCFAIS2ch2Jo8QAAbAwnHQ (envelope-from ) for ; Fri, 20 May 2022 15:48:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8P4JIC2ch2IjaQAAG6o9tA (envelope-from ) for ; Fri, 20 May 2022 15:48:29 +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 4295B2AF04 for ; Fri, 20 May 2022 15:48:27 +0200 (CEST) Received: from localhost ([::1]:41466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ns2zS-00039L-EB for larch@yhetil.org; Fri, 20 May 2022 09:48:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ns2z4-000381-2l for guix-devel@gnu.org; Fri, 20 May 2022 09:48:02 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:56142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ns2z2-0007PM-ET for guix-devel@gnu.org; Fri, 20 May 2022 09:48:01 -0400 Received: by mail-wm1-x32f.google.com with SMTP id ay35so2964284wmb.5 for ; Fri, 20 May 2022 06:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=tAqTRj0I/7uicf2jylMI0GXgISiiBJHEpHU4XcFzALQ=; b=OrRb/ZqWlabxhsZVKYS/DEHal4C2JqnplnS0/2AiXGTTm+eFB2dMYm8NOpgPaE2zkt M0UPmMT23o0YX9SOyLMzzMZnQluVPTAVpNo8PLpjD9Hd+wF+w4jH07mQj+E+lUAVAbOh 8YtgPqZ8PsGfrdEF6UBUJPNASJ/kpnnLjhQCHxTDJiCiogUlum+Q+Sn3uVLofC/XnDtE k81HqeLyPpnJrzbIxRBVGBtWFmUUq2INvd7bi/SDWFOgERvQ72r26VwVZpa3nnZRAupz /CgC0SblUdVI8WDwwL5msuGtNDBBPjcQy5spZirkd2U1grzgNC/C7A3l8ldRJCeILkVz 9WNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=tAqTRj0I/7uicf2jylMI0GXgISiiBJHEpHU4XcFzALQ=; b=p1e8ih2pI7lrYOOhI+Ft2K7biaWVqbSshoQWWKegVal7G9Qr9zzPBdDyD8nR6hbC6V nA8A0Fx9rLlopJqPQG6zNUXWZ0Nz1LBEYK9DWH5a9NGYYaFkHSHOOEquzgcUkY0Wjl47 0giSQY/bGukYt7f/X+uUTxsBhwZeIbgH76PWKiSAuG9H98AAen8hGUtEMdKTycr2qOZl /PDMg+dNmbcfCfiQG4M98QmCTUeKjUb9L1DxvjUIw5+OsUvIQfY8Uat14gZCLD2OMVi9 oi5KUbjv9r/lqnDixwwYlmH374u6wolA7zkEzEPZjo/MN2mzYBdFgsE+oajfOIszBzwY VB/w== X-Gm-Message-State: AOAM5321hl4ftwC9g0I3QakbyQj02atzQgC+WRrs4b+p8eQKTmOgU5Vt tQYtn2L5+qFIA5Nps9VOw0jEyFD53vo= X-Google-Smtp-Source: ABdhPJy+Q162gao1Mgk1cRiN+Dt8q79QhMx384NqLB/bpdgXmXFzf/gOvxKocD/BzpgzUBI/+1wmcA== X-Received: by 2002:a05:600c:4147:b0:397:3c98:b6d with SMTP id h7-20020a05600c414700b003973c980b6dmr1580425wmm.111.1653054478906; Fri, 20 May 2022 06:47:58 -0700 (PDT) Received: from lili (37.199.23.93.rev.sfr.net. [93.23.199.37]) by smtp.gmail.com with ESMTPSA id w10-20020a7bc10a000000b00397099b8cffsm2156379wmi.1.2022.05.20.06.47.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 06:47:58 -0700 (PDT) From: zimoun To: Guix Devel Subject: wishlist: =?utf-8?B?4oCccmVwYWNr4oCd?= generations history of profile Date: Fri, 20 May 2022 15:47:54 +0200 Message-ID: <86wnegb9it.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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=1653054507; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tAqTRj0I/7uicf2jylMI0GXgISiiBJHEpHU4XcFzALQ=; b=Y14QiW+nG1j9kMxwxKWrD6/iumSXHjLfZBYw8cc3kj6O9hXEzX1ScwJPf1YKhomnyY/ZKo pwWOo7oH9cJrt26jvnSuKrK05sZV7yGvZNACZJNu6PqZR2gyFfquxVQCg/0dj0vD3BGdrP hvhhkUdSYKUb49ZpDWRg16NOzHbZLiJ0h3loZ59ADm5+byHwtFn3J7USfmNAWuSvD4pmB6 MYpX3QqkvIAu61hgLhZI52W+xAotvqY+fGRE9sP7DWmcA92mrWmQpOItdR0vjXFnLfEqxT +A+golq5lFAbMUvGwbMuPo+1vcbt72Jt77j+s7lSSIm5PWHz0hAzpCbBXleF9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653054507; a=rsa-sha256; cv=none; b=SrPXScFlsMzpF9LGa/YIz2ZYbMIarTK8Z9ymTECxl7PL4UA1qFLWhQl5NHF8Xuqu/jFSbb vlecqLcJMAXEJKVrU4fRMz/+Ep3vYq+cp1++kDL3UWfAAoLaRJ5wB/d4raYq8Jnd+DCokm EIJZo0AXunGjB8K3p7WC1eIbcn347xkLo8DZkCEjVHJLKDXPzKZFKCJw9KTLBKBPuwiK7T IVUTCd/MbrXNUo/QyOaUez4kUOXuMUrRYUY1LEcu52b3lCX5KXAXbRkLsZLjoac2UmHty0 jeckwb6SmaPpNGZDaqujKGs1XQO4CPNzd4ZZR/2N3G58GaXIpnEe6q5zCdOa5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="OrRb/ZqW"; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="OrRb/ZqW"; dmarc=pass (policy=none) header.from=gmail.com; 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: 4295B2AF04 X-Spam-Score: -4.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: GmRhmVkCK9wW Hi, For instance, I have these, --8<---------------cut here---------------start------------->8--- $ guix package --list-generations -p ~/.config/guix/profiles/emacs/emacs Generation 14 Dec 30 2021 21:49:01 Generation 15 Dec 30 2021 22:11:51 Generation 16 Dec 30 2021 22:26:48 Generation 17 Dec 30 2021 23:34:14 Generation 18 Dec 31 2021 19:10:15 Generation 19 Apr 26 2022 14:50:34 Generation 20 Apr 26 2022 14:50:45 Generation 21 May 03 2022 14:14:20 (current) --8<---------------cut here---------------end--------------->8--- or --8<---------------cut here---------------start------------->8--- $ guix pull --list-generations -p ~/.config/guix/current Generation 72 Dec 29 2021 22:52:13 Generation 73 Dec 31 2021 19:02:14 Generation 74 Jan 04 2022 10:04:35 Generation 75 Jan 06 2022 10:30:48 Generation 76 Feb 04 2022 11:15:54 Generation 77 Apr 05 2022 10:27:45 Generation 78 Apr 20 2022 01:26:24 Generation 79 Apr 26 2022 13:43:13 (current) --8<---------------cut here---------------end--------------->8--- Now, assume I am running out of space. If I run, guix gc --delete-generations=3D2m then I am removing the items in the store (data) and also the meta data (manifest, date, channels, etc.). I am fine to delete the old items in the store. I do not want to keep things I am not using. However, for tracking and monitoring, I would like to still keep these meta and potentially be able to rebuild such generation. The question is what to do when we delete? I am proposing to delete the content, i.e., all but keep the meta, i.e., the file manifest. We could have an option soft (keep meta) and hard (remove all, meta included, as today) for guix gc. Or an option =E2=80=9Cguix gc --repack=3D2m=E2=80=9D which would remove all= except the manifest file. The capacity of switching to old generation is kept, space is saved, and it is almost transparent for the user. Well, if I would like to switch to a previous generation, Guix would recompute all the derivations, i.e., just fill the store (cache). Working on projects long of several years, the old generations are deleted and a part of the history is lost. Obviously, I track in the Git repo of the project some manifest.scm and channels.scm files. Well, it could be better if to be able to keep generations from years in a very light and transparent way. On machine where many users are running a lot of profiles, the sysadmin periodically run =E2=80=9Cguix gc=E2=80=9D to save some space and therefore= Guix delete materials for users missing to track the correct information. WDYT? Cheers, simon