diff mbox series

[bug#68242,core-updates,v2,1/5] utils: Lower xz compression memory usage limit to 20%.

Message ID 2d37c22fc834b1062c456c8b23974d9be5a2ff56.1704484373.git.maxim.cournoyer@gmail.com
State New
Headers show
Series Compress man pages using zstd | expand

Commit Message

Maxim Cournoyer Jan. 5, 2024, 7:52 p.m. UTC
There were sometimes out of memory errors on the Berlin build farm, especially
for i686 or arm machines having less memory.

* guix/build/utils.scm (%xz-parallel-args): Reduce --memlimit value from 50%
to 20%.

Change-Id: If848bed92ef4c42d11a96057e59ee51a019d0573
---

(no changes since v1)

 guix/build/utils.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ludovic Courtès Jan. 8, 2024, 5:26 p.m. UTC | #1
Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> There were sometimes out of memory errors on the Berlin build farm, especially
> for i686 or arm machines having less memory.
>
> * guix/build/utils.scm (%xz-parallel-args): Reduce --memlimit value from 50%
> to 20%.
>
> Change-Id: If848bed92ef4c42d11a96057e59ee51a019d0573

LGTM.
diff mbox series

Patch

diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index 8e630ad586..e87066cc02 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -186,7 +186,7 @@  (define (tarball? file-name)
 (define (%xz-parallel-args)
   "The xz arguments required to enable bit-reproducible, multi-threaded
 compression."
-  (list "--memlimit=50%"
+  (list "--memlimit=20%"
         (format #f "--threads=~a" (max 2 (parallel-job-count)))))