From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aEtkDcVsvV8EcgAA0tVLHw (envelope-from ) for ; Tue, 24 Nov 2020 20:27:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QKLJCMVsvV+UPAAA1q6Kng (envelope-from ) for ; Tue, 24 Nov 2020 20:27:49 +0000 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 CAFA7940503 for ; Tue, 24 Nov 2020 20:27:48 +0000 (UTC) Received: from localhost ([::1]:52914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kheuh-0000uF-JY for larch@yhetil.org; Tue, 24 Nov 2020 15:27:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kheuX-0000rp-Gb for guix-devel@gnu.org; Tue, 24 Nov 2020 15:27:37 -0500 Received: from pelzflorian.de ([5.45.111.108]:38342 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kheuR-0004ad-Px; Tue, 24 Nov 2020 15:27:37 -0500 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 21B5A3605A8; Tue, 24 Nov 2020 21:27:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1606249649; bh=w1wWaMLyiGfPFRp8p5G9uKWQ4PvsuLZ7l/aBSaMtn6E=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=07Ev2aV9GFL82m/y7bDlp/F1+PqHUDQUCJhQ1Tj5eYvUE+tXW/9ILq1X6WEV9vI+m oMLZR/pH3yTF9IxRbxDLLsg4dNNW5lmkFFshi3wLxka7IN29tQcFwaEqs6Ny61NaFt YJflZr9s5GR6im6r2oW494o7Tgivn21aPj5PlYoI= Date: Tue, 24 Nov 2020 21:27:19 +0100 From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Building the web site is slow Message-ID: <20201124202719.36qvjmuylwdyrpiu@pelzflorian.localdomain> References: <877dqcjetd.fsf@inria.fr> <20201123224608.q3c2rd3ixuemoflo@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201123224608.q3c2rd3ixuemoflo@pelzflorian.localdomain> Received-SPF: pass client-ip=5.45.111.108; envelope-from=pelzflorian@pelzflorian.de; helo=mail.pelzflorian.de 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=pelzflorian.de header.s=mail header.b=07Ev2aV9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: +q08dkxEOYqi OK, I now believe `haunt build` is what costs the time. On Mon, Nov 23, 2020 at 11:46:08PM +0100, pelzflorian (Florian Pelz) wrote: > Anyway, I am not sure the `haunt build` runs are the culprit. If it > is a problem with spinning disks only, maybe .guix.scm can be made to > copy less from the same disk to the same disk but copy more from disk > to a file system in RAM and from a file system in RAM to disk. Negative, unless I misunderstood what /dev/shm is. I did `time guix build -f .guix.scm`: real 7m3.909s user 1m3.639s sys 0m0.841s Instead of `time` I now enclosed most of the build procedure in (statprof (lambda () …)) % cumulative self time seconds seconds procedure 18.62 2.13 2.11 ice-9/boot-9.scm:1738:4:throw 14.81 1.68 1.68 display 14.22 1.61 1.61 copy-file 8.36 0.95 0.95 readdir 6.89 0.78 0.78 mkdir 4.11 0.47 0.47 opendir 3.96 0.47 0.45 lstat 2.20 0.25 0.25 ice-9/boot-9.scm:1202:6 1.91 4.83 0.22 ice-9/boot-9.scm:1673:4:with-exception-handler 1.91 0.22 0.22 string-append I added at the beginning of the build procedure: (let ((where "/dev/shm/website-construction-site")) (mkdir-p where) (chdir where)) Now I get real 7m4.632s user 1m4.254s sys 0m0.744s % cumulative self time seconds seconds procedure 17.66 2.06 2.06 copy-file 17.52 2.07 2.04 ice-9/boot-9.scm:1738:4:throw 9.97 1.16 1.16 display 8.40 0.98 0.98 mkdir 8.26 0.98 0.96 readdir 5.41 0.63 0.63 opendir 3.85 0.46 0.45 lstat 2.71 5.57 0.32 ice-9/boot-9.scm:1673:4:with-exception-handler 2.14 0.25 0.25 string-append I will instead try profiling haunt runs again. Regards, Florian