unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <ambrevar@gmail.com>
To: Guix-devel <guix-devel@gnu.org>
Subject: guix gc: smarter collection & guix.el manual deletion
Date: Thu, 26 Jul 2018 09:49:24 +0200	[thread overview]
Message-ID: <876012bfnf.fsf@gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2018-07-26  7:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26  7:49 Pierre Neidhardt [this message]
2018-07-27  9:52 ` guix gc: smarter collection & guix.el manual deletion 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=876012bfnf.fsf@gmail.com \
    --to=ambrevar@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).