From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id kNC0IW12ZWZVIQAAe85BDQ:P1 (envelope-from ) for ; Sun, 09 Jun 2024 11:31:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kNC0IW12ZWZVIQAAe85BDQ (envelope-from ) for ; Sun, 09 Jun 2024 11:31:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717925473; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=XNJvwzFzuqnfikIdFdzo0t58WrvG/dDOJ8NH3aAigCk=; b=gUEotL9p6wrQJkDPKDEWf4BLMYsUTzWAapMMxcw26Rcs3/5EQkhWuX4Cf+0Hl7MzkHA+ox g3fkrycoTxG6DDUWxHhkWZ9D5Z7xduiBXdBp1xXLR19QNg+lmv6Cg3m4hUdYN4/p1N6WJ6 UKwrOY8bdDd4jkbJ1gO+1wgjzufVK1oTLWn2iZr7M4PdM2nEjScokpBClCkJJUQVQHjk0k gDaO09Yj5MtzO6Bmgz/x/fXqtgttrn9+i8fzcxqjmg8N+GaVHp4Bln0rMKCC1pCofUJytR nALxD2ajHF1LkcZwj1QBp3nB1GrD+Cgg4x/+ejZtGN+zARjLvMY2SeolAp9Ksw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717925473; a=rsa-sha256; cv=none; b=jVLU+kpLWsSsuz0qWI8G1W8cNT0hM0bO5JRMwMkDfBW0Au8GnZbXfjv5TWDdCLoGe1nRL3 03uBNQEEfG4XhL4/Pbr8jZtFEI1g2iS4BeiHCPYeUsEKPEYRAVn4tns5I4pXj3KsW6hgtz 0fwIbEyc7O+L54fa7wMMNjxkXZNneW4VtlZyNpyscsBfMGCDa7ICRpOBTl5NjhUxw5iZ2G HCjlGOekLpbWDqk/ZAWHUS8Dx5ly5eg7+9KnLvMsLizwagihygeNEYvfnPgIsv8w2ara1R eGZHlwGINsA+f77xRCSqv/Bn3OrdbLpIVRB/23OVCxvFDGl5PqLCM3uoI/QpPA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9CA571202F for ; Sun, 9 Jun 2024 11:31:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGEsw-0004TL-Uj; Sun, 09 Jun 2024 05:30:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGEsu-0004S2-Ku for guix-devel@gnu.org; Sun, 09 Jun 2024 05:30:44 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGEss-0005i8-Uc; Sun, 09 Jun 2024 05:30:44 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id EC772314; Sun, 9 Jun 2024 11:30:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sbXuGO-38-t7; Sun, 9 Jun 2024 11:30:35 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 51FB22FE; Sun, 9 Jun 2024 11:30:35 +0200 (CEST) Date: Sun, 9 Jun 2024 11:30:33 +0200 From: Andreas Enge To: Felix Lechner , Ludovic =?iso-8859-15?Q?Court=E8s?= , "Felix Lechner via Development of GNU Guix and the GNU System distribution." Subject: Re: Are 'guix gc' stats exaggerated? Message-ID: References: <87bk4stjpi.fsf@lease-up.com> <87a5k5oczg.fsf@lease-up.com> <87tti640kw.fsf@gnu.org> <877cf1amu3.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a0c:e300::1; envelope-from=andreas@enge.fr; helo=hera.aquilenet.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.34 X-Spam-Score: -3.34 X-Migadu-Queue-Id: 9CA571202F X-Migadu-Scanner: mx13.migadu.com X-TUID: oKbmFr7Rq1jr 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