smb2 proto max request size...?

Linda Walsh samba at tlinx.org
Mon Jun 13 15:04:31 MDT 2011




Seeing SMB2 in my 3.6.0-rc2 now (had to either re-login, or re-boot Win7
client, knowing win, probably reboot did it).

I am getting better performance however, while my max read request
in SMB was 61440 (60k), it's now 65536...a bit better...(overall traffic 
is lower, so that is probably a major part of the improvement), but I'm
not seeing any 1mb packets when I 'should' be'...(i.e. large (GB) files).


FWI: my smb.conf...

As I understand it, the aio sizes are for a minimum size before using
'aio'....  I explicitly set max xmit to 1M, though this is listed as the
default for smb2....




[global]
        client managed wide links = Yes
        display charset = UTF-8
        workgroup = BLISS
        netbios aliases = Bliss
        server string = Bliss on %h running Samba %v
        interfaces = eth0, lo
        bind interfaces only = Yes
        server schannel = No
        passdb backend = tdbsam:/etc/samba/.internals/passwd.tdb
        guest account = guest
        passwd program = /usr/bin/passwd '%u'
        username map = /etc/samba/smbusers
        unix password sync = Yes
        log file = /var/log/samba/log-%m(%U@%D)
        max log size = 4096
        max protocol = SMB2
        min receivefile size = 65536
        max xmit = 1048576
        name resolve order = lmhosts host
        time server = Yes
        enable asu support = Yes
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=4194304 
SO_RCVBUF=4194304
        show add printer wizard = No
        add user script = /usr/sbin/useradd -m %u
        delete user script = /usr/sbin/userdel %u
        add group script = /usr/sbin/groupadd %g
        delete group script = /usr/sbin/groupdel %g
        set primary group script = /usr/sbin/usermod -g '%g' '%u'
        add machine script = /usr/sbin/useradd -g machines -c Machine -d 
/dev/null -s /bin/false %u
        logon path = \\%D\%U\profile
        logon drive = i:
        logon home = \\%D\%U
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = Yes
        winbind trusted domains only = Yes
        idmap config * : backend = tdb
        read only = No
        acl group control = Yes
        create mask = 03775
        force create mode = 0660
        force directory mode = 0770
        guest ok = Yes
        allocation roundup size = 4096
        aio read size = 65536
        aio write size = 65536
        ea support = Yes
        map acl inherit = Yes
        block size = 4096
        use sendfile = Yes
        printing = bsd
        print command = lpr -r -P'%p' %s
        lpq command = lpq -P'%p'
        lprm command = lprm -P'%p' %j
        case sensitive = No
        wide links = Yes

[netlogon]
        path = /home/%D/%U
        write list = @Administrators, root, law
        csc policy = disable

[public]
        comment = public include files
        path = /home/public
        read only = Yes

[profiles]
        comment = Network Profiles Service
        path = /home/%D/profiles/%U
        profile acls = Yes
        vfs objects = recycle
        recycle: keeptree = true

[homes]
        comment = DomUser Roaming Home Dir (Generic Homes, u=%u, U=%U, 
s=%S, d=%D, w=%w)
        path = /home/%D/%U
        create mask = 0751
        vfs objects = recycle, readahead, shadow_copy2
        shadow:basedir = /home
        shadow:snapdir = /home/snapdir
        recycle: keeptree = true
        readahead:length = 512K

[servhome]
        comment = Server Home Dir (Generic Homes, u=%u, U=%U, s=%S, 
d=%D, w=%w)
        path = /home/%U
        create mask = 0751
        vfs objects = recycle, readahead, shadow_copy2
        shadow:basedir = /home
        shadow:snapdir = /home/snapdir
        recycle: keeptree = true

[home]
        comment = /home (allhomes)
        path = /home
        valid users = @trusted_local_net_users
        vfs objects = recycle, readahead, shadow_copy2
        shadow:basedir = /home
        shadow:snapdir = /home/snapdir
        recycle: keeptree = true

[Pictures]
        comment = Domain User's Home Pictures
        path = /home/%D/%U/Documents/Pictures
        valid users = %D\%U, Administrators
        vfs objects = recycle, readahead, shadow_copy2
        shadow:basedir = /home
        shadow:snapdir = /home/snapdir
        recycle: keeptree = true

[Documents]
        comment = Domain User's Home Documents
        path = /home/%D/%U/Documents
        valid users = %D\%U, Administrators
        vfs objects = recycle, readahead, shadow_copy2
        shadow:basedir = /home
        shadow:snapdir = /home/snapdir
        recycle: keeptree = true

[ADMIN$]
        comment = C:\Windows (Athenae in /home/C:Windows)
        path = /home/C:Windows
        read list = law, @wheel, root, @admins, @nt_admins, @domain_admins
        read only = Yes
        create mask = 0751
        vfs objects = readahead


[backup]
        comment = Host backup-dirs (M=%M, m=%m P=%P S=%S I=%I, u=%u, U=%U)
        path = /backups/%m
        write list = @Administrators, law, @Power_Users, root, law, 
Domain_Admins
        vfs objects = readahead

[backups_by_user]
        comment = User backup dirs
        path = /backups/%u
        write list = @Administrators, law, @Power_Users, root

[backups_athenae]
        comment = Athenae Recovery
        path = /backups/athenae
        write list = @Administrators, law, root

[usr_share]
        comment = /usr/share
        path = /usr/share
        read list = Users
        write list = law
        vfs objects = readahead
        recycle: keeptree = true

[usr_share_doc]
        comment = /usr/share/doc
        path = /usr/share/doc
        read list = Users
        write list = law
        vfs objects = readahead
        recycle: keeptree = true

[suse11.3]
        comment = suse11.3 repository
        path = /suse11.3
        read only = Yes
        vfs objects = readahead


[Music]
        comment = Shared Music
        path = /Share/Music
        read list = Users
        write list = law, trusted, wheel, Domain, Admins
        vfs objects = recycle, notify_fam, readahead
        recycle: keeptree = true

[Share]
        comment = Share
        path = /Share
        read list = @trusted_local_net_users, @trusted, law, @users, 
@domain_admins, @nt_admins
        write list = law, @trusted
        vfs objects = recycle, readahead
        recycle: keeptree = true




More information about the samba-technical mailing list