Under The Hood: I/O Priority and Networking

Along with working to modify the traditional cache hierarchy for better performance, Vista includes the introduction of several new technologies designed to help applications better utilize disk and network bandwidth. For disk bandwidth, Vista now includes an I/O priority system that allows applications to specify the priority of their I/O operations so that Vista can service the most important operations first, not unlike the priority system for applications. This is in comparison to XP which executes all I/O operations as if they have the same priority, which results in other applications having their own I/O operations slowed down even if they're more important.

With only four levels of priority (two of which are effectively for exclusive use by Vista), the I/O priority system in Vista isn't nearly as refined as the application priority system, but it's enough to get the job done. With two remaining priority levels, the benefit of the priority system to users is that traditional background tasks such as virus scanning can not only be low-priority tasks for the CPU, but now the disk too; anyone who has attempted two I/O heavy operations before has seen firsthand how they often cause the operations to take longer than their sums to complete. The new I/O priority system won't entirely alleviate any slowdowns caused by background applications as these requests have to be serviced at some point, but by reducing the interruptions caused by background applications these applications can be run without bringing a system to quite as much of a halt.

Somewhat related, I/O operation size has also been increased. Previously, Windows broke all I/O operations down to 64KB requests, which causes some overhead as each chunk of a larger operation needs to be processed separately. Vista no longer has a cap on I/O operation sizes, and will now attempt to execute I/O operations with the size a program requests. Microsoft has used Explorer as an example, where the copy command now uses 1MB operations.

Networking

Along with the changes in disk I/O to better maximize disk performance, Vista also implements a new TCP/IP stack - the so-called "Next Generation TCP/IP stack" - that includes new features to better maximize network utilization. However, since networking changes can affect entire networks and not just a single machine, only one of these features - Receive Window Auto-Tuning - is enabled. The other feature - Compound TCP - is disabled due to the potential to interrupt other machines on a network and/or hurt the client's network performance.

To discuss Receive Window Auto-Tuning, we must first quickly talk about TCP/IP networking and what a receive window is. In the most basic of terms, the receive window is the maximum amount of data that a sender can transmit at once before it must wait for an acknowledgement (ACK) from the receiver signaling that the data was received successfully. Once an ACK is received, the sender can begin transmitting more data. This process is intended to keep the sender from flooding the receiver with data, which could cause lost packets and other performance-reducing problems. The ideal size of this window varies upon network conditions and must be continuously renegotiated to maintain a transfer and maximize bandwidth usage; factors include both bandwidth and latency of a connection between two devices. For example, a computer using a dial-up modem can't send or receive data anywhere near as fast as a typical Internet server, so it would seldom have more than about 6 kB of data in-flight at once. Conversely, a high-speed broadband home computer might have several hundred kB of data in transit at once.

With Windows XP, the receive window could be scaled as needed, but it was not a fine-grained system. Except in specific cases, the maximum receive window size was a global value for all TCP connections. While on average it was usually good enough, it could be a poor value for specific connections. This is especially the case on high latency and high bandwidth connections, which is why one common tweak to improve networking performance for Windows machines with a broadband connection is to manually adjust this value - Windows simply didn't allow a window to normally scale to a large enough size to best utilize some broadband connections.

Auto-Tuning is a resolution to the inefficiencies of XP's scaling system, and it makes window scaling a more finely-grained operation. As the ideal receive window size is exactly the amount of data that can be in-flight between a sender and a receiver - the bandwidth-delay product (the product of the speed of a connection and its latency) - Vista's auto-turning system is designed to surpass XP's scaling system by not only allowing larger windows, but by also attempting to make a best-guess on the bandwidth-delay product in order to maximize bandwidth usage. Additionally, this is now a per-TCP connection attribute instead of a global attribute, allowing each connection to be more efficient rather than using the average connection values. As this is a safe optimization (QoS issues notwithstanding), this is one of the networking features enabled by default under Vista.

Compound TCP

The other significant addition to Vista's TCP/IP stack is Compound TCP, the product of an earlier research project by Microsoft in combining several different known techniques for maximizing bandwidth usage under high latency conditions. Under these conditions, traditional TCP traffic algorithms are reliable but slow to let the sender and receiver increase their windows to fill very large bandwidth-delay products. This is because traditional TCP is inherently a conservative and well behaved system based on reliability and sharing as the most important properties.

Compound TCP on the other hand is the merger of several aggressive algorithms - including Fast TCP, High Speed TCP, TCP Vegas, and TCP Reno - which when combined are far more aggressive at trying to quickly maximize bandwidth usage while maintaining reliability; unfortunately, these algorithms weren't originally designed to work all that well with traditional TCP. To that extent, in order to make Compound TCP safe for use on larger networks, Microsoft has reworked these algorithms so that they are effectively a single algorithm under Compound TCP, and their over-aggressive nature has been removed so that they will not dominate over traditional TCP traffic.

