queue-runner: try larger pipe buffer sizes

This commit is contained in:
Pierre Bourdon 2024-02-22 14:45:17 +01:00 committed by Martin Weinelt
parent 6ed21490ee
commit 18466e8326

View file

@ -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);
}