Windows -> samba - 寫入速度慢

Windows -> samba - 寫入速度慢

我有一台 Debian Linux 機器,在對等網路上執行 samba 版本 4.13.13-Debian。我剛剛運行了 LAN 速度測試,它給出的 Windows -> Debian 寫入速度比 Windows -> Windows 慢得多。以下是統計數據:

Win -> Samba: Write 439.0 Mbps, Read 684.0 Mbps
Win -> Win:   Write 758.5 Mbps, Read 655.9 Mbps

這是 smb.conf 的 [globals] 部分

[global]
panic action = /usr/share/samba/panic-action %d
workgroup = WORKGROUP
server string = %h server (Samba %v)
passdb backend = tdbsam
obey pam restrictions = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
log file = /var/log/samba/log.%m
max log size = 1000
socket options = TCP_NODELAY
dns proxy = No
invalid users = root
printing = cups
printcap name = cups
time server = yes
dos filetimes = yes
fake directory create times = yes
dos filetime resolution = yes
delete readonly = yes
log level = 1
read raw = yes
write raw = yes

我歡迎任何建議

答案1

我的 samba 檔案伺服器也有同樣的症狀。問題似乎出在 SMB3 協定上。作為解決方法,將以下行新增至該[global]部分:

server max protocol = SMB2_10

相關內容