Slow transfer speeds to pi attached disks
Posted: Sat Jun 21, 2014 12:40 am
Hi,
I have read a few forums on this but wondering if I can get a definitive answer.
I have 2 x external hard drives connected to the pi (USB2.0) via a powered external hub, the pi is connected to the network via a wireless N adaptor. The drives are ex-fat so I can read them on mac, pi, windows.
I get very slow transfer speeds when trying to transfer from my mac to the pi either via samba or ftp (not secure ftp) around 1.7mb/s read and write.
I have tested the transfer speed from pi to disk using dd and get around 7 mb/s read/write on the pi.
I have also tested the network speed not the pi by downloading files and its fine so it doesn't seem to be the adaptor/wireless link
I would be happy with 4bm/s does anyone have any suggestions on how I can improve this.
I dont want to change the file system on the disks to ext3/4 as i need to read them on my mac.
Here is where I mount the disks in stab ( the uuid's I have listed as xxx but they are the actual id's from blkid), I read that native is only for ext4 so not sure if thats actually doing anything. Disks seem to mount fine
Below is the output of testparm for the relevant sections, I added some settings to the global section that i saw on other forums but that didn't help again not sure if thats because its exfat
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[pi]"
Processing section "[devices]"
Processing section "[JWNAS]"
Processing section "[JWNAS2]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
max xmit = 65535
unix extensions = No
max open files = 65535
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
lock directory = /var/cache/samba
idmap config * : backend = tdb
max connections = 65535
use sendfile = Yes
write cache size = 2097152
[JWNAS]
path = /media/JWNAS
force user = root
read only = No
[JWNAS2]
path = /media/JWNAS2
force user = root
read only = No
It doesn't seem to be a samba issue though as I get the same speeds via ftp, I assume there is some issue in either the way I mount the disks or the file system.
If the proposes solution is to change to ext4 then whats the best way to get files from the mac to pi?
Thanks in advance
Justin
I have read a few forums on this but wondering if I can get a definitive answer.
I have 2 x external hard drives connected to the pi (USB2.0) via a powered external hub, the pi is connected to the network via a wireless N adaptor. The drives are ex-fat so I can read them on mac, pi, windows.
I get very slow transfer speeds when trying to transfer from my mac to the pi either via samba or ftp (not secure ftp) around 1.7mb/s read and write.
I have tested the transfer speed from pi to disk using dd and get around 7 mb/s read/write on the pi.
I have also tested the network speed not the pi by downloading files and its fine so it doesn't seem to be the adaptor/wireless link
I would be happy with 4bm/s does anyone have any suggestions on how I can improve this.
I dont want to change the file system on the disks to ext3/4 as i need to read them on my mac.
Here is where I mount the disks in stab ( the uuid's I have listed as xxx but they are the actual id's from blkid), I read that native is only for ext4 so not sure if thats actually doing anything. Disks seem to mount fine
Code: Select all
UUID=xxxx /media/JWNAS auto defaults,noatime 0 0
UUID=xxxx /media/JWNAS2 auto defaults,noatime 0 0Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[pi]"
Processing section "[devices]"
Processing section "[JWNAS]"
Processing section "[JWNAS2]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
max xmit = 65535
unix extensions = No
max open files = 65535
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
lock directory = /var/cache/samba
idmap config * : backend = tdb
max connections = 65535
use sendfile = Yes
write cache size = 2097152
[JWNAS]
path = /media/JWNAS
force user = root
read only = No
[JWNAS2]
path = /media/JWNAS2
force user = root
read only = No
It doesn't seem to be a samba issue though as I get the same speeds via ftp, I assume there is some issue in either the way I mount the disks or the file system.
If the proposes solution is to change to ext4 then whats the best way to get files from the mac to pi?
Thanks in advance
Justin