2009/12/23 John A Meinel <email address hidden>:
> We should write when we can, and not try to buffer too much. We can
> trust that ssh will do a decent amount of buffering. I don't think this
> means we should write a single byte at a time, but a 64kB buffer
> actually sounds reasonable. So when we get a bit, ssh can start putting
> it on the wire, and we can keep producing more data.
I think in the absence of contrary evidence, we should only gather up
writes enough that the syscall overhead is sufficiently amortized. So
1byte would obviously be quite expensive but 64kB may even be past the
sweet spot.
2009/12/23 John A Meinel <email address hidden>:
> We should write when we can, and not try to buffer too much. We can
> trust that ssh will do a decent amount of buffering. I don't think this
> means we should write a single byte at a time, but a 64kB buffer
> actually sounds reasonable. So when we get a bit, ssh can start putting
> it on the wire, and we can keep producing more data.
I think in the absence of contrary evidence, we should only gather up
writes enough that the syscall overhead is sufficiently amortized. So
1byte would obviously be quite expensive but 64kB may even be past the
sweet spot.
-- launchpad. net/~mbp/>
Martin <http://