From: "Ludovic Courtès" <ludo@gnu.org>
To: Guix-devel <guix-devel@gnu.org>
Subject: Rust packages and performance impact on Guix
Date: Tue, 23 Feb 2021 11:31:31 +0100 [thread overview]
Message-ID: <87ft1n5b3w.fsf@gnu.org> (raw)
In-Reply-To: <87im6ojbbx.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 19 Feb 2021 17:01:38 +0100")
Hi!
Ludovic Courtès <ludo@gnu.org> skribis:
> but on ‘wip-build-systems-gexp’ I get:
>
> $ GUIX_PROFILING=gc time ./pre-inst-env guix build qemu -d --no-grafts
> /gnu/store/5n44l8cmrmkr747nsqbxpm4764jdsl3l-qemu-5.1.0.drv
> Garbage collection statistics:
> heap size: 80.52 MiB
> allocated: 249.89 MiB
> GC times: 16
> time spent in GC: 0.75 seconds (34% of user time)
> 2.22user 0.13system 0:02.06elapsed 114%CPU (0avgtext+0avgdata 243532maxresident)k
> 0inputs+0outputs (0major+34304minor)pagefaults 0swaps
>
> In short, 30% more garbage allocated and an 8% slowdown.
In the meantime, librsvg on core-updates switched to the version that
depends on Rust. As a result, the above command, on core-updates, went
to ~2.25s on my laptop (+10–20%!).
Would be nice to investigate. One issue is that ‘cargo-build-system’
traverses packages. The ‘crate-closure’ call in there certainly adds a
fair bit of overhead. Could we avoid it?
Thanks,
Ludo’.
next prev parent reply other threads:[~2021-02-23 10:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-19 16:01 Will 2021 be the year of build systems on gexps? Ludovic Courtès
2021-02-23 10:31 ` Ludovic Courtès [this message]
2021-02-23 14:28 ` Ludovic Courtès
2021-03-10 11:09 ` Ludovic Courtès
2021-03-10 11:15 ` Julien Lepiller
2021-03-10 14:12 ` zimoun
2021-03-10 17:00 ` Leo Famulari
2021-03-23 13:38 ` Ludovic Courtès
2021-03-23 16:08 ` Ricardo Wurmus
2021-03-30 2:16 ` Maxim Cournoyer
2021-03-30 21:38 ` Ludovic Courtès
2021-03-30 22:32 ` Timothy Sample
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ft1n5b3w.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.