windows samba tuning

Post Reply
zemerdon
Site Admin
Posts: 337
Joined: Mon Jan 23, 2023 8:13 pm

windows samba tuning

Post by zemerdon »

powershell get current configuration

Code: Select all

PS C:\Users\zemerdon> get-smbclientconfiguration

set a flag
[code]PS C:\Users\zemerdon> set-smbclientconfiguration -EnableBandwidthThrottling $False

Confirm
Are you sure you want to perform this action?
Performing operation 'Modify' on Target 'SMB Client Configuration'.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
zemerdon
Site Admin
Posts: 337
Joined: Mon Jan 23, 2023 8:13 pm

Linux smb.conf

Post by zemerdon »

Version 4.22.6-Debian-4.22.6+dfsg-0+deb13u1~bpo12+1

/etc/samba/smb.conf

Code: Select all

[global]

acl allow execute always = true
acl map full control = yes
deadtime = 60
getwd cache = yes
strict sync = no
sync always = no
use sendfile = true
strict allocate = Yes
read raw = yes
write raw = yes
strict locking = No
server max protocol = SMB3
client max protocol = SMB3
server multi channel support = yes


# not helping flags

#client min protocol = SMB2_10
#socket options = TCP_NODELAY IPTOS_THROUGHPUT SO_RCVBUF=131072 SO_SNDBUF=131072
server signing = no
client signing = no

# no impacts to SMBv3

#min receivefile size = 16384
#aio read size = 16384
#aio write size = 16384
zemerdon
Site Admin
Posts: 337
Joined: Mon Jan 23, 2023 8:13 pm

Windows samba config

Post by zemerdon »

powershell output

PS C:\Users\zemerdon> get-smbclientconfiguration

Code: Select all

ConnectionCountPerRssNetworkInterface : 4
DirectoryCacheEntriesMax              : 16
DirectoryCacheEntrySizeMax            : 65536
DirectoryCacheLifetime                : 10
DormantFileLimit                      : 1023
EnableBandwidthThrottling             : False
EnableByteRangeLockingOnReadOnlyFiles : True
EnableInsecureGuestLogons             : True
EnableLargeMtu                        : True
EnableLoadBalanceScaleOut             : True
EnableMultiChannel                    : True
EnableSecuritySignature               : False
ExtendedSessionTimeout                : 1000
FileInfoCacheEntriesMax               : 64
FileInfoCacheLifetime                 : 10
FileNotFoundCacheEntriesMax           : 128
FileNotFoundCacheLifetime             : 5
KeepConn                              : 600
MaxCmds                               : 50
MaximumConnectionCountPerServer       : 32
OplocksDisabled                       : False
RequireSecuritySignature              : False
SessionTimeout                        : 60
UseOpportunisticLocking               : False
WindowSizeThreshold                   : 8
admin
Site Admin
Posts: 4
Joined: Mon Jan 23, 2023 7:43 pm

Intel X520 DA1 conf

Post by admin »

interrupt modulation		enabled
interrupt modulation rate	adaptive
ipsec offload			disabled
ipv4 checksum offload rx +tx 	enabled
large send offload v2 ipv4	disabled
max RSS queue			4
packet priority & vlan 		both enabled
tcp checksum offload ipv4	enabled
udp checksum offload ipv4	enabled
Post Reply