我要管理一个小型专业网络:Windows 7 pro 下的 1 个服务器和 2 个客户端。2 个客户端上安装了一个软件,该软件通过 Windows 网络从服务器上的专有数据库获取数据。没有什么复杂的。它运行得很好。在出现一些恶意软件/病毒问题后,我决定用 Samba 下的 Linux 服务器替换 Windows 服务器。操作系统是 Debian 8。它现在也可以运行,数据检索得很好,但这比旧的 Windows 机器慢得多。
我读了很多关于 Samba 调优的文章,然后尝试了几种提高性能的方法,但还没有定论。我的第一个问题是:什么是衡量 Samba 性能(网络速度)的最佳方法?
第二个问题:我的 smb.conf 中是否存在明显错误:
# Global Settings
[global]
username map = /etc/samba/usermap.txt
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
#socket options = TCP_NODELAY SO_RCVBUF=524288 SO_SNDBUF=524288 IPTOS_LOWDELAY
socket options = TCP_NODELAY
strict allocate = Yes
allocation roundup size = 104857600
read raw = Yes
write raw = Yes
strict locking = No
min receivefile size = 16384
use sendfile = Yes
aio read size = 16384
aio write size = 16384
# Share Definitions
[share]
comment = share
path = /home/share
guest ok = yes
browsable = yes
read only = no
writable = yes
谢谢阅读!