Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

HI,all
Why Net::FTP so slow? It's 70M/s~80M/s within lftp, only 10M~12M/s in my perl script(use Net::FTP).
Is it normal? What else module should be help?
regards.

Replies are listed 'Best First'.
Re: Net:FTP too slow
by marto (Cardinal) on Nov 08, 2011 at 09:40 UTC
      Hi,thanks.
      But should I increase or decrease?
      from Net::FTP:
      BlockSize - This is the block size that Net::FTP will use when doing transfers. (defaults to 10240)
      these two posts say 'alter to 4096'.

        What happened when you tried changing it to the value specified in the two threads I linked to?

        Here, 10240 refers to bytes; hence, that's 1024K. "alter to 4096" means 4096K. I usually do a BlockSize of 8192K.
Re: Net:FTP too slow
by moritz (Cardinal) on Nov 08, 2011 at 09:39 UTC
      No. It's Intel 8 core. cpu:20% around.