I'm interested in what kind of read and write speeds you get with Bananian.
I set up a simple samba fileserver (the standard samba 3.6 package from the Debian Wheezy repositories) with my Banana Pi and a 2.5" USB harddrive attached (filesystem is ext4). The performance is good, but I'm surprised to see the read performance falls behind the write performance.
So, these are the values I get for sequential reads and writes from a Windows 7 client to my Banana Pi (read means the Windows client is reading data from the Banana Pi samba server):
Write: 29.6 MB/s
Read: 23.9 MB/s
Write: 30.0 MB/s
Read: 24.2 MB/s
Considering the Banana Pi only features USB2.0, the write performance to the external drive is great. But I'm wondering why the read performance falls 20% behind. So, I'm interested what kind of performance you guys achieve. On most boxes I've used so far, the read performance was better than write speed.
I tried to tweak the performance by playing with the options in smb.conf. However, whenever I try to set different values for SO_SNDBUF and SO_RCVBUF the performance decreases dramatically, something like 6MB/s. I tried different values from 8192 to 262144. And btw, I also tested the performance of the drive itself with dd which gives me transfer rates of 34-35MB/s reading and writing. I also tested a different drive, but that didn't chance anything.
My current options, that gave me the best performance so far, are these in the global section of smb.conf:
With which options and values to you achieve your best samba performance? Copy the Code
- workgroup = MYWORKGROUP
- server string = MyServer
- security = user
- load printers = no
- printing = bsd
- printcap name = /dev/null
- disable spoolss = yes
- log file = /var/log/samba/samba.log
- syslog = 0
- max log size = 100
- dns proxy = no
- socket options = TCP_NODELAY IPTOS_LOWDELAY
- use sendfile = yes