From d33ed58169edc027cfb6c256ecabde87e59918ed Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 23 Nov 2022 19:32:04 +0100 Subject: 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 ()[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 @@ (define-record-type* ;; 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 -- cgit v1.2.3