Samba performance with Sendfile

91 views
Skip to first unread message

Nathan Stine

unread,
May 4, 2015, 5:31:18 PM5/4/15
to al...@googlegroups.com
Hello all,

I installed Alt-F this weekend on my DNS-321 and noticed that my performance over SMB was not as good as the stock firmware.  I found a post where someone who was running a similarly underpowered NAS device recommended disabling sendfile in smb.conf.  My speed went from about 6-7 MB/s to about 12-13MB/s.  Not bad!  I did try screwing around with jumbo frames, but didn't see much of a difference.

In the stock smb.conf that comes with Alt-F, there is a line that explicitly sets sendfile to on.  All you have to do is change the yes to a no and restart the service.

YMMV, of course, but I thought I'd add my experience to the group so that others might be able try the same and see if it helps.

Nathan A. Stine

João Cardoso

unread,
May 5, 2015, 10:57:16 AM5/5/15
to al...@googlegroups.com


On Monday, 4 May 2015 22:31:18 UTC+1, Nathan Stine wrote:
Hello all,

I installed Alt-F this weekend on my DNS-321 and noticed that my performance over SMB was not as good as the stock firmware.  I found a post where someone who was running a similarly underpowered NAS device recommended disabling sendfile in smb.conf.  My speed went from about 6-7 MB/s to about 12-13MB/s.

You are taking here of Alt-F or the D-Link firmware? My default throughput is also 10/12 MB/s with sendfile enabled.
And sendfile was enabled by default after some users report that their throughput increased when setting it!
 
 Not bad!  I did try screwing around with jumbo frames, but didn't see much of a difference.

In the stock smb.conf that comes with Alt-F, there is a line that explicitly sets sendfile to on.  All you have to do is change the yes to a no and restart the service.

YMMV, of course, but I thought I'd add my experience to the group so that others might be able try the same and see if it helps.

Thanks!

Unfortunately Samba has some 3 hundred tunable parameters, and each user experience is different from other users. It depends on network setup, usage, and target OS -- Win6/7/8/linux...
 

Nathan A. Stine

Nathan Stine

unread,
May 5, 2015, 11:39:45 AM5/5/15
to al...@googlegroups.com


On Tuesday, May 5, 2015 at 10:57:16 AM UTC-4, João Cardoso wrote:


On Monday, 4 May 2015 22:31:18 UTC+1, Nathan Stine wrote:
Hello all,

I installed Alt-F this weekend on my DNS-321 and noticed that my performance over SMB was not as good as the stock firmware.  I found a post where someone who was running a similarly underpowered NAS device recommended disabling sendfile in smb.conf.  My speed went from about 6-7 MB/s to about 12-13MB/s.

You are taking here of Alt-F or the D-Link firmware? My default throughput is also 10/12 MB/s with sendfile enabled.
And sendfile was enabled by default after some users report that their throughput increased when setting it!

Alt-F.  D-Link was about 9-10 MB/s.  So now after disabling sendfile, my Alt-F throughput is better than the stock D-Link firmware.
 
 
 Not bad!  I did try screwing around with jumbo frames, but didn't see much of a difference.

In the stock smb.conf that comes with Alt-F, there is a line that explicitly sets sendfile to on.  All you have to do is change the yes to a no and restart the service.

YMMV, of course, but I thought I'd add my experience to the group so that others might be able try the same and see if it helps.

Thanks!

Unfortunately Samba has some 3 hundred tunable parameters, and each user experience is different from other users. It depends on network setup, usage, and target OS -- Win6/7/8/linux...
 

Indeed.  I did a decent amount of research and found more than what I bargained for.
 

Nathan A. Stine
Reply all
Reply to author
Forward
0 new messages