I’m using asynchronous pipes for inter-process communication (I removed error checks for simplification)
int pipe_fd[2];
pipe(pipe_fd);
int fdflags = fcntl(pipe_fd[1], F_GETFL, 0);
fdflags |= O_NONBLOCK;
fcntl(pipe_fd[1], F_SETFL, fdflags);
I’m looking for a way to increase pipe internal buffer size.
I know that it is possible to do with Kernel >= 2.6.35
by the following way:
fcntl(fd, F_SETPIPE_SZ, size);
or by writing to:
/proc/sys/fs/pipe-max-size
But I’m working on CentOS 5 with Kernel 2.6.18.
Is it possible to increase pipe internal buffer size with Kernel 2.6.18? If yes, how to do that?
On the kernel of CentoS 5, a pipe is fixed at 64 KB