unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* wishlist: “repack” generations history of profile
@ 2022-05-20 13:47 zimoun
  2022-05-21 11:30 ` Liliana Marie Prikler
  2022-05-23 15:42 ` Ludovic Courtès
  0 siblings, 2 replies; 10+ messages in thread
From: zimoun @ 2022-05-20 13:47 UTC (permalink / raw)
  To: Guix Devel

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=2m

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 “guix gc --repack=2m” 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 “guix gc” to save some space and therefore Guix delete
materials for users missing to track the correct information.


WDYT?


Cheers,
simon


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-06-05 11:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 13:47 wishlist: “repack” generations history of profile zimoun
2022-05-21 11:30 ` Liliana Marie Prikler
2022-05-23 16:20   ` zimoun
2022-05-23 15:42 ` Ludovic Courtès
2022-05-23 16:58   ` zimoun
2022-05-30 15:40     ` Ludovic Courtès
2022-05-30 17:18       ` zimoun
2022-06-04  7:39         ` Giovanni Biscuolo
2022-06-05  9:45           ` zimoun
2022-06-05 11:16             ` Giovanni Biscuolo

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).