MetalizeYourBrain
Posts: 10
Joined: Thu Mar 24, 2016 5:24 pm

Slow SAMBA transfer speed

Sat Apr 02, 2016 6:34 pm

So, as the title says I'm getting really low SAMBA transfer speed and I can't manage to understand why. Someone has had the same problem installing recently SAMBA? I'm using a Raspberry Pi 2, a TP-Link TL-WN823N adapter and a USB 2.0 drive for testing. The drive can read at 25+ MB/s connected to my Windows machine. The transfer speed doesen't change that much if I use ethernet, I just barely get an increase in transfer speed.

mattmiller
Posts: 2245
Joined: Thu Feb 05, 2015 11:25 pm

Re: Slow SAMBA transfer speed

Sat Apr 02, 2016 10:51 pm

Just to clarify
Your plugging your USB in a Win machine and getting 25MB/s - yes?

What speed are you getting with it plugged into the Pi e.g read speed on the Pi?

And then what speed are you getting with it plugged into Pi but reading it over a LAN cable using Samba to your Win10 machine?

Matthew

MetalizeYourBrain
Posts: 10
Joined: Thu Mar 24, 2016 5:24 pm

Re: Slow SAMBA transfer speed

Sat Apr 02, 2016 11:35 pm

mattmiller wrote:Just to clarify
Your plugging your USB in a Win machine and getting 25MB/s - yes?
Yes.
mattmiller wrote:What speed are you getting with it plugged into the Pi e.g read speed on the Pi?
I don't know because I don't know how to test that.
mattmiller wrote:And then what speed are you getting with it plugged into Pi but reading it over a LAN cable using Samba to your Win10 machine?
About 4MB/s. On wifi is about 2.7MB/s.

Thanks for the answer.

mattmiller
Posts: 2245
Joined: Thu Feb 05, 2015 11:25 pm

Re: Slow SAMBA transfer speed

Mon Apr 04, 2016 7:39 am

4 to 8MBs is about the normal range to expect out of a Pi LAN port

Its 12.5MBs theoretical maximum - it doesn't take much for the real-world to bring this down to what your seeing

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Slow SAMBA transfer speed

Mon Apr 04, 2016 8:24 am

If your drive is NTFS-formatted , it will decrease the
performance.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

mattmiller
Posts: 2245
Joined: Thu Feb 05, 2015 11:25 pm

Re: Slow SAMBA transfer speed

Mon Apr 04, 2016 8:45 am

Just to check - I transferred a 3200MB file direct from Pi to PC using Samba over WiFi - got 4.3MBs

I tried the same file using pscp (uses SCP protocol) and that only achieved 2MBs

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Slow SAMBA transfer speed

Mon Apr 04, 2016 9:06 am

mattmiller wrote:4 to 8MBs is about the normal range to expect out of a Pi LAN port

Its 12.5MBs theoretical maximum - it doesn't take much for the real-world to bring this down to what your seeing
I do a lot of file transfer using samba and I get a steady 11.2-11.5 MB/s rate (RPi 2 and 3).
On the RPi side I write to a ext4 formatted USB HDD (or read from it).
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

mattmiller
Posts: 2245
Joined: Thu Feb 05, 2015 11:25 pm

Re: Slow SAMBA transfer speed

Mon Apr 04, 2016 9:34 am

I do a lot of file transfer using samba and I get a steady 11.2-11.5 MB/s rate (RPi 2 and 3).
Over 100Mb/s CAT5 or a very fast WiFi connection?

MetalizeYourBrain
Posts: 10
Joined: Thu Mar 24, 2016 5:24 pm

Re: Slow SAMBA transfer speed

Mon Apr 04, 2016 9:35 am

ghans wrote:If your drive is NTFS-formatted , it will decrease the
performance.
Plain FAT32. I know NTFS is a bit hard on the CPU for the Raspberry. What should I do?

@mattmiller As ghans said the speed I'm achieving are not good.

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Slow SAMBA transfer speed

Mon Apr 04, 2016 10:25 am

mattmiller wrote:
I do a lot of file transfer using samba and I get a steady 11.2-11.5 MB/s rate (RPi 2 and 3).
Over 100Mb/s CAT5 or a very fast WiFi connection?
Ethernet connection.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Troubleshooting”