unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Felix Lechner <felix.lechner@lease-up.com>
Cc: "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 12:19:55 +0300	[thread overview]
Message-ID: <ZmVzu1FdTFLazYZc@3900XT> (raw)
In-Reply-To: <877cf1amu3.fsf@lease-up.com>

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

On Thu, Jun 06, 2024 at 12:32:52PM -0700, Felix Lechner wrote:
> Hi Ludo'
> 
> On Thu, Jun 06 2024, Ludovic Courtès wrote:
> 
> > Where does that 3:1 figure come from?
> 
> Efraim's experience, I believe.

I've found that to be my experience, and posted two compsize outputs to
show where I got my numbers from.

> > Where do you see that in the code?  After checking
> > ‘removeUnusedLinks’, I think it counts space savings right.
> 
> Sorry, I didn't look at the code.  I was merely prompted to speculate by
> the mentioning of hard links and inferred wrongly, it seems, that the
> discrepancy was related---although in fairness I also doubted that a
> fixed 3:1 ratio could be credibly explained by deduplication alone.
> 
> Also, I don't mean to appear critical.  Thanks to everyone for your hard
> work on Guix!

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.

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

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

  reply	other threads:[~2024-06-09  9:20 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 [this message]
2024-06-09  9:30           ` Andreas Enge
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=ZmVzu1FdTFLazYZc@3900XT \
    --to=efraim@flashner.co.il \
    --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).