From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6LOBMoS47WRfTgAAG6o9tA:P1 (envelope-from ) for ; Tue, 29 Aug 2023 11:21:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6LOBMoS47WRfTgAAG6o9tA (envelope-from ) for ; Tue, 29 Aug 2023 11:21:08 +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 73B9D3295C for ; Tue, 29 Aug 2023 11:21:08 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="bSADz/Zi"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-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=1693300868; 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: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=CU5KQySPmPDNdh5bgASgRottn4jtFAMqM36I+pRB3Z0=; b=ubdPGUcIGXeZLjkkEPi2K7AEg1pO970hxN6duXtt3GjXiKSNR7AtOCysoBU7rSW3t1fqOV szs5qdOVlImtl9r5l+IVxKwox2tc3639u7N0Byll51wQYhmrjK8JBKa+jbZdu6yaeHYcYB 9xAvOdMBIFJhCAHMyusVpAm+pqkZLaQxTKXEQxr4tUqLpcTF454MUpt0nHfxmCeWYNoVO5 bM8soivt1j/HNVWlvjLer2ly0mJD65nOK2iJIylxs5e9KKbh0/nQsuQVqW9RqGLPwrerZ5 gA8JLv6SpeoeSWwc/ggBiZxQ2HTlaRGcD4xYP5XbBikVpoc1wqPzvKcuUNo6KA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="bSADz/Zi"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693300868; a=rsa-sha256; cv=none; b=LrRdHBEbKXpjsuSaUxCR+kXaeWTVlYxvZdIbA4BNwHTCQDrBPG4uSw7cTk4/vrnnAphTLU ZYvyXMGlXOLez57arkectkOHXJHlWhTHMkp40ziApbqgwo33nGyJVdBCIkTIyltfvqqdWv FgzphbeZQRXjG3zCD/T/xRISOwEPUUWwOKtLNqFwG84Re/e2cJgPCpW58zBs0OxJTVYA5I X7ynKH+O2Kt95ajx6hFOOA645j3t+euKs9JNb0hRWSjoy9D4+yWGXamV4c61ck/pCXFN8F gb6U+V3tDexHaUgw310s34fWxKWuux6AyrHdTcRuVOFdPtlZuIhXxo5Ax25s2w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qauu9-000694-V0; Tue, 29 Aug 2023 05:20:57 -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 1qauu8-00068H-Gz for bug-guix@gnu.org; Tue, 29 Aug 2023 05:20:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qauu7-0004Q0-Lz for bug-guix@gnu.org; Tue, 29 Aug 2023 05:20:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qauuE-0006OA-GI for bug-guix@gnu.org; Tue, 29 Aug 2023 05:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44053: Poor profile generation performance on spinning disks Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 29 Aug 2023 09:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44053 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Luis Felipe Cc: 44053@debbugs.gnu.org, jbranso@dismail.de Received: via spool by 44053-submit@debbugs.gnu.org id=B44053.169330081724492 (code B ref 44053); Tue, 29 Aug 2023 09:21:02 +0000 Received: (at 44053) by debbugs.gnu.org; 29 Aug 2023 09:20:17 +0000 Received: from localhost ([127.0.0.1]:49545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qautV-0006My-9n for submit@debbugs.gnu.org; Tue, 29 Aug 2023 05:20:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qautT-0006Mh-2q for 44053@debbugs.gnu.org; Tue, 29 Aug 2023 05:20:15 -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 1qautF-0003pf-Kh; Tue, 29 Aug 2023 05:20:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=CU5KQySPmPDNdh5bgASgRottn4jtFAMqM36I+pRB3Z0=; b=bSADz/Zi8QNNM2QVeJeL MR/IFa7zL5a53fbxKrkDK/PFwMdw1qkWirZjRaLC3H7MP7aw5kQac4juyKPpwGhaTySiHXQZyiBcq 3ii3IgU6w/IvawsxSCtM38M3OIgmZbX/UoH4FUZ1B3Fs7jLXwHDAGt4KZb/KoVilrZe6uzxsfrgid B7W3X486ViGSl5qAKFf2joUI7rm83xHCnVnxrckx6zjqG0ZPtcuQ+S8JTOcyQsbECVmtS5qVrj0q6 yy5j5RUoR2Rn9RgJ9M8wzgce1uH/5ArU/Vh4cZHGD1Mo5sB9Xu3yW4r8Nkxx03g19j3GJJRgol8wp lYutWHj872V+Gg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <1b6d61fc282998c93915f26914308edd@dismail.de> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 12 Fructidor an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Fenouil 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: Tue, 29 Aug 2023 11:19:56 +0200 In-Reply-To: (Luis Felipe's message of "Sun, 27 Aug 2023 17:59:28 +0000") Message-ID: <874jkiw6gz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -6.92 X-Spam-Score: -6.92 X-Migadu-Queue-Id: 73B9D3295C X-TUID: 4GjMYZbeEgGo Hi Luis, Luis Felipe skribis: > I still use the same computer with the same hard drive, and performance h= as improved when installing packages. Running > > $ time guix package -i perl --max-jobs=3D1 > > initially took > > (87 packages in profile) > real 8m3,043s > user 0m2,656s > sys 0m0,239s > > But now (guix 17fadbb), it takes > > (96 packages in profile) > real 3m51,058s > user 0m7,490s > sys 0m0,788s I think it=E2=80=99s not good. Could you time just profile generation itself? To do that, you need to find the profile generation and then to rebuild it, along these lines: DRV=3D$(guix gc --derivers $(readlink -f ~/.guix-profile)) time guix build --check $DRV The thread contains an analysis of specific sources of slowness, such as the cost of building the XDG MIME database: https://issues.guix.gnu.org/44053 I think we=E2=80=99re not done; we can probably do better by first figuring= out which parts take time (profiling) and then addressing specific issues. Ludo=E2=80=99.