我在 Windows 客户端上安装了 Samba 共享,当我从客户端移动一个包含 ~2500 个小文件(总计约 1.5 TB)的目录时,需要将近一分钟。
为什么这不是瞬间发生的?
- 在本地 Linux 服务器 [ext4] 上进行同样的操作是瞬间发生的
- 我们使用 ACL 完全管理 Windows 和 Mac 客户端的权限
# smb.conf
[global]
workgroup = XYZ
security = ads
passdb backend = tdbsam
#log level = 3 winbind:5
log level = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY
server multi channel support = yes
interfaces ="192.168.123.12;capability=RSS,speed=40000000000"
aio read size = 1
aio write size = 1
aio max threads = 128
max stat cache size = 1048576
case sensitive = yes
kerberos method = secrets and keytab
realm = XYZ.EXAMPLE.COM
template homedir = /home/%U@%D
password server = dc1.xyz.example.com
template shell = /bin/bash
idmap config IYC : range = 2000000-2999999
idmap config IYC : backend = rid
idmap config * : range = 10000-999999
idmap config * : backend = tdb
winbind use default domain = no
winbind refresh tickets = yes
winbind offline logon = yes
winbind enum groups = no
winbind enum users = no
map acl inherit = yes
vfs objects = acl_xattr fruit streams_xattr
acl_xattr:ignore system acls = yes
store dos attributes = no
map archive = no
fruit:metadata = stream
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:nfs_aces = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
[footage]
path = /data/footage
read only = no
[projects]
path = /data/projects
read only = no