pipe POLLOUT oddity

From: John Gardiner Myers (jgmyers@netscape.com)
Date: Tue Nov 05 2002 - 13:15:33 EST


Mark Mielke wrote:

>On Fri, Nov 01, 2002 at 03:27:41PM -0800, John Gardiner Myers wrote:
>
>
>>There's also the oddity that I noticed this week: pipes don't report
>>POLLOUT readiness through the classic poll interface until the pipe's
>>buffer is completely empty. Changing this to report POLLOUT readiness
>>when the pipe's buffer is not full apparently causes NIS to break.
>>
>>
>
>These seems deficient. Does this mean that pipes managed via poll() are
>not able to maximum throughput?
>
I could see this going either way, depending on the application.
 Holding off the POLLOUT readiness could improve performance by making
sure that whenever a process is scheduled to write to a pipe the pipe
has enough buffer to take all of the data.



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



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:39 EST