Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Scp to raspberry 3 times slower than scp from raspberry
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Scp to raspberry 3 times slower than scp from raspberry
10th Jun, 2013, 05:31 PM
Post: #1
jbecicka Offline
Registered
Posts: 6
Joined: Jun 2013
Reputation: 0
Scp to raspberry 3 times slower than scp from raspberry
Hi,
I have a network issue and I'd like to ask for help.
I use xbian alpha 5.

My π is connected using ethernet cable to wifi router. My laptop uses wifi (g).

If I scp files to raspberry, it is very slow (about 0.5MB/s) but if I scp files from raspberry to my laptop, the transfer speed is ok (1.5MB/s - probably limit of my wifi network).

I use external HDD, formatted using HFS+. And it is not source of the slowness:

Code:
> dd if=/dev/zero of=500mb.bin bs=1M count=500 oflag=direct
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 26.4107 s, 19.9 MB/s

so the disk write speed is about 20MB/s. Any ideas why scp upload is 3 times slower than download?

Thanks.
Jan
Find all posts by this user
Quote this message in a reply
10th Jun, 2013, 05:36 PM
Post: #2
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
Re: Scp to raspberry 3 times slower than scp from raspberry
maybe speed of your SD card is affecting this

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
10th Jun, 2013, 05:56 PM
Post: #3
jbecicka Offline
Registered
Posts: 6
Joined: Jun 2013
Reputation: 0
RE: Scp to raspberry 3 times slower than scp from raspberry
(10th Jun, 2013 05:36 PM)rikardo1979 Wrote:  maybe speed of your SD card is affecting this
I'm not copying to SD card, but to USB attached disk.

Anyway SD card is also quite fast:
Code:
xbian@xbian ~ $ dd if=/dev/zero of=500mb.bin bs=1M count=500 oflag=direct
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 57.592 s, 9.1 MB/s
Find all posts by this user
Quote this message in a reply
10th Jun, 2013, 08:25 PM
Post: #4
t.becicka Offline
Registered
Posts: 6
Joined: May 2013
Reputation: 0
RE: Scp to raspberry 3 times slower than scp from raspberry
I have very same trouble but I don't use wifi.
Find all posts by this user
Quote this message in a reply
10th Jun, 2013, 09:46 PM
Post: #5
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: Scp to raspberry 3 times slower than scp from raspberry
Check the CPU usage via "top" while transfering files. Perhaps it's the bottleneck due file encryption.
Find all posts by this user
Quote this message in a reply
10th Jun, 2013, 10:56 PM
Post: #6
t.becicka Offline
Registered
Posts: 6
Joined: May 2013
Reputation: 0
RE: Scp to raspberry 3 times slower than scp from raspberry
Top is high on wa. But the same situation via samba or ftp, eg. without encryption.
Find all posts by this user
Quote this message in a reply
11th Jun, 2013, 12:04 AM
Post: #7
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: Scp to raspberry 3 times slower than scp from raspberry
Is Samba and/or FTP faster or is it the same issue?
Find all posts by this user
Quote this message in a reply
13th Jun, 2013, 08:37 PM
Post: #8
t.becicka Offline
Registered
Posts: 6
Joined: May 2013
Reputation: 0
RE: Scp to raspberry 3 times slower than scp from raspberry
(11th Jun, 2013 12:04 AM)namtih Wrote:  Is Samba and/or FTP faster or is it the same issue?

It is the same issue
Find all posts by this user
Quote this message in a reply
15th Jun, 2013, 01:28 PM
Post: #9
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Scp to raspberry 3 times slower than scp from raspberry
is you usb hdd mounted with "sync" option?

(do a "mount" from terminal and check)

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
15th Jun, 2013, 03:12 PM
Post: #10
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
Re: Scp to raspberry 3 times slower than scp from raspberry
what is the HW set up and details?

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
21st Jun, 2013, 05:34 PM
Post: #11
t.becicka Offline
Registered
Posts: 6
Joined: May 2013
Reputation: 0
RE: Scp to raspberry 3 times slower than scp from raspberry
(15th Jun, 2013 01:28 PM)mk01 Wrote:  is you usb hdd mounted with "sync" option?

(do a "mount" from terminal and check)

Yes, it's mounted with sync

(15th Jun, 2013 03:12 PM)rikardo1979 Wrote:  what is the HW set up and details?

I don't know what You mean. It's pi model B with external USB3 HDD.
Find all posts by this user
Quote this message in a reply
23rd Jun, 2013, 01:19 AM
Post: #12
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Scp to raspberry 3 times slower than scp from raspberry
(21st Jun, 2013 05:34 PM)t.becicka Wrote:  Yes, it's mounted with sync

so that is you issue

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Raspberry Pi 3 loosing wifi - busy status mgouin 25 65,677 31st Aug, 2016 08:11 PM
Last Post: Nachteule
  Issue with Official Raspberry Pi Wifi Dongle nmrcantao 1 6,940 9th Jan, 2016 11:44 PM
Last Post: IriDium

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 13th May, 2025, 08:00 AM Powered By MyBB, © 2002-2025 MyBB Group.