cygrunsrv + sshd + rsync = 20 times too slow -- throttled?

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Aug 30 08:48:42 GMT 2021


[Moved to cygwin-developers]

On Aug 29 17:09, Ken Brown via Cygwin wrote:
> On 8/29/2021 3:37 PM, Takashi Yano wrote:
> > Only the small thing remaining is pipe mode. If the pipe mode
> > is changed to byte mode, the following issue will be solved.
> > https://cygwin.com/pipermail/cygwin/2021-March/247987.html
> > 
> > How about the simple patch attached?
> > 
> > The comment in pipe code says:
> >       Note that the write side of the pipe is opened as PIPE_TYPE_MESSAGE.
> >       This *seems* to more closely mimic Linux pipe behavior and is
> >       definitely required for pty handling since fhandler_pty_master
> >       writes to the pipe in chunks, terminated by newline when CANON mode
> >       is specified.
> > 
> > This mentions about pty behaiviour in canonical mode, however, the
> > pty pipe is created as message mode even with this patch. Are there
> > any other reasons that message mode is preferred for pipe?
> 
> No idea.  All I remember is that there was a lot of discussion around the
> time that it was decided to use PIPE_TYPE_MESSAGE by default.  Corinna
> probably remembers the reasons.

No, sorry, I don't remember the exact discussion.  But it seemed to fix
quite a few issues at the time.


Corinna


More information about the Cygwin-developers mailing list