From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23979: [ER] guix gc should tell how much space it recovered Date: Fri, 15 Jul 2016 19:06:27 +0200 Message-ID: <87vb06ygoc.fsf@gnu.org> References: <87eg6v0y45.fsf@gnu.org> <20160715151206.GA8436@solar> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO6Zu-0005fT-4q for bug-guix@gnu.org; Fri, 15 Jul 2016 13:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO6Zr-0004cf-LE for bug-guix@gnu.org; Fri, 15 Jul 2016 13:07:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO6Zr-0004ca-Hn for bug-guix@gnu.org; Fri, 15 Jul 2016 13:07:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bO6Zr-0002oB-AN for bug-guix@gnu.org; Fri, 15 Jul 2016 13:07:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160715151206.GA8436@solar> (Andreas Enge's message of "Fri, 15 Jul 2016 17:12:06 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Andreas Enge Cc: 23979@debbugs.gnu.org Andreas Enge skribis: > On Fri, Jul 15, 2016 at 04:33:46PM +0200, Ludovic Court=C3=A8s wrote: >> This code calls the =E2=80=98collect-garbage=E2=80=99 procedure, defined= in (guix >> store). You=E2=80=99ll see that this procedure returns two values, whic= h are >> currently ignored: the name of the items that were removed from the >> store, and the number of bytes freed. > > Brutto or netto? Otherwise said, does it take into account the hardlinks > used for deduplication, or does it pretend that every deleted file saves > as much memory as its size indicates? The latter, I think. The actual computation is done by the daemon, in libstore/gc.cc. Ludo=E2=80=99.