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 ms9.migadu.com with LMTPS id MDDeEULOiGQkYgEASxT56A (envelope-from ) for ; Tue, 13 Jun 2023 22:14:58 +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 kCHJEULOiGQSgwEAauVa8A (envelope-from ) for ; Tue, 13 Jun 2023 22:14:58 +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 BD76D3AB1B for ; Tue, 13 Jun 2023 22:14:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8ob4-0001qd-Hy; Mon, 12 Jun 2023 16:57:06 -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 1q8ob1-0001qS-Tc for guix-patches@gnu.org; Mon, 12 Jun 2023 16:57:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q8oaz-0005wn-WB for guix-patches@gnu.org; Mon, 12 Jun 2023 16:57:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q8oaz-0001Gr-SK for guix-patches@gnu.org; Mon, 12 Jun 2023 16:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51427] [PATCH] nix: libstore: Do not remove unused links when deleting specific items. References: <20211027034918.4591-1-maxim.cournoyer@gmail.com> In-Reply-To: <20211027034918.4591-1-maxim.cournoyer@gmail.com> Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Jun 2023 20:57:01 +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: 51427@debbugs.gnu.org Cc: Maxim Cournoyer , Simon Tournier , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Maxime Devos , Liliana Marie Prikler Received: via spool by 51427-submit@debbugs.gnu.org id=B51427.16866033914843 (code B ref 51427); Mon, 12 Jun 2023 20:57:01 +0000 Received: (at 51427) by debbugs.gnu.org; 12 Jun 2023 20:56:31 +0000 Received: from localhost ([127.0.0.1]:40827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8oaV-0001G3-Ff for submit@debbugs.gnu.org; Mon, 12 Jun 2023 16:56:31 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]:40340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8oaR-0001Fs-Sy for 51427@debbugs.gnu.org; Mon, 12 Jun 2023 16:56:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=BRgPdGlkHhzSwad DMq5+CBuZ0C9nB4VaI2m07GvjCPo=; h=cc:to:subject:date:from; d=lease-up.com; b=GLZ8f1NIoniT5Zq2ZwAFmt2i8vFdMkjlqdca1nKxrzVQN+EozWQ6 YOp88pzlryuCbUy4BpncdHW9RjwuulOPNZaK9Zb100shf45zRYlgv+1MyP7vm3QJXvsU5k KR8YXrHAe7yqixyiEokaD3y69pxG3kOACp1GiznXhU1WGAfpc= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id ac138773 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <51427@debbugs.gnu.org>; Mon, 12 Jun 2023 20:56:25 +0000 (UTC) Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2b1fcda0f92so59304371fa.2 for <51427@debbugs.gnu.org>; Mon, 12 Jun 2023 13:56:25 -0700 (PDT) X-Gm-Message-State: AC+VfDzcCADJ3bKe2+DN1I4yfqSJuxj3aYOnz4deGw0/9a+/GBmISHFe QgwFlHioRmkGChQVD3H9QSf2kKTwemsK19ZpIzM= X-Google-Smtp-Source: ACHHUZ4j4Kz+IU9sazOqlpl2OGVeqjMyMxHD5jOJVal2m/vmefUM1PA7K9Muph/ML2/D1Pa4Oseg6+dO7GA09yx8DpA= X-Received: by 2002:a2e:800b:0:b0:2b1:c0b9:61af with SMTP id j11-20020a2e800b000000b002b1c0b961afmr3340456ljg.52.1686603383205; Mon, 12 Jun 2023 13:56:23 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 12 Jun 2023 13:55:46 -0700 X-Gmail-Original-Message-ID: Message-ID: Content-Type: text/plain; charset="UTF-8" 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: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches From: Felix Lechner via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686687298; a=rsa-sha256; cv=none; b=ANfLynkiskBIAWbD5hYMQB22yXa2H3wSfc1XYSKb9I/O97KEebVoc6F0Inis2V3oolTs3u S71554QFrPhQVAyZwM3pzY0g0Yj/8OuhjKq8FMSKEcGA8+mGmg/4EhowGKHHKF2e3vEwed KaP2Kruv8OQp0j3+ul6UgXsOFLF/lhAt4gf53lyZ15KnTv1pmM4l8z14/qSSmhQaPxpdOr V9gGO8Nn214H+WUvX74R564PmECryFo7oUQ8bTtSPZGfA7WYdSUUZg1oARV0yB5INrlAaP 8YY9SfdSWTkSygYg/QQdXrnOEXy5qyddFiI6Rv0wKk4r5eLvR/X4RqNzPqYbpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=GLZ8f1NI; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686687298; 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=EjVysx5pIVIBng+NtoAMGJegbCmS0ot5F5xpGuK47BI=; b=QQtxJYfe6novblt4lJk39raaDcWObi8AE8Fox38qV6uScVLx4EHgvXD4iTaI0YgcILvFBZ v276AikVZbid/X4Rz0wtSrnR6I4nRK9SGI1KaFjx/M8vUZUs5cGpwNgNLAMPSz3eYaiz4b CakUs/6pWxWHqYyA8HskYs+fIc1n7V5nAdx02+yQkmwxG+25AWK22pXb4dp2hSRc1SkPSN HrHMlhqmdLHvbL1ueuRtkCDFbuDBKgO5+jUzIZFUHPo64qA6R4Uy3aO+9DVfNuBa8sqe0C AuGcV3lKK7g6CCjf9H8Uu6653qfhzaeUz4aArh+ktVzrdaZd9b5ywpE1ob4mBA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=GLZ8f1NI; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.02 X-Spam-Score: -3.02 X-Migadu-Queue-Id: BD76D3AB1B X-TUID: NFEsVz/h1YQD Hi, > Liliana, is your hard disk old or low-end? Some of my equipment is very old (2011). I think Liliana's issue is elsewhere. Maybe it's a problem with the DMA setup or with a shared interrupt. (Dmesg might help.) Liliana, have you tried removing that rebellious graphics card? A good place to start when looking at hard drive speeds is the read performance with hdparm -Tt /dev/sdX I would further look at the tuning parameters of the file system. I would also try a different internal data cable. (It would be the connector that has issues.) For the Guix REPL exercise looking at the links in the store, I locally got the following results on a mirrored array with two disks (ext4 on SATA 6 Gb/s, 7200 rpm): ;; 70.719509s real time, 14.560439s run time. 3.645179s spent in GC. On another piece of equipment with three mirrored disks (ext4 on SAS 6 Gb/s, 7200 rpm) I saw: ;; 56.528064s real time, 20.906853s run time. 5.087733s spent in GC. Arrays with multiple drives are sometimes faster because they can read in parallel. Kind regards Felix