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 MJKeElPFYWZZ1AAAe85BDQ:P1 (envelope-from ) for ; Thu, 06 Jun 2024 16:18:59 +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 MJKeElPFYWZZ1AAAe85BDQ (envelope-from ) for ; Thu, 06 Jun 2024 16:18:59 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="R9sxqBG/"; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717683539; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wEbCLkQqQUoTSfGZcxGd5x5gwFvwO1LwQaPTs0AjL+U=; b=Af5QdqGUop82dAwCnHhsw9F/wZg4j1DCNWu2LKh82E+NOdknvBbnC4uTyOhnA4Xe1AeVVG oJX7Gp9+jbwWLH4e/BbNAEx4rPdEWR3hdKY/A7xH6cheEHIm1zFg8cs5oeR5gVP+zI83tI l/1Dj0ZNj9SWaesSsaKO+AwEqz87XumoaNgf8wN88O2QKJv49Jniy60apDEjG1Z9aLWcBf CA1STOp4TfQnJcbeq8o7kmsuy/d0U3Iv36Gl1JwyM2LR0TpArjKe7Kc5+GfHc+d+LMfbN3 Kq1WV4PwodFseMhi/O5Pu8c2OETaUnCgUXPFvZ2lDAxD0aJi1+jXA8cN62gkRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="R9sxqBG/"; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717683539; a=rsa-sha256; cv=none; b=bxVZfbNGWeMopwHvqNSXe9+pO+Kj90TIMtIaRnBihWUGHZ5b/2xXsvQx1ebUVA/xxxULJ6 WV3AJa99vpA+jVr/1hJ6bJl0AhjpE5DH4rG9orXXnxMzYtgxa3UEgDh6iJ58ixqnT/8NSx lIchQG+zxCYMot8XS7Pzg5V+Q4U5mdtRMHRAW1SagvN83HM6/ccpilcIZ4/LRJ/3dPlb9o JPDVNkEKTp/vD7u/q2/N06PdMerEWMuJHH/4sEVgtGQSbT9nuPI3XrGjFpHKIndh0rXL8U 3BqjYM4o/TPKlb7fKwd+IYKdro0OTqxcn8wICnpzdvUUoCOayNbjqLOm6BuN8w== 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 E983D573E3 for ; Thu, 6 Jun 2024 16:18:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFDwI-0004V5-Ej; Thu, 06 Jun 2024 10:18:02 -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 1sFDwF-0004UB-Bt for guix-devel@gnu.org; Thu, 06 Jun 2024 10:17:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFDwD-0006Sk-II; Thu, 06 Jun 2024 10:17:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=wEbCLkQqQUoTSfGZcxGd5x5gwFvwO1LwQaPTs0AjL+U=; b=R9sxqBG/acWRl9AF554j +c/fkYok0Rf0n7CAcpOKgSea/3n74PaGa7PGJOrWf5Mwvs34DPhTiVhYB5tYya0OPHhVyp8Y1gSTq InO5rtL6eisHZnSqXlGWIg1Ox58bHOV5+TI0vFpsDoAwkDgVyBkg9Ps5Kmt3vln7ta0/l9Ie36I6F hJ4l9ZdET4PC1q60K2rXYkpkYjV8UaUPi61fagjL8WCcFnA1+M3MhQ1sUndNal+LshFxDoZOQXGy9 HYh8FoXe70JNqxBfrYdkoSod+X1hreHx5l7BREp6tldW5bdt0mSSv+nnIkAcWLUBSP0mLBn8qFE7k tqffdVeKnuuSfQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Cc: Efraim Flashner , Felix Lechner Subject: Re: Are 'guix gc' stats exaggerated? In-Reply-To: <87a5k5oczg.fsf@lease-up.com> (Felix Lechner via's message of "Fri, 31 May 2024 15:03:47 -0700") References: <87bk4stjpi.fsf@lease-up.com> <87a5k5oczg.fsf@lease-up.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Nonidi 19 Prairial an 232 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour du Tilleul 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-pc-linux-gnu Date: Thu, 06 Jun 2024 16:17:51 +0200 Message-ID: <87tti640kw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: -10.04 X-Spam-Score: -10.04 X-Migadu-Queue-Id: E983D573E3 X-Migadu-Scanner: mx13.migadu.com X-TUID: 7RbkHz6XMP2R Hi Felix, Felix Lechner via "Development of GNU Guix and the GNU System distribution." skribis: > It probably makes more sense to focus on the Guix daemon here. I hope > you don't mind a few clarifying questions. > > Why, please, does the benefit of de-duplication approach a fixed ratio > of 3:1? Does the benefit not depend on the number of copies in the > store, which can vary by any number? (It sounds like the answer may > have something to do with store size.) Where does that 3:1 figure come from? > Further, why is the removal of hardlinks counted as saving space even > when their inode reference count, which is widely available [1] is > greater than one? Where do you see that in the code? After checking =E2=80=98removeUnusedLin= ks=E2=80=99, I think it counts space savings right. (OTOH, something somewhere is counted wrong, as anyone who=E2=80=99s used =E2=80=98guix gc -F=E2=80=A6=E2= =80=99 has seen; not sure where the bug is!) Thanks, Ludo=E2=80=99.