Re: [twsocket] TFtpClient transfer time...
zayin wrote: > Hello, > > Thanks Arno. The speed increase was almost double. > >> Please let me know how it works for you, does it slow down > performance when you have plenty of small files to transfer? > > Not sure. The files I am sending, normally just two, are all large > installer files. > >> Maybe we should make these settings a property? > > That would be nice. Then maybe it could be tweaked. I wonder what > would happen if it was 65535. It is a property now however defaults to 8192 in order to keep backwards compatibility. After some trouble with my TortoiseSVN client changes are actually checked in now (see my previous mail). -- Arno Garrels > > Ciao, > > Mark -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TFtpClient transfer time...
Hello, Thanks Arno. The speed increase was almost double. > Please let me know how it works for you, does it slow down performance when you have plenty of small files to transfer? Not sure. The files I am sending, normally just two, are all large installer files. > Maybe we should make these settings a property? That would be nice. Then maybe it could be tweaked. I wonder what would happen if it was 65535. Ciao, Mark -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TFtpClient transfer time...
Arno Garrels wrote: > > My test: ICS 7.3 MB/s and FileZilla 12.0 MB/s in a 100 Mbit LAN. > After I set DataSocket's winsock send and receive buffer size > to 32768 (default 8192) speed notably increased to 11.4. The receive buffer doesn't matter here of course :) > I uploaded this changed OverbyteIcsFtpCli.pas here: > http://www.duodata.de/misc/delphi/ics/OverbyteIcsFtpCli.zip Forget this download please. I just checked in a fix, it is available with a SVN client now or included in next daily snapshot: http://wiki.overbyte.be/wiki/index.php/ICS_Download Log: - Added published property DataSocketSndBufSize and public property DataSocketRcvBufSize. Increase DataSocketSndBufSize in order to make uploads faster. Both values default to value 8192 which is the default winsock size. - Removed useless call to WSocket_getsockopt in TCustomFtpCli.DataSocketPutSessionAvailable. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TFtpClient transfer time...
Arno Garrels wrote: > After I set DataSocket's winsock send and receive buffer size > to 32768 (default 8192) speed notably increased to 11.4. The reason for this increase is that TryToSent less often hits socket error WSAWOULDBLOCK see also: http://support.microsoft.com/kb/823764/en-us -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TFtpClient transfer time...
zayin wrote: > Hello, > > I am using TFtpClient, version 7.12 to transfer a single file. The > elapsed time is over 4 1/2 minutes. When I transfer the same single > file with FileZilla the elapsed time is 2 1/2 minutes. My test: ICS 7.3 MB/s and FileZilla 12.0 MB/s in a 100 Mbit LAN. After I set DataSocket's winsock send and receive buffer size to 32768 (default 8192) speed notably increased to 11.4. I uploaded this changed OverbyteIcsFtpCli.pas here: http://www.duodata.de/misc/delphi/ics/OverbyteIcsFtpCli.zip Note that it requires current ICSv7 available for download here: http://wiki.overbyte.be/wiki/index.php/ICS_Download Please let me know how it works for you, does it slow down performance when you have plenty of small files to transfer? Maybe we should make these settings a property? Currently I hardcoded them in the component. Also making sure that DataSocket.BufSize (default 1460) doesn't exceed the maximum MTU might give you some more KB/s. In my LAN all PCs are configured to use a MTU of 1452 for best performance with our DSL internet connection and setting that value as DataSocket.BufSize gave me another 0.4 MB/s. With these settings it's as fast as with blocking sockets -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be