<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Inside Vista SP1 File Copy Improvements</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx</link><description>Windows Vista SP1 includes a number of enhancements over the original Vista release in the areas of application compatibility, device support, power management, security and reliability. You can see a detailed list of the changes in the Notable Changes</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Inside Vista SP1 File Copy Improvements</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3315523</link><pubDate>Fri, 26 Feb 2010 02:15:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3315523</guid><dc:creator>Nam </dc:creator><description>&lt;p&gt;Does anybody know what Microsoft applications are using IOCTL_COPYCHUNK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3315523" width="1" height="1"&gt;</description></item><item><title>re: Inside Vista SP1 File Copy Improvements</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3302650</link><pubDate>Mon, 28 Dec 2009 02:55:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3302650</guid><dc:creator>Evan</dc:creator><description>&lt;p&gt;I don't understand why vista SP2 will not save the file settings whhen an attribute is changed by administrative user, also it appears that an Administrator is not really an administrator, Windows Vista for me and my business has been the worst ever Operating System, countless headaches, non fuctional,un-user frendly, and totally useless.We and 18 other businesses in Australia are getting together to ensure Microsoft pays for the damage that has been done.A class action with mountains of evidence this will get media,you may be able to get away with this deception in other countries,but in Australia Businesses together tageting the course, rectification and results of what microsoft has done will have a massive adverse effect on the Microsoft smug attitude. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3302650" width="1" height="1"&gt;</description></item><item><title>re: Inside Vista SP1 File Copy Improvements</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3292205</link><pubDate>Sun, 08 Nov 2009 00:38:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3292205</guid><dc:creator>copy</dc:creator><description>&lt;p&gt;This is PATHETIC. File copying is one of the most basic operations of an OS and MS can't get it right. Have they heard of KISS principle? KISS + let user have a choice. &lt;/p&gt;
&lt;p&gt;I'm trying to copy 13 pictures from a vista home premium PC to a vista home premium laptop over a wired network. It freezes during &amp;quot;calculating&amp;quot;. Canceling causes the entire laptop become nonresponsive. Can't even shutdown gracefully. All the fancy sh*t sounds great but it's a typical programming pitfall. &amp;quot;It's not as simple as it sounds&amp;quot; only because you're doing it wrong!&lt;/p&gt;
&lt;p&gt;Seriously, does the MS team doing all these fancy research on copying algorithm realize how very pathetic this is?&lt;/p&gt;
&lt;p&gt;The milisecond another OS has decent UI and device support, I'm dumping MS. Been waiting for this day for 20 years now, unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3292205" width="1" height="1"&gt;</description></item><item><title>re: Inside Vista SP1 File Copy Improvements</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3280278</link><pubDate>Thu, 10 Sep 2009 09:43:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3280278</guid><dc:creator>Rob</dc:creator><description>&lt;p&gt;Just to let you know Mark this post helped me. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3280278" width="1" height="1"&gt;</description></item><item><title>re: Inside Vista SP1 File Copy Improvements</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3279732</link><pubDate>Tue, 08 Sep 2009 13:36:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3279732</guid><dc:creator>MichaelG</dc:creator><description>&lt;p&gt;First of all thanks to Mark. It's interesting and usefull.&lt;/p&gt;
&lt;p&gt;Other, &lt;/p&gt;
&lt;p&gt;I see a lot of undocumented DeviceIoControl(s) inside Vista trace copy file operation:&lt;/p&gt;
&lt;p&gt;1. Device:0x14, Functions:260-262, Method:0&lt;/p&gt;
&lt;p&gt;2. FSCTL_LMR_QUERY_DEBUG_INFO&lt;/p&gt;
&lt;p&gt;3. IOCTL_LMR_DISABLE_LOCAL_BUFFERING (named above).&lt;/p&gt;
&lt;p&gt;The single found info about is IOCTL_COPYCHUNK in MSDN, which is defined very pure.&lt;/p&gt;
&lt;p&gt;I'd ask Mark, if possible, to describe how it works...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3279732" width="1" height="1"&gt;</description></item><item><title>Overhead outside the transfer operation</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3253401</link><pubDate>Thu, 11 Jun 2009 11:23:48 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3253401</guid><dc:creator>Chris Quirke</dc:creator><description>&lt;p&gt;If predicted theory isn't working, after studying exactly what happens during file operations, then perhaps there are other overheads at work. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The obvious one is resident av scanning, but there may be background processes that are triggered whenever the contents of a folder are changed; thumbnailers, indexers, SR/Previous Versions, etc.&lt;/p&gt;
&lt;p&gt;Are those optimised to back off for long enough, so that they are not triggered into rebuilding their stuff every time a new file is added to a destination, or deleted from a source?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3253401" width="1" height="1"&gt;</description></item><item><title>UI to balance copy vs. other tasks?</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3253397</link><pubDate>Thu, 11 Jun 2009 11:17:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3253397</guid><dc:creator>Chris Quirke</dc:creator><description>&lt;p&gt;When there's a difficult trade-off decision to make, the best thing to do may be to leave users the opportunity to control this.&lt;/p&gt;
&lt;p&gt;A visible way would be a slider that appears on the file operations dialog, when a copy or move operation will take over (say) 5 seconds. &amp;nbsp;Pull the slider towards File Operations, and more memory is allocated to caching these; pull the slider towards Running Programs, cache memory is reduced to favor other running tasks. &amp;nbsp;Effects to end with that operation (so that small copy ops don't &amp;quot;inherit&amp;quot; these settings with no UI to change them).&lt;/p&gt;
&lt;p&gt;A less visible &amp;quot;power user&amp;quot; approach would be similar to holding down Shift when clicking No to file operation stalls (which has the &amp;quot;always No&amp;quot; effect) or when deleting, to bypass the 'bin. &amp;nbsp;Hold Shift down when clicking Copy, Move or Paste, and more memory will be allocated to that operation to speed it up, XP style.&lt;/p&gt;
&lt;p&gt;Perhaps add as an enhancement to W7 SP1, or as a Power Toy if the plumbing doesn't go too deep?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3253397" width="1" height="1"&gt;</description></item><item><title>re: Inside Vista SP1 File Copy Improvements</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3238101</link><pubDate>Sat, 09 May 2009 13:38:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3238101</guid><dc:creator>Clovis</dc:creator><description>&lt;p&gt;As someone said over a year ago, a file copy engine shouldn't be any more complex than open file, read, write, [read, write, [...]], close file. The system should handle the workload. That's what it's there for. Linux manages this, Mac OSX manages this, heck, DOS managed it.&lt;/p&gt;
&lt;p&gt;So either the Vista algorithm is so over-complex and can't be simplified because of the egos involved (and I don't mean Mark R. here), or the Vista copy does something additional with the file contents during the copy. &lt;/p&gt;
&lt;p&gt;Hopefully for Windows users this will be fixed in Windows 7.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3238101" width="1" height="1"&gt;</description></item><item><title>re: Inside Vista SP1 File Copy Improvements</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3234577</link><pubDate>Mon, 04 May 2009 02:16:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3234577</guid><dc:creator>zzzy</dc:creator><description>&lt;p&gt;It so goes that my Vista (client) would crash the entire XP (server) TCPIP stack when accessing these 3GB+ files. &amp;nbsp;It would happen randomly but consistently enough to mine any attempts at completing one task or another. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Having tried all possible tricks on both sides, including: &lt;/p&gt;
&lt;p&gt;(XP/server side)&lt;/p&gt;
&lt;p&gt; - driver updates, &lt;/p&gt;
&lt;p&gt; - increasing the Lanman IRPStackSize, &lt;/p&gt;
&lt;p&gt; - fine tuning the NdisWanMTU, &lt;/p&gt;
&lt;p&gt; - patching TCPIS.SYS to allow 50 concurrent half connects,&lt;/p&gt;
&lt;p&gt;(Vista/client side) &lt;/p&gt;
&lt;p&gt; - driver updates&lt;/p&gt;
&lt;p&gt; - disabling TCP autotune (see above comment from Tim Bolton from Dec. 2 2008)&lt;/p&gt;
&lt;p&gt; - fine tuning NdisWanMTU&lt;/p&gt;
&lt;p&gt; - tweaking the NetworkThrottlingIndex, &lt;/p&gt;
&lt;p&gt;I had to concede and consider I may be facing a network driver issue. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;All until I had the great idea of installing Lighttpd on the XP/server side, and using Firefox as download manager on the Vista/client side. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Suddenly, not only did my transferred files become restartable, but no more crashes/errors/disconnects occurred. &amp;nbsp;At the same time transfer rates improved from ~2200 kbps (Vista file copy between crashes) to ~2.1 MBps (please note capital B). &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have to conclude now that all the &amp;quot;fine tuning&amp;quot; of Vista file copy Microsoft folks have been fussing over turned up c**p (sorry Mark R., I really respect *your* work). &amp;nbsp;It could very much be that file copy in both XP *and* Vista is irrevocably broken which is equally fine by me. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;A decade of &amp;quot;fine tuning&amp;quot; by a well endowed R&amp;amp;D team couldn't beat work done by volunteer enthusiasts, both with repect to stability and performance. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Z.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3234577" width="1" height="1"&gt;</description></item><item><title>File copy under XP</title><link>http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx#3223885</link><pubDate>Wed, 08 Apr 2009 12:11:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3223885</guid><dc:creator>dirbase</dc:creator><description>&lt;p&gt;Sorry to comment again, but it seems to me that the following sentence in the paragraph &amp;quot;File Copy in Previous Versions of Windows&amp;quot; may require some precision:&lt;/p&gt;
&lt;p&gt;&amp;quot;Explorer’s first read operation at event 0 of data that’s not present in memory causes the Cache Manager to perform a non-cached I/O, which is an I/O that reads or writes data directly to the disk *without caching it in memory*, to fetch the data from disk at event 1, as seen in the stack trace for event 1.In the stack trace, Explorer’s call to ReadFile is at frame 22 in its BaseCopyStream function and the Cache Manager invokes the non-cached read indirectly by touching the memory mapping of the file and causing a page fault at frame 8.&amp;quot;&lt;/p&gt;
&lt;p&gt;Looking at the CcCopyRead function, AFAIU, the missing page in physical memory is read from disk and copied *both* to the cache buffer and the user buffer (so it's indeed read directly from the disk into the user buffer but it also ends up in the system cache). &lt;/p&gt;
&lt;p&gt;This is different from the case of a read-ahead, where the function CcPerformReadAhead, for a missing page in physical memory, will only copy the data from the disk to the cache buffer and not to the user buffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3223885" width="1" height="1"&gt;</description></item></channel></rss>