Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 4096bytes or 4kb is the default page size in most systems. That's probably why this cap. Maybe If you can increase the page size in your system it will make the pipe read and write more data.
    – The Fool
    Commented May 23, 2021 at 23:05
  • 2
    @TheFool no, PIPE_BUF is a constant, and on Linux it is 4096, POSIX only mandates it to be at least 512 bytes, there's no way to increase it other than to patch the kernel, and you'd probably have a hard time because that's the size up to which the writes are atomic, the synchronization is probably the bottleneck.
    – user11877195
    Commented Mar 11, 2022 at 16:12