TCP Chimney offload
TCP Chimney offload,会将负载从CPU移到网卡设备上,这样可以降低CPU的使用率。
TCP Chimney offload支持所有版本的2008和vista,IPV4和IPV6都支持。
操作系统和网卡高级属性中都必须Enable,才能激活。
操作系统中:
Enable: netsh int tcp set global chimney=enabled
Disable: netsh int tcp set global chimney=disabled
查看状态 netsh int tcp show global
网卡高级属性中:
网卡—高级—TCP offload (不同的网卡配置可能不太一样)
确认TCP Chimney offload 正常工作
netstat –t

RSS
RSS解决单CPU的瓶颈,在多核CPU中需要用到此功能。
Enable& Disable RSS.(默认是启用的)
Enable: netsh int tcp set global rss=enabled
Disable: netsh int tcp set global rss=disabled
查看状态 netsh int tcp show global
——————————————————————————————–
以上都是针对2008以上的版本,对于2003,可以使用更改注册表的方式。
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
- EnableTCPChimney
Type: REG_DWORD
Values: 1 (enabled) 0 (disabled))
- EnableRSS
Type: REG_DWORD
Values: 1 (enabled) 0 (disabled))
- EnableTCPA
Type: REG_DWORD
Values: 1 (enabled) 0 (disabled))
- OffloadExcludeDestinationPorts
Type: REG_MULTI_SZ
- OffloadIncludeDestinationPorts
Type: REG_MULTI_SZ
- OffloadExcludeSourcePorts
Type: REG_MULTI_SZ
- OffloadIncludeSourcePorts
Type: REG_MULTI_SZ
- MinPacketSizeToDma
Type: REG_DWORD
Values: 128 – 4096
Default value: 256
- DmaSyncCompletionHighThreshold
Type: REG_DWORD
Values: 0 – 87600
Default value: 0
参考文档:
http://support.microsoft.com/kb/951037 Information about the TCP Chimney Offload, Receive Side Scaling, and Network Direct Memory Access features in Windows Server 2008
http://technet.microsoft.com/en-us/network/dd277646.aspx Receive-Side Scaling
http://technet.microsoft.com/en-us/network/dd277645.aspx TCP Chimney
http://support.microsoft.com/kb/912222 The Microsoft Windows Server 2003 Scalable Networking Pack release