From: Andreas Enge <andreas@enge.fr>
To: "Felix Lechner" <felix.lechner@lease-up.com>,
"Ludovic Courtès" <ludo@gnu.org>,
"Felix Lechner via Development of GNU Guix and the GNU System
distribution." <guix-devel@gnu.org>
Subject: Re: Are 'guix gc' stats exaggerated?
Date: Sun, 9 Jun 2024 11:30:33 +0200 [thread overview]
Message-ID: <ZmV2ObF1CSfnKvgE@jurong> (raw)
In-Reply-To: <ZmVzu1FdTFLazYZc@3900XT>
Am Sun, Jun 09, 2024 at 12:19:55PM +0300 schrieb Efraim Flashner:
> In my not having looked at the code, I'll point out that running `guix
> gc -C 10G` will clear 10G of items from the store, but will return
> between 2-10G of real space for future use on the hard drive. Thinking
> across my various machines, on my desktop and laptop using btrfs this is
> the case, but on my other machines using ext4 I think the space cleared
> and what I'm expecting to have free to use do actually match up, but I
> don't remember paying that much attention to the numbers previously on
> those machines.
In my experience on ext4 (also not backed by looking at the code), "guix gc"
always deletes substantially less than what I ask for. I always thought it
just counted hard linked files even when the link count does not go to 0
and the file is not actually deleted.
For instance, I have tried it just now:
$ df -h .
/dev/mapper/cryptroot 468G 427G 18G 97% /
$ guix gc -F 20G
guix gc: 2.931,84 MiB werden freigegeben
...
deleted or invalidated more than 3074252800 bytes; stopping
$ df -h .
/dev/mapper/cryptroot 468G 427G 18G 96% /
Andreas
next prev parent reply other threads:[~2024-06-09 9:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-26 20:13 Are 'guix gc' stats exaggerated? Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-05-27 9:10 ` raingloom
2024-05-28 2:47 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-05-28 9:01 ` Efraim Flashner
2024-05-31 22:03 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-06-02 8:24 ` Daemon deduplication and btrfs compression [was Re: Are 'guix gc' stats exaggerated?] Efraim Flashner
2024-06-06 14:17 ` Are 'guix gc' stats exaggerated? Ludovic Courtès
2024-06-06 19:32 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-06-09 9:19 ` Efraim Flashner
2024-06-09 9:30 ` Andreas Enge [this message]
2024-06-17 11:24 ` Ludovic Courtès
2024-05-31 16:33 ` Simon Tournier
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=ZmV2ObF1CSfnKvgE@jurong \
--to=andreas@enge.fr \
--cc=felix.lechner@lease-up.com \
--cc=guix-devel@gnu.org \
--cc=ludo@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).