Commentary

Dave Methvin
 

Vista SP1 Fixes Slow File Copies--Here's Why

One of the first things I noticed when setting up Vista for the first time was that file copies seemed to be slower. Plenty of other people noticed it, too. This week, Mark Russinovich put together a blog entry with details about how this Vista "improvement" went awry.

One of the first things I noticed when setting up Vista for the first time was that file copies seemed to be slower. Plenty of other people noticed it, too. This week, Mark Russinovich put together a blog entry with details about how this Vista "improvement" went awry.This is to some extent a story about how no good deed goes unpunished. Windows XP has its own bad behavior when it comes to file copies. Copying large files will cause other useful code and data to be thrown out of memory, and that can cause poor performance and swapping down the line. So Microsoft set out to fix this problem with Vista. Many changes were made; one of the most important was to avoid using the file cache on file copies larger than 256 KB, and instead do the file I/O directly to disk.

In some cases, this change to noncached I/O made file copies slower. One of the situations Russinovich identifies is when there are real-time virus and/or spyware scanners in use. Reading or writing any file often triggers a flurry of activity by these programs; noncached I/O creates a further bottleneck as these programs vie to take a look at the copied bytes.


More Windows Insights

White Papers

More >>

Reports

More >>

Webcasts

More >>

Other times, Vista's reduced performance was more perceived than real. When the I/O is cached, as it is on XP, the copy dialog may go away before the last of the file is actually written to disk. In Vista, the copy dialog stays up until the last byte is written, which gives the user the impression that the copy operation was slower.

Starting with Vista SP1, Microsoft has returned to using cached I/O for file copies when the files are on the local system. There are some downsides to this in certain situations, as Russinovich details in his blog post, but on balance it will probably give users the copy performance they have come to expect on XP systems.

I would love to see Microsoft provide this kind of detail more often about bugs and fixes. It is easier to have more sympathy for Microsoft's design choices when you can see the reasoning behind changes that initially seem to create more hassles than they fix.


Related Reading




Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

InformationWeek encourages readers to engage in spirited, healthy debate, including taking us to task. However, InformationWeek moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing/SPAM. InformationWeek further reserves the right to disable the profile of any commenter participating in said activities.

Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
T-Shirt Giveaway T-Shirt Giveaway: Each week we're selecting one great comment from our readers. The author of the comment will receive an InformaitonWeek Community t-shirt. So get posting!
Subscribe to RSS

Resource Links