diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-18 18:17:45 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-19 10:56:24 +0100 |
commit | 61ea9f7665d5c7d6b6dd4aeebb56519c83228c31 (patch) | |
tree | d146d314ef4cfdc98f50a41da5c028786ab2bd1e | |
parent | b38628041bc1591c29f3838f43f0169dd768e4f4 (diff) | |
download | poky-61ea9f7665d5c7d6b6dd4aeebb56519c83228c31.tar.gz |
ref-manual: Add XZ_THREADS and XZ_MEMLIMIT
XZ_THREADS and XZ_MEMLIMIT were introduced in dunfell.
[RP improved an original patch from Paul]
(From yocto-docs rev: 4fb0498ecf1e6747ecd3ea5482d0b8bfa2632d49)
Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/ref-manual/ref-variables.rst | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/documentation/ref-manual/ref-variables.rst b/documentation/ref-manual/ref-variables.rst index 49e756cfba..e184608d19 100644 --- a/documentation/ref-manual/ref-variables.rst +++ b/documentation/ref-manual/ref-variables.rst | |||
@@ -8745,4 +8745,22 @@ system and gives an overview of their function and contents. | |||
8745 | 8745 | ||
8746 | The default value of ``XSERVER``, if not specified in the machine | 8746 | The default value of ``XSERVER``, if not specified in the machine |
8747 | configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev". | 8747 | configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev". |
8748 | 8748 | ||
8749 | :term:`XZ_THREADS` | ||
8750 | Specifies the number of parallel threads that should be used when | ||
8751 | using xz compression. | ||
8752 | |||
8753 | By default this scales with core count, but is never set less than 2 | ||
8754 | to ensure that multi-threaded mode is always used so that the output | ||
8755 | file contents are deterministic. Builds will work with a value of 1 | ||
8756 | but the output will differ compared to the output from the compression | ||
8757 | generated when more than one thread is used. | ||
8758 | |||
8759 | On systems where many tasks run in parallel, setting a limit to this | ||
8760 | can be helpful in controlling system resource usage. | ||
8761 | |||
8762 | :term:`XZ_MEMLIMIT` | ||
8763 | Specifies the maximum memory the xz compression should use as a percentage | ||
8764 | of system memory. If unconstrained the xz compressor can use large amounts of | ||
8765 | memory and become problematic with parallelism elsewhere in the build. | ||
8766 | "50%" has been found to be a good value. | ||