Citrix XenServer 网络性能优化
Citrix XenServer网络性能优化
最近把部分Windows Server 2003迁移至XenServer,但是发现一个很严重的问题,就是网络性能十分低下,在网上查了一下资料,终于让网络性能恢复如初。
XenServer需要关闭网卡的CheckSum功能:
脚本(xen_net.sh)内容如下:
echo Setting checksum off on VIFs
VIFLIST=`xe vif-list | grep "uuid ( RO) " | awk '{print $5}'`
for VIF in $VIFLIST
do
echo Setting ethtool-tx=off and ethtool-rx=off on $VIF
xe vif-param-set uuid=$VIF other-config:ethtool-tx="off"
xe vif-param-set uuid=$VIF other-config:ethtool-rx="off"
done
echo Setting checksum off on PIFs
PIFLIST=`xe pif-list | grep "uuid ( RO) " | awk '{print $5}'`
for PIF in $PIFLIST
do
echo Setting ethtool-tx=off and ethtool-rx=off on $PIF
xe pif-param-set uuid=$PIF other-config:ethtool-tx="off"
xe pif-param-set uuid=$PIF other-config:ethtool-rx="off"
done
windows 2003 VM需修改注册表信息:
将以下信息导入注册表:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"DisableTaskOffload"=dword:00000001
参考:
http://www.xenappblog.com/2010/citrix-xenserver-slow-network-performance/
http://forums.citrix.com/thread.jspa?threadID=248194&tstart=0
目录 返回
首页