sftp needs a long time for sending a filelist
Damien Miller
djm at mindrot.org
Mon Jul 21 23:25:10 EST 2008
On Mon, 21 Jul 2008, Markus Wünsch wrote:
>
> Hello all
> Im using sftp 1:4.7p1-8ubuntu1.2
> in a batchjob
> Ive noticed that sftp needs a long time for sending a filelist.
> The timespan increases exponential if many files are on the
> remoteserver.
> for example "ls -la *.txt" needs 10 seconds for 2000 files
> but needs 50 seconds for 4000 files.
> For 150.000 Files i have to wait 15 minutes for example
> but the Conecction is very fast. I think the sftp-server needs this
> time to
> build the list.
I should also mention that there is a workaround: using "ls -1f" will
avoid the rountrip per filename.
-d
More information about the openssh-unix-dev
mailing list