unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guix gc: smarter collection & guix.el manual deletion
@ 2018-07-26  7:49 Pierre Neidhardt
  2018-07-27  9:52 ` Chris Marusich
  2018-07-28  9:21 ` Chris Marusich
  0 siblings, 2 replies; 13+ messages in thread
From: Pierre Neidhardt @ 2018-07-26  7:49 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 1643 bytes --]

Hi!

I run GuixSD on a rather small partition (<25GB) and quite often the
partition gets full during a transation and I end up having to clean up
the store (e.g. "guix gc -F5G").

The problem is that more often than not, "guix gc" will remove store
items that are almost always needed for the next transaction, which
results in a huge re-update of those newly missing packages.  What a
waste of time...

It would be nice if "guix gc" would be a bit smarter and remove items
that are less likely to be needed for the next transaction.

Or maybe I'm missing the point?

The store does not have timestamps, so removing old items would not work
I guess.  But what about removing older versions first?  Say I have
glibc-2.24 and glibc-2.25, only remove glibc-2.24 if that's enough to
free the required space.

Maybe we could introduce a "whitelist" of packages to delete last.

In the end I figured that the most convenient way to clean up the store
might be to do it manually with "guix gc --delete PATH".  Well, not so
from the commandline, but with guix.el I thought we could do something
nice.  So I gave it a (quick&dirty™) shot:

	https://gitlab.com/emacs-guix/emacs-guix/issues/2

With guix.el loaded, `eval' my example and run "M-x guix-store".
This will return a list of all the dead links, which you can sort by
name or by size.  You can then mark items ("m") and delete them ("k").

What do you people think?


While I'm at it, I'd like to note that something might be wrong with the
`-F` option: I never get the promised amount of free space back, only
about 2/3 of it.

--
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

end of thread, other threads:[~2018-07-30  6:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-26  7:49 guix gc: smarter collection & guix.el manual deletion Pierre Neidhardt
2018-07-27  9:52 ` Chris Marusich
2018-07-27 19:42   ` Pierre Neidhardt
2018-07-28 10:17     ` Chris Marusich
2018-07-28 10:29       ` Pierre Neidhardt
2018-07-29 12:06         ` Chris Marusich
2018-07-29 17:33           ` Pierre Neidhardt
2018-07-29 17:48           ` Efraim Flashner
2018-07-29 18:01             ` Pierre Neidhardt
2018-07-29 23:37         ` Ludovic Courtès
2018-07-30  6:54           ` Pierre Neidhardt
2018-07-28  9:21 ` Chris Marusich
2018-07-28  9:57   ` Pierre Neidhardt

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).