Re: Pipe problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Uttered Jeremy Brown <jeremy@xxxxxxxxxx>, spake thus:

> Tommy Reynolds wrote:
> 
> >Uttered "Ovidiu Donciu" <ovidiud@xxxxxxxxx>, spake thus:
> >>The pipe maximum size is 4096 bytes . It is any solutions to enlarge the
> >>maximum size of the pipes ?
> >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.
> If you're stuck with pipes, you could always do something insane like 
> build buffering into the application on the receiving end of the pipe.

I'm not sure that will help much.  It would allow the sender to get
more than 4K ahead of the receiver but each 4K transfer would require
two system calls, two buffer copies and two process reschedules.  Pipes 
are just the wrong tool if you want performance.

Cheers!

Attachment: pgpmCUZd9hmqA.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux