[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: offload: Increase default 'overload-threshold' value.
From: |
guix-commits |
Subject: |
03/03: offload: Increase default 'overload-threshold' value. |
Date: |
Wed, 23 Nov 2022 13:36:22 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit d33ed58169edc027cfb6c256ecabde87e59918ed
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Nov 23 19:32:04 2022 +0100
offload: Increase default 'overload-threshold' value.
When offloading to a single machine, the previous default value would
lead 'guix offload' to wait possibly for several minutes between
subsequent builds until normalized load would finally go below 0.6.
Increasing it mitigates that.
* guix/scripts/offload.scm (<build-machine>)[overload-threshold]: Bump
to 0.8.
* doc/guix.texi (Daemon Offload Setup): Likewise.
---
doc/guix.texi | 2 +-
guix/scripts/offload.scm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index c0cb24d709..f39a0aa700 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -1409,7 +1409,7 @@ when transferring files to and from build machines.
File name of the Unix-domain socket @command{guix-daemon} is listening
to on that machine.
-@item @code{overload-threshold} (default: @code{0.6})
+@item @code{overload-threshold} (default: @code{0.8})
The load threshold above which a potential offload machine is
disregarded by the offload scheduler. The value roughly translates to
the total processor usage of the build machine, ranging from 0.0 (0%) to
diff --git a/guix/scripts/offload.scm b/guix/scripts/offload.scm
index 8ab393c0ac..578b3b9888 100644
--- a/guix/scripts/offload.scm
+++ b/guix/scripts/offload.scm
@@ -112,7 +112,7 @@
;; A #f value tells the offload scheduler to disregard the load of the build
;; machine when selecting the best offload machine.
(overload-threshold build-machine-overload-threshold ; inexact real between
- (default 0.6)) ; 0.0 and 1.0 | #f
+ (default 0.8)) ; 0.0 and 1.0 | #f
(parallel-builds build-machine-parallel-builds ; number
(default 1))
(speed build-machine-speed ; inexact real