build: rephrase perf penalty with qemu emulation

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2023-09-28 17:16:22 +02:00
parent d5420c616e
commit 44abfddcea
2 changed files with 6 additions and 8 deletions

View File

@ -55,9 +55,8 @@ loads it through a binary registered in the `binfmt_misc` handler.
> **Note** > **Note**
> >
> QEMU performs full-system emulation of non-native platforms, which is much > Emulation with QEMU can be much slower than native builds, especially for
> slower than native builds. Compute-heavy tasks like compilation and > compute-heavy tasks like compilation and compression or decompression.
> compression or decompression likely results in a large performance hit.
> >
> Use [cross-compilation](#cross-compilation) instead, if possible. > Use [cross-compilation](#cross-compilation) instead, if possible.
@ -257,4 +256,4 @@ Linux architectures such as `arm`, `mips`, `ppc64le`, and even `s390x`.
This does not require any special configuration in the container itself as it This does not require any special configuration in the container itself as it
uses [qemu-static](https://wiki.qemu.org/Main_Page) uses [qemu-static](https://wiki.qemu.org/Main_Page)
from the Docker Desktop VM. Because of this, you can run an ARM container, from the Docker Desktop VM. Because of this, you can run an ARM container,
like the `arm32v7` or `ppc64le` variants of the busybox image. like the `arm32v7` or `ppc64le` variants of the busybox image.

View File

@ -135,11 +135,10 @@ $ docker buildx build \
--push . --push .
``` ```
> **Warning** > **Note**
> >
> QEMU performs full-system emulation of non-native platforms, which is much > Emulation with QEMU can be much slower than native builds, especially for
> slower than native builds. Compute-heavy tasks like compilation and > compute-heavy tasks like compilation and compression or decompression.
> compression/decompression will likely take a large performance hit.
## Custom network ## Custom network