From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GA2qOkgG12KsbAEAbAwnHQ (envelope-from ) for ; Tue, 19 Jul 2022 21:30:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OBm1OkgG12JylQAAauVa8A (envelope-from ) for ; Tue, 19 Jul 2022 21:30:16 +0200 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 997E1117EB for ; Tue, 19 Jul 2022 21:30:16 +0200 (CEST) Received: from localhost ([::1]:33142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDsv9-0005eK-PI for larch@yhetil.org; Tue, 19 Jul 2022 15:30:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDsuw-0005e1-Mz for guix-patches@gnu.org; Tue, 19 Jul 2022 15:30:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDsuw-0006uV-EB for guix-patches@gnu.org; Tue, 19 Jul 2022 15:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oDsuw-000878-5U for guix-patches@gnu.org; Tue, 19 Jul 2022 15:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51427] [PATCH] nix: libstore: Do not remove unused links when deleting specific items. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Jul 2022 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51427 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: 51427@debbugs.gnu.org, ludo@gnu.org, maxim.cournoyer@gmail.com, zimon.toutoune@gmail.com X-Debbugs-Original-Cc: 51427@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , guix-patches@gnu.org, Maxim Cournoyer , zimoun Received: via spool by submit@debbugs.gnu.org id=B.165825898431139 (code B ref -1); Tue, 19 Jul 2022 19:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jul 2022 19:29:44 +0000 Received: from localhost ([127.0.0.1]:55190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDsue-00086B-8d for submit@debbugs.gnu.org; Tue, 19 Jul 2022 15:29:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:48660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDsuc-000863-FA for submit@debbugs.gnu.org; Tue, 19 Jul 2022 15:29:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDsuc-0005bO-Ai for guix-patches@gnu.org; Tue, 19 Jul 2022 15:29:42 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:51356) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDsua-0006pd-5i; Tue, 19 Jul 2022 15:29:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=AE6i+HglaYMZ/ OUpxzWZuelHjgUeWmi56J1QBWM0V4Q=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=aGr42HW4ouUn+0yzJ3d//yRfGAbvt9VYfMSG7J reYJQrlzx7r7IcY6rbOER4BwqYsakVTUHimQfTvGuHJCSGgcFTzRhtcj0/AhyabFlSFI/c VMvFWZuRa1E4v+sXU7TyJhe0P8Uj7MuE858vrMtZ7TjUA0f/4WwBr8ww5TYv2YqXX3Yd3t lktRr5w2oyZVT87mLTzi5b+aGO2cdd/bancvSgFDA5SOsQx9BEt2DDyG8k/o+nRruJJVV3 KUIN6CRKtPtyBshaguZ9XO9fkFnjamIAZCY9EmJ7gSA/7YJtvLd4e11T0hqqZSH7/V3xRi pDIOMFqAd2iRMYN8etjxc0Xw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id d0db2af7 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 19 Jul 2022 19:29:33 +0000 (UTC) References: <20211027034918.4591-1-maxim.cournoyer@gmail.com> <87o8795j61.fsf@gnu.org> <5c2dd60acfaa7d74b7554babb3e223bc855bac8a.camel@gmail.com> <87h7cxp9tl.fsf@gnu.org> <87sfwg7w9z.fsf@gmail.com> <87ee7tmdbd.fsf@gnu.org> <86k0hhnqss.fsf@gmail.com> <871r3f2j7y.fsf@gnu.org> <867dd7roi2.fsf@gmail.com> <87o7xmy14l.fsf_-_@gnu.org> <2441c768fea8faee800947a17aef896c35173845.camel@gmail.com> <87sfmxv6ue.fsf@gnu.org> <8538dc9925eb499ea2b728e349d98296eedeb14d.camel@gmail.com> Date: Tue, 19 Jul 2022 21:25:24 +0200 In-reply-to: <8538dc9925eb499ea2b728e349d98296eedeb14d.camel@gmail.com> BIMI-Selector: v=BIMI1; s=default; Message-ID: <877d48lx41@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Tobias Geerinckx-Rice X-ACL-Warn: , Tobias Geerinckx-Rice via Guix-patches From: Tobias Geerinckx-Rice via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658259016; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=AE6i+HglaYMZ/OUpxzWZuelHjgUeWmi56J1QBWM0V4Q=; b=G3EP/UJZZ7qhmn38SK+jTYzxuTNZE5BermWgCkfLz81AzFRrXwA9SVQjAFxv5fHaq6e1+B uyqPam5KLiiEDBVmteSUzgEeaDqA7TMBs416CIph2pG4/QERMddU76NfoYrHsgK8JtY/0t yxUg/9PrMJYPHKNZrUXlcKH8c9umdLqbzxOFvRasXWovSEtjCyU52ffOoisBWvbOIAcYdB HYyVcZEF0bsH3p3vLpIamZp4nIY6XRXy9URfv5i1L4kcWnq2rzsgGIHRBWWmbXK38IqNi2 wrlbjIzH3CNLP/oOmpqCf8CgBsnZYn5Xv3tOLGYegeiqfXjtUYak7WRWjTei7A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658259016; a=rsa-sha256; cv=none; b=stgDpUGH692cllxZQqMv59k4HMxOw8MNwEwyKcshA2xwPCgpkAp78wKzqDEnEgAypTnoXl 2G5cs8YAIyuNbH3qF9pjdaPkjOVywtrQbDpjOhR2z+W4oNfm5jPCiUUQm34cDfCef1enf+ mNItCbJ65/CJtFZtI7xECKdh7EPyX8DsmNcsrlWGEI6xTOxY/kKAkpTdgh0o9jBYrb0YOy FpP+l6KNXgxKBGS1SlSsozQJ9X1X/EVAn82+fCvDPiKpcJvO5WgIbrEUzmMVSBw8+0AbpO KJyCJOpjVYHHffJpDs6uYSeVDdfWXSQAFQIGYqQIMq8OW4tFsv1V9Q6F2ubZuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=aGr42HW4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=aGr42HW4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 997E1117EB X-Spam-Score: -3.73 X-Migadu-Scanner: scn1.migadu.com X-TUID: /c5NV0uCET6M --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Liliana Marie Prikler =E5=86=99=E9=81=93=EF=BC=9A > scheme@(guile-user)> ,t (length (scandir "/gnu/store/.links")) > $1 =3D 213027 > ;; 1417.872747s real time, 28.514293s run time. 1.284866s spent=20 > in GC. [=E2=80=A6] > So yeah, assuming that scandir scales linearly =E2=80=A6your rotational drive is beyond ridiculously slower than mine (an= =20 ST1000DM010-2EP102): athena.tobias.gr:~ =CE=BB echo 3 | sudo tee /proc/sys/vm/drop_caches=20 3 athena.tobias.gr:~ =CE=BB guix repl [=E2=80=A6] scheme@(guix-user)> ,use (ice-9 ftw) scheme@(guix-user)> ,t (length (scandir "/gnu/store/.links")) $1 =3D 164437 ;; 7.081361s real time, 2.569773s run time. 0.199963s spent in=20 GC. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYtcGHg0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15jLUA/RUtMKSluKICEiuL0dauuBZAjb6INZhfjlDq6UM9 o0tLAQC/+FGYEsWJ01hyRbU2KcFGoUXEmN8aGlu7s7Uo9658Cw== =pcnk -----END PGP SIGNATURE----- --=-=-=--