PVS: Streamed OS Optimization
Use the following to optimize the streamed OS.
$strRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"
Set-ItemProperty -Path $strRegPath -Name "DisableTaskOffload" -Value "1" -Type DWORD
It can be scripted with NVSPBIND, by setting it in each individual adapter, or with the following command line:
reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0xFFFFFFFF
You may also use the following PowerShell code:
$strRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\TcpIp6\Parameters"
Set-ItemProperty -Path $strRegPath -Name "DisabledComponents" -Value "0xffffffff" -Type DWORD
$strRegPath = "HKLM\System\CurrentControlSet\Services\Afd\Parameters"
Set-ItemProperty -Path $strRegPath -Name "FastSendDatagramThreshold" -Value "1500" -Type DWORD
Solution: Update ESXi to 5.5 Update 1
$strRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\BFE\Parameters"
Set-ItemProperty -Path $strRegPath -Name "MaxEndpointCountMult" -Value "0x10" -Type DWORD
$strRegPath = "HKLM:SYSTEM\CurrentControlSet\Services\BNIStack\Parameters"
Set-ItemProperty -Path $strRegPath -Name "IosRequestThreads" -Value "0x2" -Type DWORD
Value: 2 (If that does not improve, try 1)
http://www.ingmarverheij.com/citrix-pvs-optimize-endpoint-with-powershell/
http://www.carlstalhood.com/pvs-master-device-preparation/#generalprep
Must-Have: DisableTaskOffload
CTX117491: Execssive Retries Occur on PVS Target$strRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"
Set-ItemProperty -Path $strRegPath -Name "DisableTaskOffload" -Value "1" -Type DWORD
Must-Have: Disable IPv6
Do so for each adapter to prevent slow boots and logons, in addition to other intermittent issues.It can be scripted with NVSPBIND, by setting it in each individual adapter, or with the following command line:
reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0xFFFFFFFF
You may also use the following PowerShell code:
$strRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\TcpIp6\Parameters"
Set-ItemProperty -Path $strRegPath -Name "DisabledComponents" -Value "0xffffffff" -Type DWORD
Must-Have: ESXi 5.1+ - Increase UDP FastSend Threshold
KB2040065: Reduce UDP resends$strRegPath = "HKLM\System\CurrentControlSet\Services\Afd\Parameters"
Set-ItemProperty -Path $strRegPath -Name "FastSendDatagramThreshold" -Value "1500" -Type DWORD
Must-Have: ESXi 5.5.1 and below - Disable Receive Side Scaling
KB2055853: VMXNET3 resets frequently when RSS is enabled in a Windows virtual machineSolution: Update ESXi to 5.5 Update 1
Must-Have: Server 2008 R2 - Reduce impact heavy UDP traffic on vCPU
KB2685007: High CPU usage occurs when a Windows Server 2008 R2-based server is under a very heavy UDP load$strRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\BFE\Parameters"
Set-ItemProperty -Path $strRegPath -Name "MaxEndpointCountMult" -Value "0x10" -Type DWORD
Must-Have: Reduce IOSRequestThreads when using PVS 7.6
CTX200952: High Amount of Retries Shown when Using Private Mode or Maintenance Version in PVS 7.6$strRegPath = "HKLM:SYSTEM\CurrentControlSet\Services\BNIStack\Parameters"
Set-ItemProperty -Path $strRegPath -Name "IosRequestThreads" -Value "0x2" -Type DWORD
Value: 2 (If that does not improve, try 1)
References:
http://www.ingmarverheij.com/citrix-pvs-optimize-endpoint-with-powershell/
http://www.carlstalhood.com/pvs-master-device-preparation/#generalprep
No comments