Results 1 to 3 of 3
Is it possible to alter the buffer size of pipe without recompiling the kernal? The size is 4096 by default, but i want a large one. Any hint?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-28-2006 #1Just Joined!
- Join Date
- Feb 2006
- Posts
- 6
how to alter the buffer size of pipe?
Is it possible to alter the buffer size of pipe without recompiling the kernal? The size is 4096 by default, but i want a large one. Any hint?
- 04-23-2006 #2Just Joined!
- Join Date
- Apr 2006
- Posts
- 5
Hi, perhaps following can help u out
getrlimit() & setrlimit()
these functions are used to get & set the upper limits of kernel resources.
- 04-26-2006 #3Just Joined!
- Join Date
- Apr 2005
- Location
- Romania
- Posts
- 42
Hi,
You have to recompile the kernel.
The constant PIPE_SIZE establishes the number of bytes allocated for a pipe (the size of the pipe buffer; in fact, the size of pipe buffer is PAGE_SIZE). The constant PIPE_BUF (limits.h) defines the atomic operational limit (atomic writes to a pipe).


Reply With Quote