The end result is that while Compound TCP is designed to be safe, it's a cutting-edge technology that is not well tested, and for this reason it is disabled by default on Vista. Longhorn Server will be the first Windows product to ship with it enabled by default when it ships later this year. In our network tests, we have tested Vista both with Compound TCP enabled and disabled so that you can see the results of using it; however, until Compound TCP has undergone some more rigorous testing we would caution that it's not advisable to enable it on home computers or in production environments.

Hard Drive Performance and ReadyBoost Networking Performance
Comments Locked

105 Comments

View All Comments

  • haplo602 - Monday, February 5, 2007 - link

    Yes I am biased. I am fed up with MS. All the delay was for what purpose ?
    Yes please, point me to the documentation, I'd be glad to learn something.
  • vailr - Thursday, February 1, 2007 - link

    A quick look on Newegg shows the least expensive DX 10 cards (all NVIDIA 8800 based) are priced around $400. When can we expect to see DX 10 cards costing: <$200?
  • Brazos - Friday, February 2, 2007 - link

    I believe that Nvidia is releasing a broader range of directx 10 gpu's in March. They're supposed to be for the low - mid range video cards.
  • PrinceGaz - Thursday, February 1, 2007 - link

    quote:

    BitLocker is the only feature that the Ultimate edition has that no other edition has, but given it requires a Trusted Platform Module to be used...

    Vista Enterprise/VLK also includes BitLocker, it is not a feature unique to Ultimate Edition, but like you say it requires a TPM to be used and if I had a TPM on my mobo, I certainly wouldn't have the hateful chip enabled.

    quote:

    So far however this does not appear to be the case for Vista, as Microsoft has done away with VLK in favor of requiring activation on all copies, with the Enterprise version of Business using a keyserver. The lack of an immediately piratable version of Vista will undoubtedly slow its adoption compared to XP, and the Business versions' popularity will not be as lopsided.

    Before you say that Vista Enterprise is not a copy that any of us are likely to personally choose, because unlike XP it still requires activation, bear in mind that Enterprise edition activation is rather different from other versions and likely to be the first that is cracked indefinitely. Given that you also recommended Vista Business as the preferred version of Vista for experienced users unwilling to pay the extra for Ultimate, that makes Enterprise even more viable as it includes a superset of Vista Business features and the only things it is missing from Ultimate are a few entertainment oriented apps that no one will miss. That's not to say I condone unlicensed use of Vista Enterprise, I'd never say anything like that here, but I think the use of it may be a lot more prelavent than the article suggests.
  • stash - Friday, February 2, 2007 - link

    quote:

    Vista Enterprise/VLK also includes BitLocker, it is not a feature unique to Ultimate Edition, but like you say it requires a TPM to be used and if I had a TPM on my mobo, I certainly wouldn't have the hateful chip enabled.

    BitLocker does NOT require a TPM chip. It can also use a usb flash drive to store the key material.
  • Ryan Smith - Saturday, February 3, 2007 - link

    BitLocker requires a TPM chip. This confused us at first too when we were working on the article, but the documentation in Vista for BitLocker clearly states a TPM chip is required. If it's a 1.2 chip or higher the key is stored on the chip, otherwise it's stored on the flash drive.

    If it was possible to use BitLocker without a TPM chip, we would have more than likely thrown in some BitLocker benchmarks.
  • mlambert890 - Saturday, February 3, 2007 - link

    You're wrong Ryan. BitLocker does NOT require TPM chip. You can store the decrypt AND recovery keys on a USB FOB. Just go here and read scenario 3:

    http://technet2.microsoft.com/WindowsVista/en/libr...">http://technet2.microsoft.com/WindowsVi...57-b031-...
  • Ryan Smith - Saturday, February 3, 2007 - link

    Interesting; we looked for something like this when we were doing the prep for this article and came up empty-handed. It's nice to see it's there, though I'm not sure for the reason on why MS would go out of their way to disable this option and not leave any instructions in the Vista help on how to enable it. Thanks for the link.
  • stash - Saturday, February 3, 2007 - link

    Couple of reasons:

    First, it is a hell of a lot more secure to use a TPM to store key material than a USB flash drive. A TPM is essentially a smartcard soldered directly to your motherboard. It is physically and logically tamper-resistant.

    Secondly, BitLocker will only do repudiation checks of the system files with a TPM. When using a TPM. the hashes of certain system files are stored in the TPM. On boot, they are compared and if they have been changed, the user will be notified.

    So, are you going to answer my question about which common 3rd party apps require admin rights to work properly? Cause right now, my impression of that comment is that it is pure FUD.
  • LoneWolf15 - Friday, February 2, 2007 - link

    I was concerned about this too, but my new issue of MaximumPC shows how to use Vista's BitLocker without a TPM.

    Instead of the TPM holding the security key, you need a thumbdrive to do it instead. Doesn't require a high-capacity one, so any cheapie should do (though I'd choose one with a somewhat bulletproof casing to ensure you never break it and end up screwed).

Log in

Don't have an account? Sign up now