I'm running a debian jessie server which provides a samba-share on an external drive using ext4, its read and write speed is about 80MB/s and 40 MB/s. The client which I'm currently using is Win7. Both machines are connected to a Gigabit-LAN which provides transfer rates of about 80-90 MB/s.
Reading from the samba-share works as expected with transfer rates of 60-70MB/s. However, when writing to that share on the Win7-Client, the performance is about 1MB/s.
Has anybody experience such a bad write performance in a similar scenario? Are the any tweaks for the given setup to optimize the performance? Or would it help to change the filesystem etc.?
Best Answer
There are a few options for SAMBA to improve read/write performance. For your case may be an important option is write cache size. Here is a quotation from https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html.
You may find working example here: http://www.arm-blog.com/samba-finetuning-for-better-transfer-speeds/ and https://coderwall.com/p/2ufa0g/fix-samba-read-and-write-performance-issues
You need to adjust those options in [global] Section of /etc/samba/smb.conf file and need to restart samba. You may check the samba man page mentioned above for clarification of the options.