Forum

Full Version: Scp to raspberry 3 times slower than scp from raspberry
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
maybe speed of your SD card is affecting this
(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
I have very same trouble but I don't use wifi.
Check the CPU usage via "top" while transfering files. Perhaps it's the bottleneck due file encryption.
Top is high on wa. But the same situation via samba or ftp, eg. without encryption.
Is Samba and/or FTP faster or is it the same issue?
(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
is you usb hdd mounted with "sync" option?

(do a "mount" from terminal and check)
what is the HW set up and details?
(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.
(21st Jun, 2013 05:34 PM)t.becicka Wrote: [ -> ]Yes, it's mounted with sync

so that is you issue
Reference URL's