unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Are 'guix gc' stats exaggerated?
@ 2024-05-26 20:13 Felix Lechner via Development of GNU Guix and the GNU System distribution.
  2024-05-27  9:10 ` raingloom
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Felix Lechner via Development of GNU Guix and the GNU System distribution. @ 2024-05-26 20:13 UTC (permalink / raw)
  To: guix-devel

Hi,

Today I ran 'guix gc' on equipment with an ext4 root partition.  It had
these space characteristics beforehand:

    Filesystem  Size       Used      Avail     Use% Mounted on
    /dev/dm-3   309047680  157252980 138126064  54% /

or for human eyes:

    /dev/dm-3   295G        150G      132G      54% /

After the run, the drive showed:

    /dev/dm-3   309047680   88267956 207111088  30% /

or for human eyes:

    /dev/dm-3   295G         85G      198G      30% /

By my math, about 65.8 GiB were recovered.

When 'guix gc' was done, it announced:

    [184389 MiB] deleting '/gnu/store/...'
    deleting `/gnu/store/trash'
    deleting unused links...
    note: currently hard linking saves 59224.03 MiB
    guix gc: freed 110,649.49 MiBs

Seeing the 184389 MiB number, or 180 GiB, already made me suspicious.
It exceeded my drive usage by 30 GiB.  Even the more conservative 110649
MiB "freed," however, are off by a mile. That would have been 108 GiB,
or 42 GiB more than the space actually recovered.

Am I looking at those numbers the wrong way?  Thanks!

Kind regards
Felix


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

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

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2024-06-17 11:24             ` Ludovic Courtès
2024-05-31 16:33 ` Simon Tournier

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