Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Samba performance tweeks

Featured Replies

I was looking at the samba settings that come with UnRaid.  They do not match what is "recommeded" for max performance.  Some of the differences are:

 

SO_RCVBUF and SO_SNDBUF are recommended to be 8kB looks like we have 4kB.

read raw and write raw are also recommended and I don't see those at all.

 

 

What about setting MTU size or is that set elsewhere?  My network can handle jumbo packets.

 

I'm hesitant to change the settings as I don't know if UnRaid requires these settings in order to work.  Has anyone changed any of these?

 

thanks,

 

Actually, SO_RCVBUF and SO_SNDBUF are both set to 65535.  Last time we worked on Samba performance, found these were the optimal settings.  Also, 'read raw' and 'write raw' are set to 'Yes' by default.

 

MTU settings can be changed by the 'ifconfig' command.  Again, last time we were trying to improve ethernet performance, didn't find much improvement going to larger frames, even with jumbo-frame-supported switches.  Turns out there's a lot of tweaking to do, both on linux side and windows side to wring out better performance.  Maybe one of our community members can experiment a bit with this?  ;)

Actually, SO_RCVBUF and SO_SNDBUF are both set to 65535.  Last time we worked on Samba performance, found these were the optimal settings.  Also, 'read raw' and 'write raw' are set to 'Yes' by default.

 

MTU settings can be changed by the 'ifconfig' command.  Again, last time we were trying to improve ethernet performance, didn't find much improvement going to larger frames, even with jumbo-frame-supported switches.  Turns out there's a lot of tweaking to do, both on linux side and windows side to wring out better performance.  Maybe one of our community members can experiment a bit with this?  ;)

Tom,  I looked in /etc/samba/smb.conf on my server and it looks like SO_RCVBUF and SO_SNDBUF are not both set to 65535.

 

The line in my config file set them like this SO_RCVBUF=66535 SO_SNDBUF=65535

 

Could this be a typo and you intended to enter 65535 instead of 66535 for SO_RVCBUF? 

Might it work better with the 65535 you might have intended as the receive buffer size?

 

Joe L.

 

Contents of /etc/samba/smb.conf follow:

root@Tower:/etc/samba# cat smb.conf
[global]
        # configurable identification
        include = /etc/samba/smb.names
        log level = 1
        log file = /var/log/samba.%m
        max log size = 2000
        socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=66535 SO_SNDBUF=65535
        disable spoolss = Yes
        show add printer wizard = No
        security = SHARE
        guest account = root
        guest ok = Yes
        guest only = Yes
        read only = No
        map archive = Yes
        map system = Yes
        map hidden = Yes
[flash]
        path = /boot

# auto-configured shares
include = /etc/samba/smb.shares

  • Author

Joe,

My settings are the same as yours 66535 vs 65535

 

dave

  • Author

From what I've read it is recommended to compare Samba performance against FTP.  Can we enable the ftp daemon temporarily to get some comparison numbers?  They should be close in performance and is a good way to identify Samba issues.

 

 

  • Author

I figured this one out on my own :)  There is no ftpd shipped on the flash drive, only trivial ftp.  hmm

  • Author

Does anyone know of a program you can run on XP to check the samba disk IO performance?  I just a program called HDTach to check harddrives on my computer, but can't find something similar for samba drives.

 

thanks,

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.