Roman Yakovenko
2010-02-01 07:52:42 UTC
Hello.
I am using SCPClient class from branch(
http://bazaar.launchpad.net/~jbardin/paramiko/paramiko_scp/annotate/500?file_id=scp.py-20081117202350-5q0ozjv6zz9ww66y-1
) with paramiko 1.7.6 and Python 2.6 on Ubuntu "Karmic Koala".
I am testing my code with file size 1 GB.
The SCPClient upload rate starts with 10 MB/s and than drops to 5.2
MB/s. The average is 5.2 MB/s. I tried to change buffer size, but this
didn't help
The scp command upload rate starts with 20 MB/s and then drops to 10
MB/s. The average is 10 MB/s.
To complete the statistics, paramiko built-in SFTPClient average rate
is 2.2 MB. I use "put" method as is, with the default configuration.
I am not sure where to start to solve the problem. Initially, I
suspected that "local file reading" is a problem, but that
functionality works pretty well.
Right now, I am using work around ( executing scp with subprocess )
but it is less than optimal solution.
Any help is appreciated.
Thank you
I am using SCPClient class from branch(
http://bazaar.launchpad.net/~jbardin/paramiko/paramiko_scp/annotate/500?file_id=scp.py-20081117202350-5q0ozjv6zz9ww66y-1
) with paramiko 1.7.6 and Python 2.6 on Ubuntu "Karmic Koala".
I am testing my code with file size 1 GB.
The SCPClient upload rate starts with 10 MB/s and than drops to 5.2
MB/s. The average is 5.2 MB/s. I tried to change buffer size, but this
didn't help
The scp command upload rate starts with 20 MB/s and then drops to 10
MB/s. The average is 10 MB/s.
To complete the statistics, paramiko built-in SFTPClient average rate
is 2.2 MB. I use "put" method as is, with the default configuration.
I am not sure where to start to solve the problem. Initially, I
suspected that "local file reading" is a problem, but that
functionality works pretty well.
Right now, I am using work around ( executing scp with subprocess )
but it is less than optimal solution.
Any help is appreciated.
Thank you
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/