Re: [PATCH,BETA] new pipe code

From: Richard Guenther (richi@student.uni-tuebingen.de)
Date: Thu Mar 02 2000 - 04:46:07 EST


On Wed, 1 Mar 2000, Alan Cox wrote:

> > > Can you add a hook to tune the write buffer size per pipe? (with an fcntl
> > > or the like)
> > I'll think about it.
> > Unfortunately, Linux guarantees that it can send 4096 bytes in one
> > atomic operation, and such an fcntl could violate that.
>
> The requirement for atomicity comes from the POSIX and Unix API. Nothing
> in the API prohibits changing the size by calls not in the API. I think its
> silly to add stuff like that however. Pipe is optimised for pure speed,
> AF_UNIX sockets can do the variable buffering already

Really? Can you give me a hint where to look at? I didnt find anything
in the manpages. If unix sockets allow blocking write after a specifiable
amount of data written (and not yet read) this would be really cool.

Richard.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:11 EST