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

相关内容