cancel
Showing results for 
Search instead for 
Did you mean: 

pipe limitation

 
Highlighted
Frequent Advisor

pipe limitation

Hi,

I have created a file pipe using the comamnd
mkfifo mypipe

I have seen the file pipe to reach 8192 byte and that nothing else was able to get into.
Is 8192 an upper limit ?
Is there any way to overcome any pipe limitation ?

thanks
Angelo
2 REPLIES 2
Highlighted
Acclaimed Contributor

Re: pipe limitation

Hi Angelo:

This is an upper limit. Look at '/usr/include/limits.h' and you will see:

define PIPE_BUF 8192

Regards!

...JRF...
Highlighted
Honored Contributor

Re: pipe limitation

Hi Angelo,

there is no way to raise that limit.

The only way to overcome it, is to use streams /dev/echo, and name it with fattach.

Then you will be able to specify the receive buffer size with

ioctl(myfifo,I_SET_HIWAT,sethiwat))