aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-08-22 09:49:43 +0100
committerChristopher Baines <mail@cbaines.net>2023-08-22 09:49:43 +0100
commit71c301c777a6329ab0d51df9f6c6e077a733ac7a (patch)
tree365d4acc4f5f12f317f5d137de33041b95e70652
parentd466a7423b719a9da39ca46f7c8c27d76b6c7e8c (diff)
downloadbuild-coordinator-71c301c777a6329ab0d51df9f6c6e077a733ac7a.tar
build-coordinator-71c301c777a6329ab0d51df9f6c6e077a733ac7a.tar.gz
Increase the open file limit
To hopefully make investigating why excessive ports/open files are being used.
-rw-r--r--guix-build-coordinator/coordinator.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/guix-build-coordinator/coordinator.scm b/guix-build-coordinator/coordinator.scm
index 3c96d5b..471c398 100644
--- a/guix-build-coordinator/coordinator.scm
+++ b/guix-build-coordinator/coordinator.scm
@@ -404,6 +404,13 @@
(setrlimit 'core #f #f))
#:unwind? #t)
+ (with-exception-handler
+ (lambda (exn)
+ (simple-format #t "failed increasing open file limit: ~A\n" exn))
+ (lambda ()
+ (setrlimit 'nofile 4096 4096))
+ #:unwind? #t)
+
;; TODO Work around this causing problems with backtraces
;; https://github.com/wingo/fibers/issues/76
(set-record-type-printer!