NAS

File server

32 29476
I will add performance test results tommorown, with exacly same disk but connected thru USB port...
Janowski_Pawel Posted at 2014-6-1 09:31


Thanks, so far raspberry pi have less than 10mb/s through usb, hope this banana pi will able to achieve double the result

Simce that I get better results with little files... for 400Mb file results are...
Running a 400MB file write on Y: 4 times...
Iteration 1:     26,33 MB/sec
Iteration 2:     26,08 MB/sec
Iteration 3:     24,33 MB/sec
Iteration 4:     23,61 MB/sec
-----------------------------
Average (W):     25,09 MB/sec
-----------------------------
Running a 400MB file read on Y: 4 times...
Iteration 1:     28,43 MB/sec
Iteration 2:     27,34 MB/sec
Iteration 3:     28,52 MB/sec
Iteration 4:     27,57 MB/sec
-----------------------------
Average (R):     27,96 MB/sec
-----------------------------
But for 800Mb are a bit worst...
Running a 800MB file write on Y: 4 times...
Iteration 1:     24,43 MB/sec
Iteration 2:     25,87 MB/sec
Iteration 3:     25,21 MB/sec
Iteration 4:     26,27 MB/sec
-----------------------------
Average (W):     25,45 MB/sec
-----------------------------
Running a 800MB file read on Y: 4 times...
Iteration 1:     25,32 MB/sec
Iteration 2:     24,88 MB/sec
Iteration 3:     24,06 MB/sec
Iteration 4:     25,37 MB/sec
-----------------------------
Average (R):     24,91 MB/sec
-----------------------------

Here are my smb.conf file. As You can see some lines are comment with #.
I have spend some time to tweak performance on samba, but on this hardware (banana pi) those cnfiguration simce to be optimal.


[global]
netbios name = bananapi
server string = Samba file and print server
workgroup = workgroup
security = share
#socket options = TCP_NODELAY
#socket options = IPTOS_LOWDELAY TCP_NODELAY
#socket options=SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY
#min receivefile size = 16384
use sendfile = no
#aio read size = 16384
#aio write size = 16384

[net drive]
path = /media/HDD
comment = External HDD
read only = no
available = yes
browseable = yes
writable = yes
guest ok = yes
public = yes

OK, I connect the same disk, connected thru USB, nothing change, fstab mounting was done using UUID, so no need to change anythink...
resuslts are crappy for me... the are almost the same when disk was connected thru sata port.
Running a 400MB file write on Y: 4 times...
Iteration 1:     25,56 MB/sec
Iteration 2:     26,14 MB/sec
Iteration 3:     26,08 MB/sec
Iteration 4:     26,41 MB/sec
-----------------------------
Average (W):     26,05 MB/sec
-----------------------------
Running a 400MB file read on Y: 4 times...
Iteration 1:     27,78 MB/sec
Iteration 2:     25,90 MB/sec
Iteration 3:     27,42 MB/sec
Iteration 4:     27,34 MB/sec
-----------------------------
Average (R):     27,11 MB/sec
-----------------------------
Running warmup...
Running a 2000MB file write on Y: once...
-----------------------------
Average (W):     25,56 MB/sec
-----------------------------
Running a 2000MB file read on Y: once...
-----------------------------
Average (R):     19,08 MB/sec
-----------------------------

As you can see the are on the same level with sata port results...
What is the sata port, mounted on banana pi, data transfer speed ???

Just to be sure that my thinking way is correct...

linaro@Bananapi:~$ lsusb
Bus 001 Device 002: ID 1bcf:0c31 Sunplus Innovation Technology Inc. SPIF30x Serial-ATA bridgeBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Is the sata port connected thru USB controler ???

Dear all ...
Not being able to sleep, thinking that SATA can not be as slow as USB, plugged into my banana second drive, faster ... the results are suck ...
Clearly Sata port is connected to the rest of the system via a USB hub, so maximum speed, regardless of the type disk or port  that you will use, are almost the same ...

OK, I connect the same disk, connected thru USB, nothing change, fstab mounting was done using UUID, ...
Janowski_Pawel Posted at 2014-6-2 15:33


Thanks for the results, seem like it achieve the same speed as sata, and at least twice the speed of raspI pi in usb port, 20+- mb/s seem reasonable as a direct connection on my 3.5 years old i5 laptop is also about this speed. Good news for me as I already using 1tb usb hard drive on raspi pi so I can just swop over, furthermore 2tb 2.5 hard drive is not available in my country while 2tb usb3.0 is widely available.

I got one last question : what format did you format the usb hard drive? (ntfs, ext?)

Btw which os did u use?

Post Last Edited by Janowski_Pawel at 2014-6-3 14:17

I use latest image of lubuntu, you can find in download section.
For those test my harddrive was formated with ext3 filesystem. On the beginning I wanted to use ntfs, but it cause some performance problems...

Post Last Edited by Janowski_Pawel at 2014-6-3 14:17

I use latest image of lubuntu, you can find  ...
Janowski_Pawel Posted at 2014-6-3 14:15



Alot of pple commented about slower transfer rate in ntfs cause of the drivers.  Usually I will just attach to pc for transfer with raspberry pi hard drive, this banana think will change the way I use.

Reply 14# Janowski_Pawel

From serial port log, you can see that the sata is really connect to a sata controller, not a usb port.

You have to log in before you can reply Login | Sign Up

Points Rules