From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Building the web site is slow
Date: Tue, 24 Nov 2020 21:27:19 +0100 [thread overview]
Message-ID: <20201124202719.36qvjmuylwdyrpiu@pelzflorian.localdomain> (raw)
In-Reply-To: <20201123224608.q3c2rd3ixuemoflo@pelzflorian.localdomain>
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
next prev parent reply other threads:[~2020-11-24 20:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-23 15:03 Building the web site is slow Ludovic Courtès
2020-11-23 22:46 ` pelzflorian (Florian Pelz)
2020-11-23 22:54 ` pelzflorian (Florian Pelz)
2020-11-24 20:27 ` pelzflorian (Florian Pelz) [this message]
2020-11-26 11:01 ` pelzflorian (Florian Pelz)
2020-11-27 10:27 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201124202719.36qvjmuylwdyrpiu@pelzflorian.localdomain \
--to=pelzflorian@pelzflorian.de \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).