From 18466e83261d39b997a73bbd9f0f249c3a91fbeb Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Thu, 22 Feb 2024 14:45:17 +0100 Subject: [PATCH] queue-runner: try larger pipe buffer sizes --- src/hydra-queue-runner/build-remote.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index f81a5a0a..b1629595 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -100,6 +100,11 @@ static void openConnection(::Machine::ptr machine, Path tmpDir, int stderrFD, SS child.in = to.writeSide.release(); child.out = from.readSide.release(); + + // XXX: determine the actual max value we can use from /proc. + int pipesize = 1024 * 1024; + fcntl(child.in.get(), F_SETPIPE_SZ, &pipesize); + fcntl(child.out.get(), F_SETPIPE_SZ, &pipesize); }