LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-14-2014, 07:36 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,268

Rep: Reputation: 49
LNA: scp transfer a ten times slower than either the machines or the router. Can


Hi: I want to do
Code:
$ scp -rp root@local /home/semoi/source_dir dest_dir >/dev/null 2>/dev/null
The transmission is between two machines both at home. The router is 10/100M, say it uses 100M, and the disk transfer rate in the slower machine is nearly 30MB/s. So, being below 100MB/s, it is this machine that determines the speed, isn't it? But doing a test transfer, scp gave some 30KB/s as mean transfer speed. As I ran scp with the redirection, say scp really performed 100 times slower. Still this is ten times slower than expected! How can this possibly be? The transfer amounted to some 30GB size.

EDIT: measuring time with a clock, it took nearly 2s for a 14MB chunk of files. This gives 4300s = 1.2 hours for 30GB, which is what I want to transfer tonight. Does it sound reasonable?

Last edited by stf92; 03-14-2014 at 07:57 PM.
 
Old 03-14-2014, 07:51 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,656

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
I don't know the answer, but transferring through an external hard disk would be way faster.
 
Old 03-14-2014, 08:15 PM   #3
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,575

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
You could run iostat on both machines to see what the disk transfer rates appear to be.

You could also sniff the network with wireshark to see if perhaps you are re-transmitting a lot of packets.
 
1 members found this post helpful.
Old 03-14-2014, 08:21 PM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,268

Original Poster
Rep: Reputation: 49
Yes, I think I have it. I just ran dd on the hard drive to have a near idea, for I did not have the specs at hand. But with a much larger transfer, I've just got much higher speed. So, specs are mandatory or iostat should be used! I mean, the estimations were too gross. I did not realize hdparm gives me the manufacture specs. With the machine relatively lightly loaded, that would have given me good figures.

Last edited by stf92; 03-14-2014 at 08:24 PM.
 
Old 03-14-2014, 08:37 PM   #5
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 51

Rep: Reputation: 3
Note that when you router says 10/100M speed, it is actually 10/100Mbits, not 10/100MBytes, so in theory a 100M links could only give 12.5MBytes/s max and actual rate will be slower due to TCP/IP overhead.

Wich scp, you need to take counts of the speed of encryption/decryption on the data also. If you have a slow CPU, you get very low transfer speed.

So 2s for a 14MB data (~7Mb/s) is reasonable speed.

Last edited by qunying; 03-14-2014 at 08:40 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Performance Issue the dd command says one server is three times more slower than th crazy_c2guy Linux - Server 1 10-28-2009 08:29 AM
Internet speed is 50 times slower on Linux than on Windows callum85 Linux - Networking 2 10-05-2006 03:02 PM
GeForce FX5200 20 times slower that GeForce4 Ti4200 crack Linux - Hardware 7 12-28-2004 06:47 PM
How does this prefrom on Slower machines Flak Pyro VectorLinux 14 05-08-2004 05:02 AM
Internet 10 times slower in linux than in windows samx123 Linux - Wireless Networking 5 03-08-2004 05:08 AM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration