From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KBwgKP9Q/GSrOAEAG6o9tA:P1 (envelope-from ) for ; Sat, 09 Sep 2023 13:03:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KBwgKP9Q/GSrOAEAG6o9tA (envelope-from ) for ; Sat, 09 Sep 2023 13:03:27 +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 6BADD3634C for ; Sat, 9 Sep 2023 13:03:26 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=J9wo1DB6; 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=1694257407; 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=9DM0Mi/KJEPzAS5MNKApZNrY5YyEqbSMjnPJ+o/zg+Q=; b=hYNHUZgWmi73aHeyeMEZ6pahYQibRM0sbdRPClPPNVJcMFGMdukSF1DtLZsz2ACrPXGpCa q6oq9GJ6KIChEQqbM8vExHU8m+7A3MKCRDqK5KihK1gaf6y04eyW8zGJSKlJROGs2qaJqq bZtTXlQDZ8qS147ceaz87X1MQC0N6P29rWqR/SP3ul1pC3Oyi12Qt0/nQpVSZIFnOQp7jt U0ISvVXlOQ1Cbe2pAJCHblRQkmsP/Z+QB+AKzmbZ1qLJOfCGO+HFluon9J3sfJ+VBfHCaS BtVmDh+VYqNbNLwn0DDvUjMYKmWiGVL3sRXWHkaHRQlodngaA7JbL2Z3GlfkNA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694257407; a=rsa-sha256; cv=none; b=RiI9jE708XHR2WQmIeGY+3nLdT/dhCZ9K9L3OBVvCE4g5fRgWuXlLwTuTSRf8XSFKAHG3X L+XyzHnLPldxOGbH/8omwH1HsTNQ4sgEAANe1oBtUqYFBGYhzVGI3eM+G6EcbQE+OBpR3T r5vpnsdRM2wiTqrXfyb+Btxw6LUo+jy6QOaMy5QnvLogNMF8dY9zWQbvDJbO90xj5qbKuD T8aB0uTzMETe7Q+PVm0iGWBLM0HpmN3kNkzS8RDqvQvVOHlm33fmZ5H4I36adNPQBcCYdJ TW708uljDRsIc7kutYaOgTojgqoZ60zbTBgh8vyB9ap669PH3qb5W3JzoH7rVw== 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=J9wo1DB6; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qevjy-0006FP-5D; Sat, 09 Sep 2023 07:03: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 1qevjv-0006Ev-TG for bug-guix@gnu.org; Sat, 09 Sep 2023 07:02:59 -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 1qevjv-0003B5-4G for bug-guix@gnu.org; Sat, 09 Sep 2023 07:02:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qevjx-00042D-TN for bug-guix@gnu.org; Sat, 09 Sep 2023 07:03:01 -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: Sat, 09 Sep 2023 11:03:01 +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.169425734815465 (code B ref 44053); Sat, 09 Sep 2023 11:03:01 +0000 Received: (at 44053) by debbugs.gnu.org; 9 Sep 2023 11:02:28 +0000 Received: from localhost ([127.0.0.1]:46263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qevjQ-00041M-43 for submit@debbugs.gnu.org; Sat, 09 Sep 2023 07:02:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qevjO-00041B-Pg for 44053@debbugs.gnu.org; Sat, 09 Sep 2023 07:02:27 -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 1qevjF-00030p-FG; Sat, 09 Sep 2023 07:02:17 -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=9DM0Mi/KJEPzAS5MNKApZNrY5YyEqbSMjnPJ+o/zg+Q=; b=J9wo1DB6QwV26mcg7t8K TL+2CG+npHHhEjWWuKwekuvKbwZ2qisd3/pkE0ZGUnf59lnLeI2xv/+wcgkqwn7KRHJnGr+pL2Fdc AUyxzuz65WGtQg52YWwRIQYj28YzSGjMw4ECqTIE/179CVA7Uy5VO7D6c4PlGYNZpXv+bUK87+9p0 iw206MV2NExUOYMQ2gBWsz/zyv+8hirRWMSAnbgwmu4yg9FqqkGkMTtmE4xkf3R+5etx1mYSaDdEB 7O68WO8XpM2UWE9bc4FSwSRUOTeAuVVuiX5srcMJti4rCDzrh8Mq4vs1Z6Cg5PkomH0B9NaSsu4DU bvvRybJoWuWBAA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <1b6d61fc282998c93915f26914308edd@dismail.de> <874jkiw6gz.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Tridi 23 Fructidor an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Houblon 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: Sat, 09 Sep 2023 13:02:11 +0200 In-Reply-To: (Luis Felipe's message of "Tue, 29 Aug 2023 21:51:29 +0000") Message-ID: <87zg1vy5ho.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: mx0.migadu.com X-Migadu-Spam-Score: -0.61 X-Spam-Score: -0.61 X-Migadu-Queue-Id: 6BADD3634C X-TUID: /Gp+dHh8zq8g Hi Luis, Luis Felipe skribis: >> Could you time just profile generation itself? >>=20 > >> To do that, you need to find the profile generation and then to rebuild >> it, along these lines: >>=20 > >> DRV=3D$(guix gc --derivers $(readlink -f ~/.guix-profile)) >> time guix build --check $DRV > > The above results in > > real 1m28,841s > user 0m2,169s > sys 0m0,450s Thanks. It means that profile generation itself (and not just hooks) is slow. The place to look at is (guix build union). Unfortunately, I suspect there=E2=80=99s little room for optimization at this stage (see commit 12129998689648923b58c426362a1bc875da75f9 from=E2=80=A6 2014). Fundamentally, =E2=80=98union-build=E2=80=99 traverses every input director= y, which is expensive with low-end hard disks. It would still be worth investigating (for example by strace=E2=80=99ing the =E2=80=98union-build= =E2=80=99 process) in case we missed optimizationm opportunities, though. Thanks, Ludo=E2=80=99.