all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: Guix-Help <help-guix@gnu.org>
Subject: Re: Ever-growing store with --gc-keep-outputs?
Date: Fri, 14 Sep 2018 13:46:44 -0400	[thread overview]
Message-ID: <87o9d0geez.fsf@netris.org> (raw)
In-Reply-To: <87y3c45ou5.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Fri, 14 Sep 2018 12:57:06 +0200")

Hi Pierre,

Pierre Neidhardt <mail@ambrevar.xyz> writes:

>> If, say, “coreutils” is live, then the corresponding “coreutils.drv”
>> will be considered live as well when you pass --gc-keep-derivations.
>
> Is the .drv live forever then?  Even when all the corresponding outputs have
> been deleted from all profiles / generations?

No, certainly not.  To expand on what Ludovic wrote, by passing
--gc-keep-derivations, you are providing an additional way for a .drv to
be reachable from your GC roots.  The .drv file will be kept alive for
as long as any of its outputs are kept alive.  More generally, it will
be kept alive as long as anything that was built upon it is kept alive.
That does not imply that .drv files are kept alive forever.

I've been using --gc-keep-derivations=yes and --gc-keep-outputs=yes for
a long time, and it works well in my preferred mode of operation where I
build everything locally and never use substitutes.  It ensures that
everything needed to build my GC-root-protected store items will be kept
alive.

When I want to free up some disk space, I do the following steps:

(1) update my user profiles and delete old generations
(2) delete older generations in /var/guix/profiles (but always
    keeping the one referenced by /run/booted-system!)
(3) reconfigure the system to remove the old system profiles from
    grub.cfg
(4) guix gc

Does that work for you?

       Mark

  reply	other threads:[~2018-09-14 17:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11 19:11 Ever-growing store with --gc-keep-outputs? Pierre Neidhardt
2018-09-12 10:55 ` Pierre Neidhardt
2018-09-13  9:09 ` Ludovic Courtès
2018-09-13  9:32   ` Pierre Neidhardt
2018-09-14  9:51     ` Ludovic Courtès
2018-09-14 10:57       ` Pierre Neidhardt
2018-09-14 17:46         ` Mark H Weaver [this message]
2018-09-14 18:02           ` Pierre Neidhardt
2018-09-14 21:34             ` Mark H Weaver
2018-09-14 22:10               ` Pierre Neidhardt
2018-11-09  6:53           ` swedebugia
2018-11-09  7:13             ` Mark H Weaver
2018-11-09 10:58               ` Pierre Neidhardt
2018-11-09 16:47                 ` swedebugia
2018-11-13 20:31                   ` Leo Famulari
2018-11-13 21:14                     ` swedebugia
2018-11-14  8:21               ` [bug#33374] [PATCH] doc: guix: Inform about deleting old system generations swedebugia
2019-01-03 16:24                 ` swedebugia
2022-04-07 11:56                 ` zimoun
2022-05-19 21:28                   ` zimoun

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

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

  git send-email \
    --in-reply-to=87o9d0geez.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=help-guix@gnu.org \
    --cc=mail@ambrevar.xyz \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.