View Full Version : [SOLVED] 80KB/s Windows to Ubuntu Samba speeds
Hwest
May 17th, 2012, 07:42 PM
Hi
I just installed SAMBA onto my Ubuntu 12.04 server and when I try copying a file from windows 7 to the share the transfer is only 80KB/s.
Any ideas on how to increase speeds?
Cheers
Cheesemill
May 17th, 2012, 10:32 PM
What is your network setup?
How are the server and Windows machine talking to each other?
arrrghhh
May 17th, 2012, 11:29 PM
Samba is slow, but network topology is needed to further understand what's going on.
Did you verify raw connectivity between the two devices using iperf? I would recommend it.
Hwest
May 18th, 2012, 07:22 AM
Both the windows and Server have WIFI Gigabyte adapters, connected to a Billion BiPAC 6404VGPR3. Thats 54MB/s. Peak download from the internet is 1.2MB/s.
I did a reinstall of Samba following a guide and now im getting 400-600KB/s. Averaging around 530. Its better but still too slow for my use.
And sorry, How do I use iperf?
Edit: Current transfer just hit 130KB/s
Hwest
May 18th, 2012, 03:55 PM
Thanks to google, Im trying a windows app called Teracopy, and my upload speeds havent dropped below 500KB/s, Its normally around 600-770KB/s.
Once again, Better but anyway to get it >1MB/s?
arrrghhh
May 18th, 2012, 04:32 PM
Thanks to google, Im trying a windows app called Teracopy, and my upload speeds havent dropped below 500KB/s, Its normally around 600-770KB/s.
Once again, Better but anyway to get it >1MB/s?
Did you try iperf? It will help you get the raw transfer rates between machines... Very little overhead.
You just need it running on the server and the client.
54mbps/8 = 6.75MB/s. That's absolutely ideal, which is really never the case with wifi. I usually get 4-5MB/s, but I'm on N - 135mbps...
ian dobson
May 18th, 2012, 04:38 PM
Hi,
You could try modifying your /etc/samba/smb.conf. These are the settings I'm using on my big backend server (8core,16Gb ram,20Tb RAID arrays)
[global]
read raw = yes
write raw = yes
wide links=yes
getwd cache=yes
stat cache = yes
strict sync = no
use sendfile = yes
large readwrite = yes
oplock contention limit = 5
oplock break wait time = 100
case sensitive = true
strict allocate = yes
max xmit = 131072
use sendfile = Yes
dead time = 15
getwd cache = Yes
disable netbios = yes
nmbd bind explicit broadcast = no
netbios name = alpha2
min receivefile size = 13638
aio read size = 64360
aio write size = 64360
aio write behind = true
##Optimize tcp
socket options = TCP_NODELAY SO_RCVBUF=262144 SO_SNDBUF=262144 IPTOS_LOWDELAY SO_KEEPALIVE
write cache size = 12826144
strict allocate = yes
With this configuration I get about 8MByte/sec from windows7 to the server over 5GHz wireless network abd 30MByte/sec from a second linux box over a GBit lan.
Regards
Ian Dobson
CharlesA
May 18th, 2012, 04:50 PM
Did you try iperf? It will help you get the raw transfer rates between machines... Very little overhead.
You just need it running on the server and the client.
54mbps/8 = 6.75MB/s. That's absolutely ideal, which is really never the case with wifi. I usually get 4-5MB/s, but I'm on N - 135mbps...
That sounds about the speeds I get over wireless. If I need to transfer a lot of files, I'll go over wired gigabit.
Hwest
May 18th, 2012, 08:12 PM
Hi,
You could try modifying your /etc/samba/smb.conf. These are the settings I'm using on my big backend server (8core,16Gb ram,20Tb RAID arrays)
[global]
read raw = yes
write raw = yes
wide links=yes
getwd cache=yes
stat cache = yes
strict sync = no
use sendfile = yes
large readwrite = yes
oplock contention limit = 5
oplock break wait time = 100
case sensitive = true
strict allocate = yes
max xmit = 131072
use sendfile = Yes
dead time = 15
getwd cache = Yes
disable netbios = yes
nmbd bind explicit broadcast = no
netbios name = alpha2
min receivefile size = 13638
aio read size = 64360
aio write size = 64360
aio write behind = true
##Optimize tcp
socket options = TCP_NODELAY SO_RCVBUF=262144 SO_SNDBUF=262144 IPTOS_LOWDELAY SO_KEEPALIVE
write cache size = 12826144
strict allocate = yes
With this configuration I get about 8MByte/sec from windows7 to the server over 5GHz wireless network abd 30MByte/sec from a second linux box over a GBit lan.
Regards
Ian Dobson
Cheers for the config, Ill try that out after this transfer is done.
How do I do an iperf?
arrrghhh
May 18th, 2012, 08:35 PM
How do I do an iperf?
I would recommend reading up on it, but it's basically a cross platform tool to test network performance. Put it on the server and the client, then run it between the two devices. It's quite easy to use, just check the manpage. man iperf (you'll probably have to sudo apt-get install iperf first ;)).
http://www.enterprisenetworkingplanet.com/netos/article.php/3657236/Measure-Network-Performance-with-iperf.htm
That's also a pretty thorough guide on it ^^
Hwest
May 20th, 2012, 05:40 PM
Thanks for the help guys, I think It was just a router thing.
I rebooted the router and the server, since then ive been getting 1-1.3 MB/s transfer. Thats enough for me, Ill take it.
Cheers for the help :)
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.