On Thu, Apr 29, 2010 at 10:08 AM, Bakul Shah <bakul+pl...@bitblocks.com> wrote:
> Short of a sliding window that is as large as the capacity of > the pipe, you can't expect to keep it full. As usual one has > to trade off simplicity vs performance. > > I do hope 9p evolves. > > The problem revealed by fcp is worse than that. You're rewriting a simple program (cp) to cover for a lack of capability in the kernel. There's no reason that I can't do a read(1048576) and have the kernel turn that into as many reads as possible -- in this case, for 8k, 2^7 reads. Oh, and, it is likely that when we issue that many or more reads, we want a flow controlled network. Just guessing :-) ron