我继承了Windows 2012 R2服务器,尤其是Mac OS X客户端,该服务器的SMB / CIFS性能非常糟糕。该服务器正在提供文件服务,并且是Active Directory域控制器(该域是两个)之一。它是PDC仿真器。另一个域控制器是Windows 2003 Server。
客户端环境是Windows 7和Mac OS X 10.9 Mavericks计算机的混合体。所有机器都在同一物理和逻辑千兆位LAN上。Windows 7用户可以在预期范围内体验性能。Mac OS X 10.9 Mavericks客户端的性能令人讨厌,其中包括:缓慢的目录列表,遍历,文件读取和文件写入。读/写性能似乎存在明显的不对称性,其中写性能明显较慢。
我们试图强迫OS X客户端使用SMBv1和CIFS,而不是较新的SMBX / SMB2实现。对于所有版本,此问题仍然存在。我们还安装了Thursby DAVE进行测试。列表/遍历性能略有降低,但仍然慢得令人无法接受。
我安装一个共享,用于dd
读取/dev/random
和写入1GB的文本文件保存到共享。写入性能为0.33 Mbps。我tcpdump
在写过程中跑来捕获通信。请原谅缺少格式-我似乎无法退缩此块:
编辑
我为Windows Server启用了NFS服务器,并将其安装在Mac OS X客户端上。我进行了与dd
上述标题相同的测试,结果/性能相似。
15:45:45.221337 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], ack 102, win 32767, options [nop,nop,TS val 1279665835 ecr 242798971], length 0
15:45:45.221546 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 1:501, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500WARNING: Packet is continued in later TCP segments
SMB PACKET: SMBwriteX (REQUEST)
15:45:45.221547 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 501:1001, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
15:45:45.221547 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 1001:1501, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
15:45:45.221547 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 1501:2001, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
15:45:45.221548 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 2001:2501, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
15:45:45.221548 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 2501:3001, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
15:45:45.221549 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 3001:3501, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
15:45:45.221549 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 3501:4001, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
15:45:45.221550 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 4001:4501, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
15:45:45.221550 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 4501:5001, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
15:45:45.221551 IP 10.0.1.53.59596 > server.example.local.microsoft-ds: Flags [.], seq 5001:5501, ack 102, win 32768, options [nop,nop,TS val 1279665835 ecr 242798971], length 500SMB-over-TCP packet:(raw data or continuation?)
编辑
- 我应该采取哪些下一步的故障排除步骤来找出潜在原因?
- 可以从上述字幕tcpdump中得到任何信息吗?
- 是否有任何建议的网络性能调整建议来缓解所描述的性能问题?
cifs://server/share
coffeecoffee11 的地址进行连接,一项是关于通过userofalltrades更改页面中间的MTU值,另一项是关于通过有线而不是无线方式尝试的有趣测试。此外discussions.apple.com/thread/5500165?start=45&tstart=0有关从joewebdms在Windows NetBIOS通过TCP / 445端口建议。
Get-SmbSession | fl cli*,d*
。Dialect
是SMB版本。