Pipe problems

Tommy Reynolds Tommy.Reynolds at MegaCoder.com
Thu May 27 16:54:29 UTC 2004


Uttered "Ovidiu Donciu" <ovidiud at apropo.ro>, spake thus:

> The pipe maximum size is 4096 bytes . It is any solutions to enlarge the
> maximum size of the pipes ?

Nope.  By definition, pipes have _no_ storage capacity.  They
function as a rendevous-type syncronization point for data transfer
between two processes.  Pipes are for conveniently building
functionality chains, linking several small simple programs together
to make a throw-away complex program.

If you are really asking about improving the performance of data
transfer between to processes, then pipes are the wrong choice
because pipes are implemented as filesystem objects and bring
along all that overhead.

Looking for performance? Then check out using shared memory, perhaps
by using either a shared mmap(2) region or, blech, System V IPC
shmget() and friends.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040527/9c30457c/attachment-0001.sig>


More information about the fedora-list mailing list