Find the answer to your Linux question:
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.
  1. #1
    Just 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?

  2. #2
    Just 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.

  3. #3
    Just 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).

  4. $spacer_open
    $spacer_close

Posting Permissions

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