<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://linux-kvm.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Stompro</id>
	<title>KVM - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://linux-kvm.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Stompro"/>
	<link rel="alternate" type="text/html" href="https://linux-kvm.org/page/Special:Contributions/Stompro"/>
	<updated>2026-05-10T22:30:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://linux-kvm.org/index.php?title=WindowsGuestDrivers/kvmnet/registry&amp;diff=4549</id>
		<title>WindowsGuestDrivers/kvmnet/registry</title>
		<link rel="alternate" type="text/html" href="https://linux-kvm.org/index.php?title=WindowsGuestDrivers/kvmnet/registry&amp;diff=4549"/>
		<updated>2012-06-18T16:26:43Z</updated>

		<summary type="html">&lt;p&gt;Stompro: Making it easier to apply registry changes.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes best practice for configuring Windows TCP\IP related parameters to archive the best performance with Windows guests.&lt;br /&gt;
Those parameters are unrelated to kvm\VirtIO drivers , rather general Windows settings.&lt;br /&gt;
After changing those setting reboot is required for the changes to effect the system.&lt;br /&gt;
&lt;br /&gt;
= Windows XP and 2003 registry settings =&lt;br /&gt;
&lt;br /&gt;
== Registry settings ==&lt;br /&gt;
Save the following as a .reg file and you can apply the changes by running the file on windows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Windows Registry Editor Version 5.00&lt;br /&gt;
&lt;br /&gt;
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters]&lt;br /&gt;
&amp;quot;DefaultSendWindow&amp;quot;=dword:00100000&lt;br /&gt;
&amp;quot;DefaultReceiveWindow&amp;quot;=dword:00100000&lt;br /&gt;
&amp;quot;FastSendDatagramThreshold&amp;quot;=dword:00004000&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]&lt;br /&gt;
&amp;quot;Tcp1323Opts&amp;quot;=dword:00000001&lt;br /&gt;
&amp;quot;TcpWindowSize&amp;quot;=dword:00100000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Tcp1323Opts - allows the scaling of the TCP window above 16k. For more info read [http://technet.microsoft.com/en-us/library/cc938205.aspx Tcp1323Opts]&lt;br /&gt;
* &amp;quot;DefaultSendWindow&amp;quot;, &amp;quot;DefaultReceiveWindow&amp;quot; and &amp;quot;TcpWindowSize&amp;quot; control TCP window size&lt;br /&gt;
* &amp;quot;FastSendDatagramThreshold&amp;quot; - controls fast UDP transmit. &lt;br /&gt;
&lt;br /&gt;
== Additional links ==&lt;br /&gt;
* [http://technet.microsoft.com/en-us/library/cc781532(WS.10).aspx Windows Sockets and DNS Registry Parameters]&lt;br /&gt;
* [http://support.microsoft.com/kb/235257 Server Does Not Use All Bandwidth Available When Streaming Files with Bit Rates over 100 Kbps]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Starting from Vista =&lt;br /&gt;
Starting from Windows Vista the mentioned above setting are not effecting Windows networking stack. &lt;br /&gt;
&lt;br /&gt;
netsh configuration tool should be used to configure the networking settings.&lt;br /&gt;
&lt;br /&gt;
== Disable Windows Scaling heuristics == &lt;br /&gt;
Starting from Windows Windows Vista, Windows can disregard user TCP Windows setings. This behavior could be desabled: &lt;br /&gt;
&lt;br /&gt;
netsh int tcp set heuristics disabled&lt;br /&gt;
    possible settings are: disabled,enabled,defaul&lt;br /&gt;
&lt;br /&gt;
The corresponding Registry value (not necessary to edit if setting via netsh) is located in:&lt;br /&gt;
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters&lt;br /&gt;
EnableWsd=0   &lt;br /&gt;
(default: 1, recommended: 0)&lt;br /&gt;
&lt;br /&gt;
== TCP Auto-Tuning ==&lt;br /&gt;
To turn off the default receive window auto tuning behavior:&lt;br /&gt;
&lt;br /&gt;
    netsh int tcp set global autotuninglevel=disabled&lt;br /&gt;
&lt;br /&gt;
The default auto-tuning level is &amp;quot;normal&amp;quot;, possible settings are:&lt;br /&gt;
&lt;br /&gt;
    disabled: uses a fixed value for the tcp receive window. Limits it to 64KB.&lt;br /&gt;
    highlyrestricted: allows the receive window to grow beyond its default value, very conservatively.&lt;br /&gt;
    restricted: somewhat restricted growth of the tcp receive window beyond its default value.&lt;br /&gt;
    normal: default value, allows the receive window to grow to accommodate most conditions.&lt;br /&gt;
    experimental: allows the receive window to grow to accommodate extreme scenarios (It enables RWIN values of over 16 MB).&lt;br /&gt;
&lt;br /&gt;
== Compound TCP ==&lt;br /&gt;
To increase the TCP Windows with the faster rate Compound TCP should be enabled.&lt;br /&gt;
On Vista and Windows 7, CTCP is off by default. On Windows 2008 it is on.&lt;br /&gt;
&lt;br /&gt;
To enable CTCP:&lt;br /&gt;
    netsh int tcp set global congestionprovider=ctcp&lt;br /&gt;
&lt;br /&gt;
To disable CTCP:&lt;br /&gt;
    netsh int tcp set global congestionprovider=none&lt;/div&gt;</summary>
		<author><name>Stompro</name></author>
	</entry>
</feed>