m3zz4nine
Posts: 14
Joined: Sat Mar 05, 2016 6:11 pm

SMB Transfer Speed (of the new Pi 3)?

Fri Mar 11, 2016 12:17 pm

I had a SMB server with a external HDD on a powered USB hub (Raspberry Pi 1 Model B) in the past, and was very unamazed about the transfer speed over LAN. So I gave the Zero a shot, and the transfer speed was even worse - well okay, it was connected over WLAN and maybe thats the point? Anyway...

So I was wondering, how does the new Raspberry Pi 3 doing in transfer speed as a SMB server compared to the old one(s)?
Should I try a "USB to LAN" adapter to improve the transferspeed of the zero significant?
I've also read about building a LAN port over the GPIO on the zero, but the speed seems very slow...
The last option would be to buy a banana pi (http://www.htpcguides.com/raspberry-pi- ... enchmarks/) but I am a (original) raspberry fanboy since day one ;)

Thanks for your input!

User avatar
hansotten
Posts: 341
Joined: Fri Jul 13, 2012 6:01 am
Contact: Website

Re: SMB Transfer Speed (of the new Pi 3)?

Fri Mar 11, 2016 12:59 pm

There are several things to investigate when building a NAS server:

- cpu. The RPi 3 is an improvement in clock speed over the previous ones. And Samba is a user process, and not multithreaded, so not optimized for more than one core, every client gets a new smbd (see https://www.samba.org/samba/docs/man/Sa ... cture.html) and that may be distributed to another core if Linux decides this.
- network connection. The 100 Mb ethernet limits the theoretical bandwidth to about 10 MB. But it is doubtfull the Pi can push that amount of data from an USB disk, because:
- the way the network is connected to the system: on the Pi that is an USB connection and shared with e.g disk i/o
- disk i/o. Though the SD card is on a separate SPI bus, any other disk will be via USB 2.0 and shares the USB with the network connection
- memory to cache data. The 1 GB is an improvement over the 512 MB of older Pi's or Zero.

Of these bottlenecks the CPU and memory will have less influence than the USB bottleneck.

No wonder you were unamazed with the Pi 1 solution, and the RPI3 will only improve on CPU here.

To get more impressive performance you will need a system which has an architecture with separate and dedicated channels for I/O: native ethernet, native disk I/O like SATA. A good example are the Synology and such NAS boxes: mediocre CPU's also with modest amount of memory but better disk i/o and Gbit network channels.

A NAS such as a Synology box even the cheap ones, will outperform the RPi and come with an excellent case and excellent maintained software, up an running in minutes. Take a RPi + case + powersupply + USB to HDD interface and a couple of hours configuring the system and you will have a cheap but inferior NAS solution. The RPi is not designed for this!
http://duinorasp.hansotten.com for Raspberry Pi and Arduino and ESP8266
http://retro.hansotten.nl for retrocomputing with the 6502 cpu

Feahnor
Posts: 14
Joined: Fri Oct 10, 2014 5:20 pm

Re: SMB Transfer Speed (of the new Pi 3)?

Fri Mar 11, 2016 1:31 pm

My pi2 maxes out the ethernet when reading from a ext4 usb hdd, so there's no reason why the new pi3 should not be able to do it.

Image

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: SMB Transfer Speed (of the new Pi 3)?

Fri Mar 11, 2016 1:34 pm

What transfer speed are you getting? Up and down?
What formatting? If NTFS then you will likely see better performance with a 2B/3B over the 1B as the NTFS driver is a CPU hog. Best to use a Linux formatting ext4 etc.
Don't use WIFI on the NAS.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: SMB Transfer Speed (of the new Pi 3)?

Fri Mar 11, 2016 1:55 pm

I'm using a Pi 2, and it could reach 100Mbps with Samba.

I`m using an AX88179 based USB adapter.

tpylkko
Posts: 409
Joined: Tue Oct 14, 2014 5:21 pm

Re: SMB Transfer Speed (of the new Pi 3)?

Fri Mar 11, 2016 2:16 pm

100 Mbps = 12.5 MB/s, but using any protocol that has significant overhead (like samba) you cannot expect to reach this in reality.

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: SMB Transfer Speed (of the new Pi 3)?

Fri Mar 11, 2016 3:20 pm

I'm getting 11+ mega bytes per second now.

Pi SATA HD to PC.

DrMTR
Posts: 8
Joined: Sun Sep 25, 2016 4:08 pm

Re: SMB Transfer Speed (of the new Pi 3)?

Wed Oct 05, 2016 10:50 pm

Better use FTP then SAMBA. SAMBA is protocol where use encryption, and you probably will get slower speeds. Use FTP for max performances.

Return to “General discussion”