Subject: Re: [libssh2] How to increase performance of libssh2 SFTP Read/Write

Re: [libssh2] How to increase performance of libssh2 SFTP Read/Write

From: Mononen Jussi <Jussi.Mononen_at_comptel.com>
Date: Wed, 20 Jun 2007 09:10:21 +0300

>> > What about a comparison with openssh's sftp next to our
>> > sftp_nonblocking?
>>
>> OpenSSH sftp: 0:01.06, 0:01.04, 0:01.01
>>
>> libssh2 sftp_nonblock (libssh2 packet size:4K, sftp_nonblock
>> read 64K "static"): 0:01.60, 0:01.60, 0:01.58
>>
>> That looks close enough to be called the same.

Hi,

61 seconds (0:01:01) is not the same as 118 seconds (0:01:58). The
latter is ~100% slower. If this ratio endures when the file sizes grow
or the netowrk speed decreases the performance can be too weak. What if
OpenSSH sftp transfers one file in 10 minutes, libssh2 would take 20
minutes. From our/my point of view this is not acceptable and we/I have
had to rely on wrapping command line tools for certain performance
critical systems.

But I guess the packet pipelining is out of the scope of 0.15 release.

br,

/jUSSi

-- 
perl -e '$@=[[0,0112,0,0],[0,0101,0,0],
[0,0120,0,0],[0,0110,0,0]];$[=256/8-0x1D;
print(chr(@{$_}[+($[+1-1+1)]))for(@{$@});'
____________________________________________________________________________________
Comptel Finland is moving to new premises. 
Starting from July 9 our new visiting address is Salmisaarenaukio 1, 00180 Helsinki,
and the postal address is P.O.Box 1000, FI-00181 Helsinki
____________________________________________________________________________________
Disclaimer: This message and any attachments thereto are intended solely for
the addressed recipient(s) and may contain confidential information. If you
are not the intended recipient, please notify the sender by reply e-mail and
delete the e-mail (including any attachments thereto) without producing,
distributing or retaining any copies thereof. Any review, dissemination or
other use of, or taking of any action in reliance upon, this information by
persons or entities other than the intended recipient(s) is prohibited.
Thank you.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-06-20