Subject: sftp uploads greatly improved

sftp uploads greatly improved

From: Mark Riordan <mriordan_at_ipswitch.com>
Date: Sat, 13 Nov 2010 19:37:54 -0600

> Thanks for your patience ...

No problemo. Thanks for your admirable persistence.

> I've now reverted ...
> I hope this fixes Mark's most recent crashes.

It did, and now uploads work correctly, and fairly quickly!

C:\Libs\ssh\libssh2-git\tests>ntimer sftpmrr -a:put -h:172.16.22.182
-port:22 -u
:mrr -p:secret -r:/home/mrr/tmp/myupload -f:c:\temp\DMZ_6001.exe -debug:0
2>t
race.log
Not enabling compression.
Authentication methods: publickey,password
Using output buffer size of 32500 bytes
libssh2_sftp_write 1000 sent 4000 bytes; 4054000 so far
libssh2_sftp_write 2000 sent 4000 bytes; 8254500 so far
libssh2_sftp_write 3000 sent 4000 bytes; 12402500 so far
libssh2_sftp_write 4000 sent 8000 bytes; 16583000 so far
libssh2_sftp_write 5000 sent 4000 bytes; 20726500 so far
libssh2_sftp_write 6000 sent 500 bytes; 24862500 so far
libssh2_sftp_write 7000 sent 4000 bytes; 29091500 so far
libssh2_sftp_write 8000 sent 8000 bytes; 33231000 so far
libssh2_sftp_write 9000 sent 4000 bytes; 37496500 so far
libssh2_sftp_write 10000 sent 4000 bytes; 41673000 so far
libssh2_sftp_write 11000 sent 500 bytes; 45792500 so far
libssh2_sftp_write 12000 sent 500 bytes; 49952500 so far
libssh2_sftp_write 13000 sent 8000 bytes; 54120500 so far
libssh2_sftp_write 14000 sent 4000 bytes; 58325000 so far
Transferred 59.247 MB
put took 13.765 seconds = 4.304 MB/sec

ContextSwitches - 75051
First level fills = 0
Second level fills = 0

ETime( 0:00:14.124 ) UTime( 0:00:02.203 ) KTime( 0:00:00.890 )
ITime( 0:00:12.218 )

Not as fast as most other clients, but much closer than before.

I checked the file on the destination with md5sum and it arrived OK.

I tried one test with a get and it was faster:
Transferred 59.247 MB
get took 9.641 seconds = 6.145 MB/sec

but I haven't tried with over a network with delays.
If I remember correctly, the multiple-packets-pending optimization
hasn't yet been applied to downloads.

In the next few days, I'm gonna try downloads over the Internet,
plus test on Linux and maybe even Solaris instead of Windows.

Thanks!

Mark

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-11-14