Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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?

  2. #2
    Hi, perhaps following can help u out

    getrlimit() & setrlimit()

    these functions are used to get & set the upper limits of kernel resources.

  3. #3
    Just Joined!
    Join Date
    Apr 2005

    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).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts