Skip to content

Commit

Permalink
queue-runner: try larger pipe buffer sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
delroth committed Feb 22, 2024
1 parent 838648c commit 909f871
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hydra-queue-runner/build-remote.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 909f871

Please sign in to comment.