From unknown Thu Jun 19 14:26:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23979: [ER] guix gc should tell how much space it recovered Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 14 Jul 2016 10:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 23979@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.146849366912173 (code B ref -1); Thu, 14 Jul 2016 10:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jul 2016 10:54:29 +0000 Received: from localhost ([127.0.0.1]:50589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNeHl-0003AE-8P for submit@debbugs.gnu.org; Thu, 14 Jul 2016 06:54:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNeHk-0003A3-4B for submit@debbugs.gnu.org; Thu, 14 Jul 2016 06:54:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNeHe-000891-8q for submit@debbugs.gnu.org; Thu, 14 Jul 2016 06:54:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNeHe-00088v-5a for submit@debbugs.gnu.org; Thu, 14 Jul 2016 06:54:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNeHc-0003yv-1n for bug-guix@gnu.org; Thu, 14 Jul 2016 06:54:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNeHb-00087c-6C for bug-guix@gnu.org; Thu, 14 Jul 2016 06:54:20 -0400 Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:33049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNeHb-00087W-1n for bug-guix@gnu.org; Thu, 14 Jul 2016 06:54:19 -0400 Received: by mail-qt0-x231.google.com with SMTP id w38so40558487qtb.0 for ; Thu, 14 Jul 2016 03:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=4ql5UKscwKy5ZT/ISssYScDXgQioQuhq6zyrtfn4o5I=; b=okzRTuQiI1lBfmJ4Sqmx3lyueC0O2Hmn2f4aRLtXA4xuAgJ807utOe8QKk7sVOtctV oarUynxWSBkzKKShQpl5KxmifTAyZC0G4jDsDRiask6UKW6jPbj1bb9NgBDhCNdn598K ghgeDHbZlq7cTL5tFF/emOffDsoMZex59kh+4tZNDXocj1gGFRHtod3+IryFkphR669X iyRQsGPrb1QA6m1LrKifv6KXwLrPaKZhsScYfBQCbYRgF5FZ5jxFDrWGXj85/Bq8ZqoA DpI70eQzqf9HyA8kUGayIzJ4Csz1bKJ9jTEpS2IjXMit6Gxje1d58lAnOINGNLwDyRY+ n9dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4ql5UKscwKy5ZT/ISssYScDXgQioQuhq6zyrtfn4o5I=; b=eqmjssRDb0yMIpVqVORl/YnFaoYTXnHKynv8VCaJLdk6yMuixVB1qyq1Uq/+K04pnH gEIoOSUx4JuHBDIAA5cgoYto7nFxLvW2R9RbbXD6oJXPFHnQg7GpVw5eeVqxQOqh2W7j xXYH+rYT83V7L6FQYfAhahT4gFbtFf/0tpSUfGS4o+aL5RW/K3Z5RKEGCQ1UHkO3jeRn 8Jpyf6o+1K7j+JXQxT0xWCAmJAX7krqvxlCHgJqKc7cGqs3eKHNbcfTeLBGBx3x8pN0O hBPwRiXenb4TlgPCuJ/4aZWUKDJcCqh94RQPWi5p/628tMd7jsaTZWyA6Pvaujnext+j l8HA== X-Gm-Message-State: ALyK8tI+7n79AFVNYUCgGdnAc+9CoyfTOOAVBta7s2un4wp2ZUpmsUXaaJKL2LriveFK4qrsT9YVhdQw0jNI4A== X-Received: by 10.200.49.14 with SMTP id g14mr19714470qtb.23.1468493658443; Thu, 14 Jul 2016 03:54:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.55.38 with HTTP; Thu, 14 Jul 2016 03:54:18 -0700 (PDT) From: Vincent Legoll Date: Thu, 14 Jul 2016 12:54:18 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) It already shows: note: currently hard linking saves 485.41 MiB Recovered disk space would nicely complement that. I could be mentored to do it myself, but I'm very new to guile & guix ;-) I'd at least require high level directions as to where I should look (in the code) to graft that functionality. -- Vincent Legoll From unknown Thu Jun 19 14:26:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23979: [ER] guix gc should tell how much space it recovered Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 14 Jul 2016 11:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 23979@debbugs.gnu.org Received: via spool by 23979-submit@debbugs.gnu.org id=B23979.146849583317524 (code B ref 23979); Thu, 14 Jul 2016 11:31:02 +0000 Received: (at 23979) by debbugs.gnu.org; 14 Jul 2016 11:30:33 +0000 Received: from localhost ([127.0.0.1]:50602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNeqf-0004YI-HA for submit@debbugs.gnu.org; Thu, 14 Jul 2016 07:30:33 -0400 Received: from mail-qt0-f175.google.com ([209.85.216.175]:36478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNeqd-0004RP-Eu for 23979@debbugs.gnu.org; Thu, 14 Jul 2016 07:30:31 -0400 Received: by mail-qt0-f175.google.com with SMTP id 52so40919075qtq.3 for <23979@debbugs.gnu.org>; Thu, 14 Jul 2016 04:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=VpHj92ltUxL1/8PTFtyRSioyBUgVIrj0eFFJqzMZilc=; b=YEOzGy8iASnUx3SgxffWBVtUZ2Zg/Xlvn1qKCCGLeOtO7KCawD6J0X0omXqCwnTBX3 X/ried4opYMhkUpZVVh8Mic8KceNo+WnNxIFLkxzUDYn+I1nqp7X2D/5AyF1FnxJ53gZ ylSKkTa4451fUUr03dB/frUdTSnZSM+T+IXEYdLIv1xHjEjBCczB6nSkIZ6wWkU+nrVl Djnx3eSfyhR30lwY3W8bxdD9eXoX5/kIlViplEFKsAF3YFgoXJslf1EJ+gtYQya+1T0c pWyg+qFf12BU05JdFMm7u5uY96LTcuY4JWHCn47jptZXRB0aQcBNm1lprNLGF00DGa3D ZPqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=VpHj92ltUxL1/8PTFtyRSioyBUgVIrj0eFFJqzMZilc=; b=Cn3T757VA4jMx9vura1o6DUVDGTBPfsd0mB6L+BRhjHpm2szAXcUuaH2sa/GdChZW/ 8FmRs8VAMHzFI9qO6DjQR2gsbO4KU4F3tlh32zYhlhHetudir9b3lO7cokH/NenbDR/j ceov2DmWPSQxeL3A2qDMFatHe+xsh+pBBYNuMLWMgNZ7X3H9IJ+Yl53wzf9V3evRQ5rH hFb7mgqX8u2qUeNt0gujch82i25O5JACP/NJO/BykQ+Vd2a4BvCT8VRbMGgkMBOXwj0M dTqmhhi8Tq+VG8ORc4t6mi0zxn8cCgCHYL9KuZV89WGpt0R8wRrRFtSrgk+Rq2OHpbed NVnA== X-Gm-Message-State: ALyK8tI1rzgPF+cEQKEHh88pLBeYcEUbX50NI0XTkTOjiG9uIArswO8ZLQLAvnrgmVum6xAskoY+zAj9+ie4Ew== X-Received: by 10.200.49.14 with SMTP id g14mr19956587qtb.23.1468495825433; Thu, 14 Jul 2016 04:30:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.55.38 with HTTP; Thu, 14 Jul 2016 04:30:24 -0700 (PDT) In-Reply-To: References: From: Vincent Legoll Date: Thu, 14 Jul 2016 13:30:24 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Looks like I helped myself out of step 1: this is in guix/scripts/gc.scm if I'm not mistaken -- Vincent Legoll From unknown Thu Jun 19 14:26:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23979: [ER] guix gc should tell how much space it recovered Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 15 Jul 2016 14:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Vincent Legoll Cc: 23979@debbugs.gnu.org Received: via spool by 23979-submit@debbugs.gnu.org id=B23979.146859324021933 (code B ref 23979); Fri, 15 Jul 2016 14:34:01 +0000 Received: (at 23979) by debbugs.gnu.org; 15 Jul 2016 14:34:00 +0000 Received: from localhost ([127.0.0.1]:53140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO4Bk-0005hh-Ek for submit@debbugs.gnu.org; Fri, 15 Jul 2016 10:34:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO4Bj-0005hS-04 for 23979@debbugs.gnu.org; Fri, 15 Jul 2016 10:33:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO4BZ-0007ps-T7 for 23979@debbugs.gnu.org; Fri, 15 Jul 2016 10:33:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO4BZ-0007pi-Pg; Fri, 15 Jul 2016 10:33:49 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:41902 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bO4BY-0007Hh-LE; Fri, 15 Jul 2016 10:33:49 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 Messidor an 224 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Fri, 15 Jul 2016 16:33:46 +0200 In-Reply-To: (Vincent Legoll's message of "Thu, 14 Jul 2016 12:54:18 +0200") Message-ID: <87eg6v0y45.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) Vincent Legoll skribis: > It already shows: > note: currently hard linking saves 485.41 MiB > > Recovered disk space would nicely complement that. Indeed. > Looks like I helped myself out of step 1: > this is in guix/scripts/gc.scm if I'm not mistaken Yep, you=E2=80=99re on the right track! 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, which a= re currently ignored: the name of the items that were removed from the store, and the number of bytes freed. Your mission, if you accept it, is to change gc.scm to retrieve this second value and to display it in a human-friendly way. :-) HTH! Ludo=E2=80=99. From unknown Thu Jun 19 14:26:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23979: [ER] guix gc should tell how much space it recovered Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 15 Jul 2016 15:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Vincent Legoll , 23979@debbugs.gnu.org Received: via spool by 23979-submit@debbugs.gnu.org id=B23979.146859553725305 (code B ref 23979); Fri, 15 Jul 2016 15:13:01 +0000 Received: (at 23979) by debbugs.gnu.org; 15 Jul 2016 15:12:17 +0000 Received: from localhost ([127.0.0.1]:53150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO4mm-0006a5-Uf for submit@debbugs.gnu.org; Fri, 15 Jul 2016 11:12:17 -0400 Received: from mailrelay2.public.one.com ([91.198.169.125]:18589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO4ml-0006Zq-M6 for 23979@debbugs.gnu.org; Fri, 15 Jul 2016 11:12:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=enge.fr; s=20140924; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=GW7zWI5Vkt15a7puhbQGmU6M8zPMwg2HtwdE9OvFicY=; b=CquuMW6L3pUaT1O00S+q5GLie6mZd3qPiNdW2S9Y2vCSPeCxbQypO3yDYrgfcltzLIEObEAhgYuw4 zRWVsiQ25A6YuvpUCJFKj3pT5coxAzSGQztgWxfQiCa2sQ89CBqtIUEf2lwiQ8lsL9K0N+ifVWBQKm DAeSfM+80kV7xidQ= X-HalOne-Cookie: a715e091a55b7e5e29db824899cc282456cefe58 X-HalOne-ID: 7fb20fc8-4a9e-11e6-b723-b82a72d03b9b Received: from solar (unknown [92.89.73.211]) by smtpfilter2.public.one.com (Halon Mail Gateway) with ESMTPSA; Fri, 15 Jul 2016 15:12:08 +0000 (UTC) Date: Fri, 15 Jul 2016 17:12:06 +0200 From: Andreas Enge Message-ID: <20160715151206.GA8436@solar> References: <87eg6v0y45.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87eg6v0y45.fsf@gnu.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Fri, Jul 15, 2016 at 04:33:46PM +0200, Ludovic Courtès wrote: > This code calls the ‘collect-garbage’ procedure, defined in (guix > store). You’ll see that this procedure returns two values, which 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? Andreas From unknown Thu Jun 19 14:26:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23979: [ER] guix gc should tell how much space it recovered Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 15 Jul 2016 17:07:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Andreas Enge Cc: Vincent Legoll , 23979@debbugs.gnu.org Received: via spool by 23979-submit@debbugs.gnu.org id=B23979.146860240310756 (code B ref 23979); Fri, 15 Jul 2016 17:07:03 +0000 Received: (at 23979) by debbugs.gnu.org; 15 Jul 2016 17:06:43 +0000 Received: from localhost ([127.0.0.1]:53223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO6ZX-0002nP-9E for submit@debbugs.gnu.org; Fri, 15 Jul 2016 13:06:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO6ZT-0002nB-EN for 23979@debbugs.gnu.org; Fri, 15 Jul 2016 13:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO6ZL-0004Z6-9r for 23979@debbugs.gnu.org; Fri, 15 Jul 2016 13:06:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO6ZL-0004Yw-6d; Fri, 15 Jul 2016 13:06:31 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:42186 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bO6ZJ-0002ln-Gd; Fri, 15 Jul 2016 13:06:29 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87eg6v0y45.fsf@gnu.org> <20160715151206.GA8436@solar> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 Messidor an 224 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Fri, 15 Jul 2016 19:06:27 +0200 In-Reply-To: <20160715151206.GA8436@solar> (Andreas Enge's message of "Fri, 15 Jul 2016 17:12:06 +0200") Message-ID: <87vb06ygoc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) 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. From unknown Thu Jun 19 14:26:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23979: [ER] guix gc should tell how much space it recovered Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 16 Jul 2016 08:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 23979@debbugs.gnu.org, Andreas Enge Received: via spool by 23979-submit@debbugs.gnu.org id=B23979.14686572208991 (code B ref 23979); Sat, 16 Jul 2016 08:21:01 +0000 Received: (at 23979) by debbugs.gnu.org; 16 Jul 2016 08:20:20 +0000 Received: from localhost ([127.0.0.1]:53457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOKpf-0002Kw-Qu for submit@debbugs.gnu.org; Sat, 16 Jul 2016 04:20:19 -0400 Received: from mail-qk0-f179.google.com ([209.85.220.179]:35623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOKpd-0002Kf-SJ for 23979@debbugs.gnu.org; Sat, 16 Jul 2016 04:20:18 -0400 Received: by mail-qk0-f179.google.com with SMTP id s63so120740695qkb.2 for <23979@debbugs.gnu.org>; Sat, 16 Jul 2016 01:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ctn6/kJ+u1g/9V0V9yF1uiwtWcMDfGE651KowJnqhRo=; b=NifFgq8vtqegiZ/Bcx/AvaFnrtIjsz/NtxnzkzOJH3h/TblQwRZlk05nF8dVv2FD6s yXXsWv3OAf6IpQGp/LKVkBa33HkCPhGR1UoPWTCYjWdZRwXaZeU8Sf/DKBOtPffwdgYD X2Dnnmi6pa+a/5gYRmVlBK+fGo6KsUZPXMRjvi4xDcSjlWO9FK5qgOAUpn4oRMkC2cFQ +r8nTzKt7AKaObvwWUBUCk0a5SGCPBj4wBzVgF4aJstMRiYSJSpM5SrWBhr96CPtLuuM eZTsLjEzDZN0ojPxTs7lYWW6Elbx8/SumnvuRglNW5otB5xYPVcit3VaTIVNitdXdkkn fy5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ctn6/kJ+u1g/9V0V9yF1uiwtWcMDfGE651KowJnqhRo=; b=DX95BijxxHX7zYsBvDV/UQmj+7eo2RJOtVPZ05h9LODtA46qNYDGe56aHnuxWkcGpB wR8SZOGV0TRlhr4sSktWiEjda5JozrIoYMCiS74KDhlmMkKjcssGKJm8Yj6L62j/1Ro9 ih4YSyjanT2IychhoTC2bDCu7YR80nlZgd41c5C0JkI0xPTWMMyqOWTB9rmpquaVo7KK 3DC6G5nX1BUYt4lZE3MppccxP1+nj16oSkQ+drK9HMZm8taB7fQhyUQ9eGgKDsA1gtoU BUkmRWeobmmHu720Ht07MpKL9SmRfvHc/EfdAWDNs61F3n1t9gE2unBBGQB6T+bcQEoO r6WQ== X-Gm-Message-State: ALyK8tLx2brgbU6U571hQelhRfKD4/c+q8FLFZ/WDew431rx1AjyxCu4jse887hIo+g1nbJ5u9fkMYDOaSgRVg== X-Received: by 10.55.119.66 with SMTP id s63mr31088618qkc.63.1468657212406; Sat, 16 Jul 2016 01:20:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.44 with HTTP; Sat, 16 Jul 2016 01:20:12 -0700 (PDT) In-Reply-To: <87vb06ygoc.fsf@gnu.org> References: <87eg6v0y45.fsf@gnu.org> <20160715151206.GA8436@solar> <87vb06ygoc.fsf@gnu.org> From: Vincent Legoll Date: Sat, 16 Jul 2016 10:20:12 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Here is an attempt: https://lists.gnu.org/archive/html/guix-devel/2016-07/msg00574.html I tried to use call-with-values, but couldn't make it to work so reverted back to let-values... To test, I added (guix-gc "-C") at the end of the script and ran "guix pull && guile gc.scm", looked OK... -- Vincent Legoll From unknown Thu Jun 19 14:26:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Vincent Legoll Subject: bug#23979: closed (Fix merged) Message-ID: References: X-Gnu-PR-Message: they-closed 23979 X-Gnu-PR-Package: guix Reply-To: 23979@debbugs.gnu.org Date: Sat, 16 Jul 2016 12:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1468673762-14410-1" This is a multi-part message in MIME format... ------------=_1468673762-14410-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #23979: [ER] guix gc should tell how much space it recovered which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23979@debbugs.gnu.org. --=20 23979: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23979 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1468673762-14410-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 23979-done) by debbugs.gnu.org; 16 Jul 2016 12:55:45 +0000 Received: from localhost ([127.0.0.1]:53596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOP8D-0003jr-FN for submit@debbugs.gnu.org; Sat, 16 Jul 2016 08:55:45 -0400 Received: from mail-qk0-f179.google.com ([209.85.220.179]:34069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOP8A-0003jO-Il for 23979-done@debbugs.gnu.org; Sat, 16 Jul 2016 08:55:44 -0400 Received: by mail-qk0-f179.google.com with SMTP id o67so123668598qke.1 for <23979-done@debbugs.gnu.org>; Sat, 16 Jul 2016 05:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=xyHj6m3y9MU6+S+KFGELnTQmYwvP7DFvsdkqxRkTjGE=; b=p4x/ozsw8bpn4SIO4d5YKI5jtdLos+GYCzTiC8cPi/kop40biyXUsv17bVtlPmcZvY g5kWlpUzlCTghmiBYDN7GVGIS4jMjHNeLt1nE/QjQ0tNLpZDEn/XESbjD5emHB7HSm1+ vnmfCZjFcYt28g7uZnD885G+XWAlxGGwEqFcakROMBASPaONsD0Dgdd0U9iB1ACR5Ku+ cpQMKiWYQ8wC1N8WLnzSm9dpd0yWQDil0UfrBud3tzL5UdIKf/GN0tBthGmZyxYHfrac oCOEWsrF2lPDi4u8A25KpSXVSb/+aylLOA/T0yoxNFN1WEa2XzITLfjd4eAhbq9rRgij QUZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xyHj6m3y9MU6+S+KFGELnTQmYwvP7DFvsdkqxRkTjGE=; b=bPoHpqImM6yR8IT1djUm53HUwnOgChl1Y/NPL4kKUEiy9oV3qTqNYE28btMSLFEPUF eI/hBr/J7TZdKR2xHB7H+RvjFOxpfAmmjdTLoV4AIf0srqIjf9scy4VoFp3RzSeyHTvK QTaelkd6xiyE/iG+RgDScNNwN4w2nvR18VnIWy4C76aYq1vhy2wfFv4nIG4AueCFqYMB aoOV6Dyf9dKMfX4oriYFh6wImzmcxciTkPg2/ZFOyISYYckwWWKShGyKj49cFsNtRhml TCKAi3nCPQaJ2UvyYLQYlpR/AVcT5RAmaOjHrzYWfC7lgm/cGfrXX+oPeSJgz3gQlUzW Y2VQ== X-Gm-Message-State: ALyK8tLsL72mkcDD3EdkxnxTSdTh1EFdAuDE/lhZsODoI/xwhUfdQY/VzEg/UO2wjY6QIZJoP+4ztrdp3QLX+w== X-Received: by 10.55.163.144 with SMTP id m138mr30488422qke.21.1468673736673; Sat, 16 Jul 2016 05:55:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.44 with HTTP; Sat, 16 Jul 2016 05:55:36 -0700 (PDT) From: Vincent Legoll Date: Sat, 16 Jul 2016 14:55:36 +0200 Message-ID: Subject: Fix merged To: 23979-done@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 23979-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) in git commit : 1187a27112be10f2ff74144f50c88714ccf30301 following submission in : https://lists.gnu.org/archive/html/guix-devel/2016-07/msg00574.html Thanks for the help -- Vincent Legoll ------------=_1468673762-14410-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Jul 2016 10:54:29 +0000 Received: from localhost ([127.0.0.1]:50589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNeHl-0003AE-8P for submit@debbugs.gnu.org; Thu, 14 Jul 2016 06:54:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNeHk-0003A3-4B for submit@debbugs.gnu.org; Thu, 14 Jul 2016 06:54:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNeHe-000891-8q for submit@debbugs.gnu.org; Thu, 14 Jul 2016 06:54:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNeHe-00088v-5a for submit@debbugs.gnu.org; Thu, 14 Jul 2016 06:54:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNeHc-0003yv-1n for bug-guix@gnu.org; Thu, 14 Jul 2016 06:54:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNeHb-00087c-6C for bug-guix@gnu.org; Thu, 14 Jul 2016 06:54:20 -0400 Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:33049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNeHb-00087W-1n for bug-guix@gnu.org; Thu, 14 Jul 2016 06:54:19 -0400 Received: by mail-qt0-x231.google.com with SMTP id w38so40558487qtb.0 for ; Thu, 14 Jul 2016 03:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=4ql5UKscwKy5ZT/ISssYScDXgQioQuhq6zyrtfn4o5I=; b=okzRTuQiI1lBfmJ4Sqmx3lyueC0O2Hmn2f4aRLtXA4xuAgJ807utOe8QKk7sVOtctV oarUynxWSBkzKKShQpl5KxmifTAyZC0G4jDsDRiask6UKW6jPbj1bb9NgBDhCNdn598K ghgeDHbZlq7cTL5tFF/emOffDsoMZex59kh+4tZNDXocj1gGFRHtod3+IryFkphR669X iyRQsGPrb1QA6m1LrKifv6KXwLrPaKZhsScYfBQCbYRgF5FZ5jxFDrWGXj85/Bq8ZqoA DpI70eQzqf9HyA8kUGayIzJ4Csz1bKJ9jTEpS2IjXMit6Gxje1d58lAnOINGNLwDyRY+ n9dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4ql5UKscwKy5ZT/ISssYScDXgQioQuhq6zyrtfn4o5I=; b=eqmjssRDb0yMIpVqVORl/YnFaoYTXnHKynv8VCaJLdk6yMuixVB1qyq1Uq/+K04pnH gEIoOSUx4JuHBDIAA5cgoYto7nFxLvW2R9RbbXD6oJXPFHnQg7GpVw5eeVqxQOqh2W7j xXYH+rYT83V7L6FQYfAhahT4gFbtFf/0tpSUfGS4o+aL5RW/K3Z5RKEGCQ1UHkO3jeRn 8Jpyf6o+1K7j+JXQxT0xWCAmJAX7krqvxlCHgJqKc7cGqs3eKHNbcfTeLBGBx3x8pN0O hBPwRiXenb4TlgPCuJ/4aZWUKDJcCqh94RQPWi5p/628tMd7jsaTZWyA6Pvaujnext+j l8HA== X-Gm-Message-State: ALyK8tI+7n79AFVNYUCgGdnAc+9CoyfTOOAVBta7s2un4wp2ZUpmsUXaaJKL2LriveFK4qrsT9YVhdQw0jNI4A== X-Received: by 10.200.49.14 with SMTP id g14mr19714470qtb.23.1468493658443; Thu, 14 Jul 2016 03:54:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.55.38 with HTTP; Thu, 14 Jul 2016 03:54:18 -0700 (PDT) From: Vincent Legoll Date: Thu, 14 Jul 2016 12:54:18 +0200 Message-ID: Subject: [ER] guix gc should tell how much space it recovered To: bug-guix@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) It already shows: note: currently hard linking saves 485.41 MiB Recovered disk space would nicely complement that. I could be mentored to do it myself, but I'm very new to guile & guix ;-) I'd at least require high level directions as to where I should look (in the code) to graft that functionality. -- Vincent Legoll ------------=_1468673762-14410-1--