all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Christopher Baines <mail@cbaines.net>, guix-devel@gnu.org
Subject: Re: Implications of QEMU binfmt transparent emulation for builds
Date: Sat, 06 Mar 2021 20:34:28 -0500	[thread overview]
Message-ID: <87wnujzqyo.fsf@netris.org> (raw)
In-Reply-To: <87eegsnexv.fsf@cbaines.net>

Hi Christopher,

Christopher Baines <mail@cbaines.net> writes:

> I'm starting to play with mixing native and emulated builds with the
> Guix Build Coordinator again. I did do this many months ago, but at that
> time, there wasn't support for targeting retries across a range of
> machines, to help avoid blockages due to QEMU issues.
>
> Anyway, something that's been on my mind regarding QEMU and builds is
> how well this matches up with building natively.

Here's one significant problem with emulated builds, although perhaps
not the kind of problem you were asking about:

Due to differences in the memory models of Intel and other systems such
as ARM, it is easy to write multithreaded code that works robustly on
Intel systems but sporadically fails on other architectures such as ARM.

However, an ARM emulator running on an Intel system will effectively use
an Intel memory model, because it would be prohibitively expensive to
faithfully simulate the ARM memory model on Intel hardware, and the only
benefit would be to demonstrate bugs that can't happen on Intel systems.

Therefore, test suites run under an emulator will almost certainly fail
to find architecture-specific thread safety problems, which I expect are
among the most important tests to be done, and among the most likely to
otherwise go unnoticed.

For this reason, I suggest that we should avoid emulated builds in our
build farm.

     Regards,
       Mark


  parent reply	other threads:[~2021-03-07  1:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-06 21:35 Implications of QEMU binfmt transparent emulation for builds Christopher Baines
2021-03-06 23:19 ` Léo Le Bouter
2021-03-07 11:44   ` Christopher Baines
2021-03-07  1:34 ` Mark H Weaver [this message]
2021-03-07 12:00   ` Christopher Baines
2021-04-21  3:29   ` Maxim Cournoyer
2021-03-10 10:47 ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnujzqyo.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=guix-devel@gnu.org \
    --cc=mail@cbaines.net \
    /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.