public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Severe performance degradation of writev
@ 2014-07-06 22:28 jojelino
  2014-07-06 22:35 ` jojelino
  2014-07-07 10:10 ` Corinna Vinschen
  0 siblings, 2 replies; 8+ messages in thread
From: jojelino @ 2014-07-06 22:28 UTC (permalink / raw)
  To: cygwin

2008-07-27  Corinna Vinschen  <corinna@vinschen.de>

        * fhandler_socket.cc (fhandler_socket::send_internal): Send 
never more
        then 64K bytes at once.  For blocking sockets, loop until entire 
data
        has been sent or an error occurs.
        (fhandler_socket::sendto): Drop code which sends on 64K bytes.
        (fhandler_socket::sendmsg): Ditto.

This commit added workaround for KB823764. but it has brought another 
performance issue when writev sends <64k of data.
Execute following command shows the problem.
svnrdump dump --incremental http://svn.apache.org/repos/asf/subversion 
subversion
cygwin does split writev request into many WSASendTo call and serf 
library sets TCP_NODELAY for socket it uses, a WSASendTo call 
corresponds to a tcp packet.
You can see that http header is sent being splitted when you executed 
above command. Whereas win32 backend of apr library doesn't exhibit such 
behavior by using send call.
-- 
Regards.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-11 10:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-06 22:28 Severe performance degradation of writev jojelino
2014-07-06 22:35 ` jojelino
2014-07-07 10:10 ` Corinna Vinschen
2014-07-07 13:41   ` Corinna Vinschen
2014-07-09 16:46     ` David Rothenberger
2014-07-09 17:03       ` Corinna Vinschen
2014-07-09 17:19         ` David Rothenberger
2014-07-11 10:35           ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).