<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx</link><description>One of the features that you’ve been pretty clear about (I’ve received over 100 emails on this topic!) is the desire to improve the disk defrag utility in Windows 7. We did. And from blogs we saw a few of you noticed, which is great. This is not as straight</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375493</link><pubDate>Mon, 26 Jan 2009 05:12:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375493</guid><dc:creator>ari9910</dc:creator><description>&lt;p&gt;Has it ever occurred to anyone on the team that the best time to run things like the defragmenter, updater, and backup programs are when we AREN'T using the system. as said in the blog, it won't run if we turn the system off every night. So if those things ran when we weren't using the computer yet it was still on, those operations would run and we wouldn't have to worry about it. I find it increasingly annoying that the updater wants to update (and annoy me about it) while i'm using it because i shut the computer off at the 3:00AM time it is set to run. Similar goes for the defragmenter. I install 3rd party programs because of that, i would appreciate if I didn't have to do that because, i personally love Microsoft and hope that one day it will actually think more about customer satisfaction and less about profits (to a reasonable degree of course).&lt;/p&gt;
</description></item><item><title>New file system that doesn't need defragmenting</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375571</link><pubDate>Mon, 26 Jan 2009 06:48:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375571</guid><dc:creator>Asesh</dc:creator><description>&lt;p&gt;What about a new file system that doesn't need defragmenting? When will see such a file system in Windows? Linux already has one. We had high hopes from WinFS and hopefully when it's done it will remove the need to defragment our hard disks from time-to-time.&lt;/p&gt;
&lt;p&gt;Please don't release the next version of Windows (after Windows 7) until WinFS is done and a UNIX based kernel or a better one is implemented because Windows is still prone to viruses unlike Mac OS X and Linux which are more secure than Windows.&lt;/p&gt;
&lt;p&gt;I hope all the Windows' coders out there will see this because it's high time so we need such a file system and kernel. Thanks&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375573</link><pubDate>Mon, 26 Jan 2009 06:51:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375573</guid><dc:creator>mark_ms</dc:creator><description>&lt;p&gt;I've had a keen interest in defrag products since the days of the 286 and 40Mb hard drives. I find it particularly refreshing to learn about where the line crosses between useful defragging and wasted effort and how much newer technology has been minimizing the effect of fragmentation. Now that I have a better understanding of how Windows 7 defrags, I am now even less concerned about managing it myself. &lt;/p&gt;
&lt;p&gt;I really pity the 3rd party defragmenters out there. They now have a higher bar to clear to convince me that the default defragger isn't good enough.&lt;/p&gt;
&lt;p&gt;I don't really mind the defragger kicking in when I'm doing low I/O work e.g. browsing the web but from the screenshots, it seems that this has to be scheduled. I can't always know what kind of work I would be doing and am reluctant to specify a time when I know the computer would be on and I am working on it. So, I would prefer that there is an option for the defragger to kick in during low I/O if it hasn't been getting a chance to run at the normal scheduled time.&lt;/p&gt;
&lt;p&gt;One thing I do is recompress tv recordings. Since my recompressor is currently single-threaded, I am very much tempted to run two at the same time on my dual-core machine. Would this create much more fragmented files than if I run them one at a time?&lt;/p&gt;
</description></item><item><title>Please Start Thinking Outside of the Box</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375599</link><pubDate>Mon, 26 Jan 2009 07:24:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375599</guid><dc:creator>obsidience</dc:creator><description>&lt;p&gt;First off, I'm delighted that tool disk defragmentation tool was deemed important enough to be blogged on. &amp;nbsp;Kudos!&lt;/p&gt;
&lt;p&gt;But if you want to improve the speed and efficiency of this new OS then you need to think about:&lt;/p&gt;
&lt;p&gt;1) A defrag tool that can be scheduled to run outside of windows when no files are locked by the OS. &amp;nbsp;This would allow for a fully defragged disk.&lt;/p&gt;
&lt;p&gt;2) A defrag tool that can profile a standard computer session and defrag files accordingly. &amp;nbsp;Moving heavily accessed files to the outer areas of the disk platter where data density to rotational speed is highest&lt;/p&gt;
&lt;p&gt;3) A defrag tool that analyzes the boot up pattern and can place files sequentially along the zone allowing for less access and more reads.&lt;/p&gt;
&lt;p&gt;If you investigated these ideas I'm sure you can further reduce your boot up times by a substiantial amount.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375616</link><pubDate>Mon, 26 Jan 2009 07:45:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375616</guid><dc:creator>SouthPaw42</dc:creator><description>&lt;p&gt;Wouldn't a file system that included a process to reduce fragmentation during file creation and update. I have an OS HDD that is 60% empty space but after 30 days is 50% fragmented. &amp;nbsp;A drive that empty should not be fragmented.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375667</link><pubDate>Mon, 26 Jan 2009 08:49:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375667</guid><dc:creator>Vyacheslav Lanovets</dc:creator><description>&lt;p&gt;I believe that scheduling logic must be changed too. &amp;nbsp;People who do not understand what defrag is tend to turn off their PCs early. Windows MUST detect that defrag did not have a chance to run for a month or two and advise changing scheduled time accordingly or even do it silently according to user behaviour pattern. But this will be too user-friendly for Microsoft :)&lt;/p&gt;
&lt;p&gt;For advanced users Vista defrag can be scheduled to run at boot time, and in this mode it seems to defrag more than during user session. And reboot can be scheduled too. And sometimes even hardware wakeup can be scheduled :)&lt;/p&gt;
&lt;p&gt;As Vista itself, Vista defrag is already good but it seems like scheduling logic did not change i Windows 7. Kind of: it won't work for my mom who at the same time really needs defrag and does not leave your PC turned on at 1:00 AM!&lt;/p&gt;
&lt;p&gt;Windows 8 or 9?&lt;/p&gt;
</description></item><item><title>re: New file system that doesn't need defragmenting</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375747</link><pubDate>Mon, 26 Jan 2009 11:44:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375747</guid><dc:creator>II ARROWS</dc:creator><description>&lt;p&gt;Asesh, &amp;quot;file system that doesn't need defragmenting&amp;quot; simply doesn't exist.&lt;/p&gt;
&lt;p&gt;You wrote &amp;quot;Unix&amp;quot;, those file systems work defragmenting while writing new file or expanding them. The results are slower writing time, in most case if a file is wroten you are working and this slow your work. Windows perform this while you are not working.&lt;/p&gt;
&lt;p&gt;Think about converting a video, this operation require a large amount of IO operation in RAM and in disk, generating a lot of file that have to be deleted at the end of the process. If the file system have to defrag while writing, conversion time would be increased.&lt;/p&gt;
&lt;p&gt;Also, you wrote &amp;quot;WinFS&amp;quot;. WinFS was not a file system, but an added layer that works on NTFS, an heavy one.&lt;/p&gt;
&lt;p&gt;An idea on wich WinFS was built is splitting up the meta data from data, and in this article I see another step closer to WinFS.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375795</link><pubDate>Mon, 26 Jan 2009 12:45:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375795</guid><dc:creator>sirus</dc:creator><description>&lt;p&gt;@ Asesh&lt;/p&gt;
&lt;p&gt;A file system which has the characteristic you mention doesn't exist. If you take Linux and its most used file system, which is EXT3, the fragmentation percentage is indeed low, however it's calculated only on big chunks, just like on Windows Vista. If you try another file system such as XFS which is certainly faster than EXT3 you'll notice that it suffer a greater fragmentation and due to that XFS is provided with a de-fragmentation tool.&lt;/p&gt;
&lt;p&gt;Ending the off-topic, I'd like an &amp;quot;intelligent&amp;quot; de-fragmentation process that runs when I'm not heavily using my HD and possibly an &amp;quot;intelligent&amp;quot; scheduler which automatically modify its configuration based on users' habits.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375804</link><pubDate>Mon, 26 Jan 2009 12:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375804</guid><dc:creator>Eiki</dc:creator><description>&lt;p&gt;What about SSD? How does this defragmentation process change if there is an SSD in place?&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375812</link><pubDate>Mon, 26 Jan 2009 13:17:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375812</guid><dc:creator>RobertWrayUK</dc:creator><description>&lt;p&gt;@Eiki&lt;/p&gt;
&lt;p&gt;One of the bullet points at the end of the entry:&lt;/p&gt;
&lt;p&gt;&amp;quot;If solid-state media is detected, Windows disables defragmentation on that disk. The physical nature of solid-state media is such that defragmentation is not needed and in fact, could decrease overall media lifetime in certain cases.&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375829</link><pubDate>Mon, 26 Jan 2009 13:41:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375829</guid><dc:creator>Domenico</dc:creator><description>&lt;p&gt;My computer is always on With Vista or Windows 7.&lt;/p&gt;
&lt;p&gt;automatically defrag form me is &amp;nbsp;very interesting and work fine, &lt;/p&gt;
&lt;p&gt;in the Beta of Windows 7, Defrag is even better.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375833</link><pubDate>Mon, 26 Jan 2009 13:47:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375833</guid><dc:creator>d_e</dc:creator><description>&lt;p&gt;@Asesh: It seems you have no clue about kernels and filesystems. Especially the windows kernel.&lt;/p&gt;
&lt;p&gt;1. WinFS is not a filesystem. It's a database. NTFS runs underneath.&lt;/p&gt;
&lt;p&gt;2. There is not filesystem which doesn't fragment. Such a thing is impossible.&lt;/p&gt;
&lt;p&gt;3. &amp;quot;UNIX or better&amp;quot;. What do you mean by this? Unix-compatible systems aren't inherently more secure than Windows. The design of Unix is very old (and IMHO outdated). I'm confident that Microsoft is wise enough to keep their current kernel.&lt;/p&gt;
&lt;p&gt;4. A secure kernel doesn't give you a secure computer. Because most users aren't computer literate and will gladly install anything if an email tells them to do so.&lt;/p&gt;
&lt;p&gt;To the article: I believe defragmentation is misunderstood by most users. Many think this is some sort of magic powder that will make their machine much faster. It won't. Users shouldn't have to worry about defragmentation. The decision to hide all this in Vista was the right one. You guys get the 100+ emails from self-proclaimed experts which (mostly) have no clue what they're writing about.&lt;/p&gt;
&lt;p&gt;The only thing I'm wondering is why my disk (according to the HDD LED) works only 50% when resuming from hibernate...&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375849</link><pubDate>Mon, 26 Jan 2009 14:11:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375849</guid><dc:creator>II ARROWS</dc:creator><description>&lt;p&gt;I've a question about my test configuration:&lt;/p&gt;
&lt;p&gt;I've an HDD with Vista x64 and 7 x64, another disk used for data.&lt;/p&gt;
&lt;p&gt;I always move Document(and music, picture and video) folder on the second disk to preserve them if I need to format or simply change machine.&lt;/p&gt;
&lt;p&gt;The structure is like XP:&lt;/p&gt;
&lt;p&gt;My Documents&lt;/p&gt;
&lt;p&gt;|----My Music&lt;/p&gt;
&lt;p&gt;|----My Pictures&lt;/p&gt;
&lt;p&gt;|----My Videos&lt;/p&gt;
&lt;p&gt;After set in the library the folders and set as default save directories, if I boot Vista and try to access the Documents sub folder(Only music, pic and video) it alerts me that I need to be the owner. Only for those folder, files in My documents can be opened and modified.&lt;/p&gt;
&lt;p&gt;May it depends because of the new &amp;quot;intelligent defrag&amp;quot; splitting meta data, and 7 doesn't want Vista to &amp;quot;undo&amp;quot; 7's work?&lt;/p&gt;
&lt;p&gt;Or is just a bug that 7 wants those right?&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9375957</link><pubDate>Mon, 26 Jan 2009 17:45:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375957</guid><dc:creator>Asesh</dc:creator><description>&lt;p&gt;@d_e&lt;/p&gt;
&lt;p&gt;Read it carefully, I didn't say WinFS is a file system. And unix based kernel is more secure than Windows kernel :P Yes I do use both Linux and Mac OS X so I can say that.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9376004</link><pubDate>Mon, 26 Jan 2009 18:41:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9376004</guid><dc:creator>tgrand</dc:creator><description>&lt;p&gt;&amp;quot;The physical nature of solid-state media is such that defragmentation is not needed...&amp;quot;&lt;/p&gt;
&lt;p&gt;Did you guys check this or just take some SSD manufacturers word for it? &amp;nbsp;It's really disappointing to hear this from you. &amp;nbsp;I was skeptical about this claim so I tested it myself. &amp;nbsp;It wasn't hard at all to get a 30% performance hit reading a fragmented file from an SSD. &amp;nbsp;Sure, that's not nearly as bad as it would've been on a spinning disk, but 30% is still significant - especially when you're paying a huge price premium to use one of these drives for performance reasons!&lt;/p&gt;
&lt;p&gt;I argued this point with the manufacturer and they eventually conceded, but said the performance benefit of defragging was outweighed by the shortening of the drive's lifespan. &amp;nbsp;I said &amp;quot;OK great, you should claim this, instead of claiming that it's 'not needed', which is a half-truth at best.&amp;quot; &amp;nbsp;As you might imagine, they weren't very receptive to that idea. &amp;nbsp;And I only got to do some limited testing. &amp;nbsp;I'm sure things get much worse when you have a nearly full system drive used over a long time.&lt;/p&gt;
&lt;p&gt;By the way, here's why fragmentation hurts on an SSD despite the minimal &amp;quot;seek time&amp;quot; penalty: most SSDs only get their high throughput when the individual I/O requests are for sufficiently large amounts of data. &amp;nbsp;Fragmentation can easily turn a file read operation from a handful of large fast reads into hundreds of tiny slow ones.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9376118</link><pubDate>Mon, 26 Jan 2009 22:18:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9376118</guid><dc:creator>SvenC</dc:creator><description>&lt;p&gt;@asesh: how would you interprete your sentence &amp;quot;What about a new file system that doesn't need defragmenting? When will see such a file system in Windows? Linux already has one. We had high hopes from WinFS and hopefully when it's done it will remove the need to defragment our hard disks from time-to-time.&amp;quot; other than that you call WinFS as file system.&lt;/p&gt;
&lt;p&gt;Can you give some or at least one technical example to show us how Unix based systems are more secure than Windows systems which are based on an NT kernel?&lt;/p&gt;
&lt;p&gt;I don't see how using an OS gives you clues on the security level of an OS.&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;SvenC&lt;/p&gt;
</description></item><item><title>It should treat expandable files differently than static files</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9376223</link><pubDate>Mon, 26 Jan 2009 23:53:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9376223</guid><dc:creator>shan_mcarthur@spamcop.net</dc:creator><description>&lt;p&gt;I wish the file system could treat expandable files differently than static files. &amp;nbsp;Much of the fragmentation on an aged system is from files that have been fragmented due to them being expanded. &amp;nbsp;Files that are frequently expanded need to have a lot of extra room at the end of the file, where static files (ie: dlls) are never expanded and can be packed tight. &amp;nbsp;I believe that Raxco recognized this more than 15 years ago on VMS.&lt;/p&gt;
&lt;p&gt;Shan&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9376272</link><pubDate>Tue, 27 Jan 2009 00:21:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9376272</guid><dc:creator>Vyacheslav Lanovets</dc:creator><description>&lt;p&gt;@sirus It's a good point. For a typical user defrag should happen during disk idle times and maybe share that idle time with desktop search service. Defrag should happen only when on AC power. &lt;/p&gt;
&lt;p&gt;Also there should be less HDD thrashing during idle time because HDDs seems to be TOO loud when building search indexes. That happens because because Windows architects think that they can put 100% load on disk during disk idle time. They did not think about all the noise they create with this. &amp;nbsp;Especially at night!!&lt;/p&gt;
&lt;p&gt;The silly idea that most users should know how to tweak their systems should go away. I liked to watch defragmentation status screens since Norton Speedisk for DOS but that time has gone. I don't care anymore.&lt;/p&gt;
&lt;p&gt;I know many professional C++ devs who don't care about installing updated drivers in spite of having occasional BSODs. And they would not run defrag, they would just use Macs at home.&lt;/p&gt;
&lt;p&gt;I am sure that PMs for the Defrag feature understand all that well but are not brave enough to say it out loud and then do something to implement. (Yes, I am lazy too).&lt;/p&gt;
&lt;p&gt;@Asesh I am sorry about that but statistically Windows Vista seems to be more secure and reliable than Unix systems. Reliable - in terms of OS. Not hardware.&lt;/p&gt;
&lt;p&gt;Apple has full control on the hardware and it does a lot of testing of only that specific combination of hardware. MS will never achieve that in a PC. For instance, my Nvidia _Business_ Platform motherboard had Vista stickers all over it but it has faulty Ethernet driver that hangs system when I unplug network cable (independently of what the cable is connected to from the other side).&lt;/p&gt;
</description></item><item><title>@d_e </title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9376331</link><pubDate>Tue, 27 Jan 2009 00:53:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9376331</guid><dc:creator>smartpatrol</dc:creator><description>&lt;p&gt;&amp;quot;The design of Unix is very old (and IMHO outdated).&amp;quot;&lt;/p&gt;
&lt;p&gt;I hear this alot being familiar with Unix, Unix-Like OS's and Windows i just have to LOL. I laugh the same at the old Unix battle axes that think Windows is not a Serious Server OS and is unstable. &amp;nbsp;From my experience 99% of Windows instability comes from 3rd party poor software design/coding; companies not following clear guidelines on how to develop for Microsoft OS’s.&lt;/p&gt;
&lt;p&gt;In regards to defrag I still miss the Norton Disk Doctor defrag interface from the DOS days or even win98(please consider bringing this view back MS!)it was mesmerizing watching it stack the blocks. &lt;/p&gt;
&lt;p&gt;Anyway thanks for the laugh.&lt;/p&gt;
</description></item><item><title>How about a more current approach?</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9376366</link><pubDate>Tue, 27 Jan 2009 01:14:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9376366</guid><dc:creator>nicbot</dc:creator><description>&lt;p&gt;First, great article and nice work!&lt;/p&gt;
&lt;p&gt;Now, my issue here does not have to do so much with the way Windows handles fragmented files and I/O, it's the implied state the end user is asked to leave their computer in...On&lt;/p&gt;
&lt;p&gt;Leaving your computer on 24/7 is an absurd waste of power/energy and is, in my opinion, plain irresponsible in this day and age.&lt;/p&gt;
&lt;p&gt;I feel it would be a huge step forward and gesture on Microsoft's behalf if they were to either move to a more efficient way to concurrently handle defragging in the background while performing common computing (ie- while machine is idle) to eliminate the need for scheduled defragmenting in the first place. &amp;nbsp;Or if they promoted responsible use by NOT having the schedule default to 1 am and explain to the user in some way so they can be educated as to why.&lt;/p&gt;
&lt;p&gt;I realize it's a stretch, but a top down approach to helping to solve a global crisis would be HUGE. &amp;nbsp;And this seems like such a relatively easy thing to implement imo.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
</description></item><item><title>@ Shan</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9376386</link><pubDate>Tue, 27 Jan 2009 01:19:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9376386</guid><dc:creator>Hairs</dc:creator><description>&lt;p&gt;I've noticed much the same thing having spent the past month or two experimenting with defragging - much of the fragmentation comes from files that it wouldn't be difficult for Windows to &amp;quot;know&amp;quot; are going to become fragmented - Web browser caches are particularly bad for this. Maybe having a look at the layout rules for NTFS again might not be a bad idea.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9376395</link><pubDate>Tue, 27 Jan 2009 01:21:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9376395</guid><dc:creator>gss4w</dc:creator><description>&lt;p&gt;The defragment option prior to Vista was a great tool for incompetent IT help desk techs to use for problems that could not be solved with their number one solution of rebooting the computer.&lt;/p&gt;
&lt;p&gt;Disk defragmentation would take hours to complete, and had pretty pictures to show that the computer was doing something. &amp;nbsp;With any luck the user would give up asking for help by the time the defrag was complete and the ticket could be closed.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9382040</link><pubDate>Thu, 29 Jan 2009 03:07:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9382040</guid><dc:creator>mgarson</dc:creator><description>&lt;p&gt;Thanks everyone for your comments so far, we’ve noticed several common questions that we’d like to answer:&lt;/p&gt;
&lt;p&gt;@ari9910/Vyacheslav Lanovets/nicbot: The default scheduled run time was picked to avoid interfering with interactive usage. These defaults, of course, can be changed. If defrag is unable to run at the scheduled time because the computer is not on, it will then automatically be scheduled to run next when the computer is idle.&lt;/p&gt;
&lt;p&gt;@Southpaw42: The drawback to defragmenting at creation or update time is that it adds potentially significant latency and I/O overhead to the operation, especially if the create/update is blocked from completing until the defrag is complete. For Windows, that would not be an appropriate design as it would tradeoff system responsiveness, which is very important, in favor of decreasing fragmentation, a relatively less valuable objective.&lt;/p&gt;
&lt;p&gt;@tgrand: There are several reasons for disabling defrag on SSDs – keep in mind that SSDs are a relatively recent technology. Our internal evaluation of SSDs demonstrated that there’s a significant amount of variability in delivered performance. While there are possible benefits to defragmenting SSDs (such as coalescing free space and being able to issue I/O in larger chunks), we were concerned about the potential of decreasing the life time of the flash media from additional I/O. We determined that prioritizing media lifetime and ensuring reliability of data was the correct choice. As expected, we will continue to actively monitor and test this new media type to ensure we optimize our behavior appropriately.&lt;/p&gt;
&lt;p&gt;Hope you've had a chance to try out the Win7 Beta!&lt;/p&gt;
&lt;p&gt;Matt Garson&lt;/p&gt;
&lt;p&gt;File and Block Storage Team&lt;/p&gt;
&lt;p&gt;Microsoft&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9383043</link><pubDate>Thu, 29 Jan 2009 15:40:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9383043</guid><dc:creator>martinmine</dc:creator><description>&lt;p&gt;The defrag tool is much more improoved in Windows 7 from Vista! It it some functions that i miss in the defrag tool:&lt;/p&gt;
&lt;p&gt;- Defrag on boot (Defrags also system and reistry)&lt;/p&gt;
&lt;p&gt;- A diagram that shows the current filestructure on the HDD we are defragmenting&lt;/p&gt;
&lt;p&gt;- A progressbar&lt;/p&gt;
&lt;p&gt;- A field which shows what files that are being defragmented&lt;/p&gt;
&lt;p&gt;I like the new design, but it could be improoved.&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9383163</link><pubDate>Thu, 29 Jan 2009 17:35:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9383163</guid><dc:creator>SvenC</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;when you say&lt;/p&gt;
&lt;p&gt;&amp;quot;The default scheduled run time was picked to avoid interfering with interactive usage. These defaults, of course, can be changed. If defrag is unable to run at the scheduled time because the computer is not on, it will then automatically be scheduled to run next when the computer is idle&amp;quot;&lt;/p&gt;
&lt;p&gt;do you say that this is the default behavior of the defrag task or do you say that the user can (must) reconfigure it to work like that?&lt;/p&gt;
&lt;p&gt;I just checked my defrag task. The last time should have been 28.1. on 1 am. The system (Windows 7 beta 1 x86) was off at that time. Yesterday and today it was at least idle for 40-60 minutes when I went to launch. But defragging was not started. The last time shown in the task scheduler was my manual defrag action last week.&lt;/p&gt;
&lt;p&gt;What should I expect here? Does the defrag task not update the &amp;quot;last run time&amp;quot; when it is started but does not find a drive worth defragging? Or is this a scheduling bug?&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9383339</link><pubDate>Thu, 29 Jan 2009 19:35:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9383339</guid><dc:creator>tgrand</dc:creator><description>&lt;p&gt;Thanks for the reply, Matt! &amp;nbsp;That's exactly the kind of explanation that I would hope to see when someone talks about defrag and SSDs. &amp;nbsp;I understand and agree with your approach. &amp;nbsp;I just think that sooner or later, people will find out that SSDs are not magically immune to fragmentation, and they'll appreciate having a better understanding of the situation. &amp;nbsp;Admittedly, it's a pretty complex picture.&lt;/p&gt;
&lt;p&gt;It will be very interesting to see how this issue evolves over time.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9384115</link><pubDate>Fri, 30 Jan 2009 05:42:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9384115</guid><dc:creator>Neken</dc:creator><description>&lt;p&gt;Alright, seriously, this 1AM auto-scheduler is simply a flaw at all levels. First, because almost nobody lets their computer open all night. Secondly, because EVEN if it's open at 1AM, it's probably because i'm working on it. Third, because EVEN if it reschedule automatically another day, it will still have problem #2.&lt;/p&gt;
&lt;p&gt;I think, like most people said here, the best way would be to automatically start it when the I/O is for some time (like while i'm browsing for 2 hours) and make the defrag able to start and stop quite rapidly.&lt;/p&gt;
&lt;p&gt;The same thing applies to windows updates.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9384545</link><pubDate>Fri, 30 Jan 2009 12:55:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9384545</guid><dc:creator>sokolum</dc:creator><description>&lt;p&gt;It would be nice is the system would consider the file type and place them on a pre-reservered place on a harddisk.&lt;/p&gt;
&lt;p&gt;To make my point:&lt;/p&gt;
&lt;p&gt;An .txt or .log is usually a lot smaller then a .MP3, and a MP3 again is usually a lot smaller then a .AVI.&lt;/p&gt;
&lt;p&gt;System files would never grow, until they got replaced/upgraded.&lt;/p&gt;
&lt;p&gt;I believe for some file types you could define a place on the harddrive so they don't get all over the place. &lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9385051</link><pubDate>Fri, 30 Jan 2009 21:02:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9385051</guid><dc:creator>Surt</dc:creator><description>&lt;p&gt;It seems like the algorithm for defragmentation itself must be very poor. &amp;nbsp;Even on an otherwise idle system, with &amp;gt;50% disk space, it takes far longer to defragment than 2 full reads and writes of the data would explain. &amp;nbsp;An order of magnitude more at least. &amp;nbsp;Is any attention being given to actually trying to make defragmentation faster?&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9385604</link><pubDate>Sat, 31 Jan 2009 04:25:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9385604</guid><dc:creator>mgarson</dc:creator><description>&lt;p&gt;@SvenC/neken: Let me explain further how the scheduler works. Defrag won't actually run at 1AM, unless the machine is idle at that time and, if you're using a laptop, not on battery power. (Conserving battery power is an important goal for Win7 and we've made changes to support this throughout the system.) In addition, if defrag is running and you start to use the system, defrag will stop until the system becomes idle again at which point it will resume.&lt;/p&gt;
&lt;p&gt;Quite a bit of work went into intelligently detecting idle time and interactive use. You can learn more at the following links:&lt;/p&gt;
&lt;p&gt;PDC - &lt;a rel="nofollow" target="_new" href="http://channel9.msdn.com/pdc2008/PC19/"&gt;http://channel9.msdn.com/pdc2008/PC19/&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Paper - Designing Efficient Background Processes: &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/whdc/system/pnppwr/powermgmt/BackgroundProcs.mspx"&gt;http://www.microsoft.com/whdc/system/pnppwr/powermgmt/BackgroundProcs.mspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Matt Garson&lt;/p&gt;
&lt;p&gt;File and Block Storage Team &lt;/p&gt;
&lt;p&gt;Microsoft&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9385762</link><pubDate>Sat, 31 Jan 2009 06:59:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9385762</guid><dc:creator>wtroost</dc:creator><description>&lt;p&gt;Just writing to agree with sokolum: &amp;quot;It would be nice is the system would consider the file type and place them on a pre-reservered place on a harddisk.&amp;quot;&lt;/p&gt;
&lt;p&gt;On a side note, much of the performance loss people complain about is realited to Explorer add-ons (not disk defrag.) &amp;nbsp;Any chance for an Explorer add-on manager of kinds? &amp;nbsp;Run em in a different process please!&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9385770</link><pubDate>Sat, 31 Jan 2009 07:10:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9385770</guid><dc:creator>anonymuos</dc:creator><description>&lt;p&gt;Can you make it such that when multiple volumes are selected, they can defragged one after the other (not in parallel) from the GUI. This makes it use defrag.exe and give up on the nice GUI. Defragmenting multiple volumes simultaneously takes a performance hit if I'm doing something else too on my PC.&lt;/p&gt;
</description></item><item><title>Disk Defragmentation – Slow as Grandma Moses</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9388121</link><pubDate>Sun, 01 Feb 2009 13:02:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9388121</guid><dc:creator>graham.lv</dc:creator><description>&lt;p&gt;I didn't see this - guess I've been busy using 7. &amp;nbsp;Anyway I just recently sent feedback that it's useless. &amp;nbsp;Got a Samsung 160GB Sata II small HD on my test machine and have used about 52 GB.&lt;/p&gt;
&lt;p&gt;Ran Defrag and in just puts 'pas 1 0.5%' and up to 100%, then it puts 'pass 2 &amp;nbsp;35%, etc - apparently there are 10 passes - I didn't stop to watch, I watered the garden, did the washing and cooked a meal and it was still going... and going... after 4 hours it was on about 'pass 10 &amp;nbsp;.05%'.&lt;/p&gt;
&lt;p&gt;There are commercial defragers that do a little bit in the background - or &amp;nbsp;- they may be bull..&lt;/p&gt;
&lt;p&gt;Whichever way - over 4 hours of not touching the computer to Defrag 52 GB means that Defrag is totally USELESS and will never work and/or run.&lt;/p&gt;
&lt;p&gt;160 GB is the smallest HD I could buy - most people will be buying 2 TB. &amp;nbsp;3 months to Defrag????&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9388305</link><pubDate>Sun, 01 Feb 2009 15:21:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9388305</guid><dc:creator>Mattisdada</dc:creator><description>&lt;p&gt;I was under the impression that the performance boost of defraging a SSD is like only 0.5%. As the access time is virtually 0 on a SSD as it uses flash memory rather then a spinning platter, so it didnt matter as much if they were a bit muddled.... It could find them very quickly. A small overhead at most..... not worth the loss of lifetime and reliability. &lt;/p&gt;
&lt;p&gt;And the whole Windows Kernel(vs unix) is unsecure argument going on.... Is just insane. Obviously the Winows Kernel is more secure....&lt;/p&gt;
&lt;p&gt;Ill try and explain it metaphysically. There is two towns in the ye old medievil days. One town is a large town of millions (windows users), its heavily fortified, theres always attackers trying to take over its lands and get inside and kill the people inside. Every now and then one does get in and gives a few people the plague, but they have pretty good doctors and they kill that type of plague.&lt;/p&gt;
&lt;p&gt;Now town 2. Well its a small little forrest village. Only has about 500 people. Very community like village. They have no riches. They have nothing. No one attacks them. But the big rich city always has people trying to attack it...&lt;/p&gt;
&lt;p&gt;So although at times Windows may seem unsecure, its EXTREMELY secure relatively. Its just a matter of perspective. Oh and sorry if my story sucked on trying to explain it to people who blatantly don't understand :). And most unstableness is indeed 3rd party. When Vista came out. It was like 70% of crashes were caused by nVidia, 5% ATI, 22% others, 3% Microsoft. Or something like that, i cant remember the specifics. But it was a mostly nVidias fault scenario.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9390673</link><pubDate>Mon, 02 Feb 2009 18:50:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9390673</guid><dc:creator>tgrand</dc:creator><description>&lt;p&gt;Mattisdada:&lt;/p&gt;
&lt;p&gt;That is a very common misconception, propagated by false claims from SSD manufacturers, software vendors, reviewers, etc. &amp;nbsp;People use the relatively low access time of SSDs to convince themselves and others that fragmentation is a non-issue. &amp;nbsp;But really, there are two main factors that determine how long it takes to read a file from start to finish: 1) access time (a time cost paid per I/O request) and 2) throughput (how much data can be read per unit of time).&lt;/p&gt;
&lt;p&gt;On a traditional spinning disk, the relatively high access time is what causes the most slowdown when trying to read a fragmented file. &amp;nbsp;If you need to read a file which is in 200 fragments, and your seek time is an average of 9ms, that's 1.8 seconds spent just seeking around. &amp;nbsp;On an SSD, that might be more like 200 * 0.1ms = 20ms. &amp;nbsp;A 90x improvement.&lt;/p&gt;
&lt;p&gt;But access time is only part of the picture. &amp;nbsp;The other part is throughput, and it's very important. &amp;nbsp;Let's say your SSD is capable of reading at 200MB/sec. &amp;nbsp;Well guess what - its throughput of an SSD is actually quite variable depending on I/O size. &amp;nbsp;The size of a single I/O request affects the throughput you get. &amp;nbsp;Look at the graphs here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.guru3d.com/article/gskill-ssd-solid-state-disk-64-gb-review/6"&gt;http://www.guru3d.com/article/gskill-ssd-solid-state-disk-64-gb-review/6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you have to issue a bunch of I/O requests for say, 64KB and under, you're looking at 2-10x decrease in throughput for those requests. &amp;nbsp;The more fragmented a file is, the more small I/O requests are going to be needed to read it. &amp;nbsp;It will not be as fast as reading a contiguous file using larger I/O requests, and the difference could easily be much more than 0.5%.&lt;/p&gt;
&lt;p&gt;As I said before, I measured a 30% hit myself. &amp;nbsp;In that particular test, I used XP, an SATA2 128GB MLC SSD, a 180MB file in 200 fragments (downloaded by Firefox), SysInternals contig to measure and remove fragmentation, filemon to check actual I/O sizes, and a program I wrote to do read timing using different APIs, flags, and requested I/O sizes.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9393536</link><pubDate>Tue, 03 Feb 2009 21:14:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9393536</guid><dc:creator>adir1</dc:creator><description>&lt;p&gt;Nice summary of graphs and charts in the beginning, but I feel like big &amp;quot;feature&amp;quot; is missing here.&lt;/p&gt;
&lt;p&gt;Perhaps it is not directly related to disk fragmentation (though I though I heard it was back in early Vista days), but what about &amp;quot;aligning&amp;quot; of software for faster loads.&lt;/p&gt;
&lt;p&gt;Great example is during system boot - the OS knows it will need a lot of drivers, registry, executable files (dlls, etc). Aligning all those for one or very few contiguous load would significantly improve startup.&lt;/p&gt;
&lt;p&gt;Granted this is something that can be &amp;quot;prepared&amp;quot; during the initial OS setup, but overtime as you add hardware, update kernel pieces (security, anyone?), what will re-align these pieces for fast load?&lt;/p&gt;
&lt;p&gt;Plus, what about Icons and Background graphics and other such &amp;quot;nonsense&amp;quot; - this is all part of &amp;quot;creating&amp;quot; the user desktop, and the faster it happens the better the experience! &lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9393549</link><pubDate>Tue, 03 Feb 2009 21:24:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9393549</guid><dc:creator>adir1</dc:creator><description>&lt;p&gt;One more comment, to add my 2 cents to what tgrand mentions above:&lt;/p&gt;
&lt;p&gt;1. The SSD drives are in their infancy, and manufactures (especially Intel, I hear), are making huge leaps forward with the way data is internally organized to provide huge seek/throughput improvements&lt;/p&gt;
&lt;p&gt;2. Due to the nature of Flash memory Writing and Re-writing to same memory regions degrades media at an accelerated rate. To me, that says that a proper place to &amp;quot;defragment&amp;quot; a file is inside internal firmware of the SSD drive, and not externally by OS. Anyway, I understand most firmware already makes these decisions of where to physically write data, separate from the &amp;quot;logical&amp;quot; OS positioning, based in part on media degradation optimizations.&lt;/p&gt;
&lt;p&gt;On last note, I'd like to see a post about what we're doing to optimize OS for SSD drives. There is a world of functionality and improvements that can be gained, way beyond the silly &amp;quot;Boost&amp;quot; or whatever that thing is called in Vista. I am talking about scenarios where boot partition is SSD, or it's other kind of &amp;quot;mix&amp;quot; where system contains SSD and old-school drives. Another post, Win 7 team, perhaps?&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9393957</link><pubDate>Wed, 04 Feb 2009 02:00:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9393957</guid><dc:creator>tgrand</dc:creator><description>&lt;p&gt;adir1:&lt;/p&gt;
&lt;p&gt;You said &amp;quot;the proper place to 'defragment' a file is inside internal firmware of the SSD drive.&amp;quot; &amp;nbsp;But how could this be done? &amp;nbsp;The kind of fragmentation we're talking about here occurs at the filesystem level - the &amp;quot;logical&amp;quot; OS positioning as you called it. &amp;nbsp;Only the OS can manage the filesystem. &amp;nbsp;A storage device can't possibly do it.&lt;/p&gt;
&lt;p&gt;It sounds like you're either mixing the concepts of filesystem fragmentation and wear leveling (they're really completely separate), or you're suggesting there should be some kind of new and very different interaction between OS and storage device...?&lt;/p&gt;
</description></item><item><title>Fixing the problem</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9413207</link><pubDate>Wed, 11 Feb 2009 21:59:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9413207</guid><dc:creator>Rudi Larno</dc:creator><description>&lt;p&gt;I must agree with adir1, solokum, hairs and shan.&lt;/p&gt;
&lt;p&gt;How windows organizes the disk is far more relevant than the old-school 'defragmentation' routine. The first graph shows that disks are too slow compared to the CPU. So why not use the cpu power to determine the most optimal place for a file when it is written? And use a continuously running service to optimize the disk when not in use. (like diskeeper)&lt;/p&gt;
&lt;p&gt;I've written more of how I'd like to see windows organize the disk @ &lt;a rel="nofollow" target="_new" href="http://www.larud.net/subtext/archive/2009/02/10/46.aspx"&gt;http://www.larud.net/subtext/archive/2009/02/10/46.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9436684</link><pubDate>Sat, 21 Feb 2009 02:22:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9436684</guid><dc:creator>Mr32bit</dc:creator><description>&lt;p&gt;I would add this to the Disk Defrag option. &lt;/p&gt;
&lt;p&gt;Have an option of allowing disk defrag during a screen saver. This would help out since it is during an idle time. Make it a default and allow it able to be turned off. &lt;/p&gt;
&lt;p&gt;I like the other suggestions provided too, but I think it might hinder performance if the OS is continually monitoring when &amp;quot;idle&amp;quot; time is available. &lt;/p&gt;
&lt;p&gt;Disk defrag during a screen saver is a good option. Although not everyone turns their screen saver on, it would be helpful. &lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9445455</link><pubDate>Thu, 26 Feb 2009 06:21:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9445455</guid><dc:creator>DWalker</dc:creator><description>&lt;p&gt;Mr32bit, I think the OS always knows when the computer is idle. &amp;nbsp;It's not that hard to detect.&lt;/p&gt;
&lt;p&gt;And, screen savers (and screen power-off) on laptops that are running on battery power are there to save the battery; defrag while running on a bettery may not be ideal.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9447430</link><pubDate>Fri, 27 Feb 2009 00:23:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9447430</guid><dc:creator>RikDederly</dc:creator><description>&lt;p&gt;I have mixed feelings about the following suggestions, but these are ideas I had while reading the post.&lt;/p&gt;
&lt;p&gt;1) Schedule a hardrive to turn on at a specified time and turn off once the defrag was complete. The drawback for this would be the additional power used in the middle of the night. The benefit would be a defragmented drive at little impact to the user. Of course, there would be no connection to a network or internet when this occurs. &lt;/p&gt;
&lt;p&gt;2) Create an automatic defrag to occur when the system has been idle for 3-4 hours. Under normal use, this would only occur when your system has been left on overnight. Therefore, the user would only need to leave the system on during any given night. The current scheduled listed above appears to require the user to remember to leave the system on on a given day (such as Wednesday). Many users would likely forget to leave their system on during their scheduled defrag time. &amp;nbsp; &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9448433</link><pubDate>Fri, 27 Feb 2009 12:56:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9448433</guid><dc:creator>Victor Dubina</dc:creator><description>&lt;p&gt;To Scheduler automatic defragmentation on idle just simply go to Control Panel &amp;gt; Administrative Tools &amp;gt; Task Scheduler. Expand Task Scheduler Library &amp;gt; Microsoft &amp;gt; Windows. Find &amp;quot;Defrag&amp;quot; subfolder, right click on &amp;quot;ScheduledDefrag&amp;quot; task, choose &amp;quot;Properties&amp;quot; from falling down menu. Click &amp;quot;Triggers&amp;quot; tab.&lt;/p&gt;
&lt;p&gt;Here you may add a new trigger. A limit is only your imagination :) For instance, choose &amp;quot;On idle&amp;quot; from &amp;quot;Begin a task:&amp;quot; list. Press Ok or tune-up with advanced settings.&lt;/p&gt;
&lt;p&gt;As simple as that.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9519927</link><pubDate>Mon, 30 Mar 2009 22:04:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9519927</guid><dc:creator>theophoretos</dc:creator><description>&lt;p&gt;Something good that I just read about windows 7 is that &amp;quot;termination of defragmentation would not damage the system&amp;quot;. But does this mean that it would on Vista? I mean, today I started defragmenting my vista HD for the first time, when it has only 10 gb left on a 250 gb HD. After more than an hour, I noticed that defrag.exe was not even consuming any CPU at all on the task manager and assumed that it was all done, and so I killed the process. Only then did I notice it was still going on before I killed it. Would this have damaged any data on my drive?&lt;/p&gt;
&lt;p&gt;Having a status report while defrag is in process now has another reason: so you can actually tell that it is still going on!&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9520267</link><pubDate>Mon, 30 Mar 2009 23:48:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9520267</guid><dc:creator>tgrand</dc:creator><description>&lt;p&gt;I believe the defrag API and implementation in modern Windows is set up so that it shouldn't be possible to have data loss or corruption as a result of interrupting the defrag process - whether the interruption is you killing a process, a driver causing a BSOD, power to the system being cut, etc. &amp;nbsp;I highly doubt there was any fundamental change here between Vista and Windows 7. &amp;nbsp;But it would've been nice if you'd named your source.&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9524548</link><pubDate>Wed, 01 Apr 2009 02:59:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9524548</guid><dc:creator>graziano</dc:creator><description>&lt;p&gt;I read somewhere that the defragmenter in Vista can't defragment files over 64MB and doesn't include these files in the list of top fragmented files when you run the analysis from the DOS prompt. Is this true and does this limitation still exist in the Windows 7 defragmenter?&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9807632</link><pubDate>Mon, 29 Jun 2009 00:04:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9807632</guid><dc:creator>derosnec</dc:creator><description>&lt;p&gt;Not everything gets defragged. &amp;nbsp;Some system files are immovable. &amp;nbsp;See:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/227350"&gt;http://support.microsoft.com/kb/227350&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(Files Excluded by the Disk Defragmenter Tool)&lt;/p&gt;
&lt;p&gt;see also:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/961095"&gt;http://support.microsoft.com/kb/961095&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/174619"&gt;http://support.microsoft.com/kb/174619&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Disk Defragmentation – Background and Engineering the Windows 7 Improvements</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9855973</link><pubDate>Mon, 03 Aug 2009 09:57:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9855973</guid><dc:creator>Bertrand2</dc:creator><description>&lt;p&gt;@obsidience:&lt;/p&gt;
&lt;p&gt;Your &amp;quot;zones&amp;quot; proposal does sound like a good idea, but I think it is probably bad both in theory and in practice.&lt;/p&gt;
&lt;p&gt;In theory, it falls foul of a few principles:&lt;/p&gt;
&lt;p&gt;1. Code optimization is an empirical science. You have not measured the cost of not using the zone system. Of course, this is overcome with a fair bit of work. But as far as we know, your proposal may not deliver much in the way of savings, but will create a number of complications.&lt;/p&gt;
&lt;p&gt;2. If you don't want a radical redesign of either the filesystem or the Windows API, you will need to have the defragmenter make assumptions about the semantic content of the files. This is all kinds of bad. First of all, it will probably be wrong. Even if you get it right, it will become wrong with changes to the API. This sort of thing was the number 1 cause of bugs in earlier Windows OSes and their applications. See Raymond Chen's 'The Old New Thing' blog for various rants. It used to be a little more acceptable, because without those optimizations Windows would have run so slowly as to be unusable, but today it is Really Wrong.&lt;/p&gt;
&lt;p&gt;3. Radically changing the API to optimize a single application is probably not a great idea. It passes on the (economic, not clock) cost to other developers.&lt;/p&gt;
&lt;p&gt;4. Radically changing the filesystem to optimize a single application is also probably not a great idea. You are liable to break third party tools, windows tools, etc. that will corrupt the filesystem if they are allowed to run.&lt;/p&gt;
&lt;p&gt;In practice:&lt;/p&gt;
&lt;p&gt;Much of the stuff that belongs in the different zones resides in a single file. You usually store resources like icons within your executable file.&lt;/p&gt;
&lt;p&gt;1. If you do decide to change the API, so that applications have to store their icons separately from their executable, and that sort of thing, many existing applications will not do this. You cannot just break all these applications, or you will get &amp;quot;Windows 8 is broken&amp;quot; from users, so you will need to keep the old 'deprecated' functions. There is absolutely no benefit to the developer of using the 'new and improved' interface, since from their perspective their is no improvement, so they will continue to use the deprecated functions. Even if it does start getting used, it will take 5+ years for the majority of applications to start using it. By that time, NTFS may be replaced, hard drives will have mostly become SSD, etc.&lt;/p&gt;
&lt;p&gt;2. If you change the filesystem, say to add predefined tags, so that the filesystem knows which zone a file belongs in, the same argument holds. Also, you are liable to make the filesystem unreadable by earlier versions of Windows, third party tools, etc. You will also need to ensure that the OS is backwards compatible with the old filesystem: Samba will take a while to incorporate this as best it can, but if you don't do this you will break any number of file servers. People will not say &amp;quot;Oh. Samba is broken. It doesn't follow the new NTFS filesystem properly.&amp;quot; They will say &amp;quot;Windows 8 is fscked. Don't let it near a corporate network.&amp;quot;&lt;/p&gt;
&lt;p&gt;3. If you avoid making these two changes, apart from the theoretical problem, you still need to face the problem of embedded resources. Should you split the file into two zones? This will slow down copying and writing the file. Or should you cache a copy of the resource in the correct zone. Caching is a useful tool, but apart from the space cost, it runs the danger of becoming dirty, eg. when your application crashes. Usually you can avoid this by cleaning the cache when your application starts. We are talking about an operating system, though. &amp;quot;When the application starts&amp;quot; means when the OS boots up. The cache would then actually serve to slow down the boot sequence. If you don't do this, you *will* get a dirty cache when you have a power failure, etc. But let's put that aside. The system will need to look in your home directory to see what's on the desktop and what's in your start menu. It will then need to see what resources the applications have, presumably by reading them. Then it will go to the cache to load the resource, rather than just getting it from the file.&lt;/p&gt;
&lt;p&gt;I cannot see any obvious benefits here. What you can do, and this is what many other OSes do by default, is put the system and applications in one partition and the data in another. You can do this yourself. Just mount a data partition to the home directory. Obviously it's not a total solution because you probably have a bunch of applications sitting in your desktop or in your &amp;quot;Documents&amp;quot; folder within your home directory, but it may go some way towards your &amp;quot;zone&amp;quot; system.&lt;/p&gt;
</description></item><item><title>No more disk map and other features that never came</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9857847</link><pubDate>Wed, 05 Aug 2009 11:32:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9857847</guid><dc:creator>stewartjazmin</dc:creator><description>&lt;p&gt;One thing I was expecting from XP and forward is that I could get a better disk map, extended, showing the files or group of files on each &amp;quot;cluster&amp;quot; or &amp;quot;square&amp;quot; at that zoom level. That tells me where each file is.&lt;/p&gt;
&lt;p&gt;Instead of that, and even when they say they've listened -&amp;quot;In Windows Vista, we had removed all of the UI that would provide detailed defragmentation status. We received feedback that you didn’t like this decision, so we listened, evaluated the various tradeoffs, and have built a new GUI for defrag!&amp;quot;&lt;/p&gt;
&lt;p&gt;Say, a new one, with no info! (even not XP disk map)&lt;/p&gt;
&lt;p&gt;I remember (where you took your defrag from) Norton, getting more and more intelligent and user configurable.&lt;/p&gt;
&lt;p&gt;Automatic and user-defined features it supported.&lt;/p&gt;
&lt;p&gt;Placing files according filter conditions at the beggining/end/middle of the drive.&lt;/p&gt;
&lt;p&gt;This meant I could move the fixed size pagefile to the end, the boot files to the beggining (at that time there were no software updates), and the rest in the middle of the disk.&lt;/p&gt;
&lt;p&gt;A complete disk map&lt;/p&gt;
&lt;p&gt;A set of other feature I don't recall right now. But that was the Norton Utilities, before it was Symantec.&lt;/p&gt;
</description></item><item><title>SSD Natural Fragmentation</title><link>http://blogs.msdn.com/e7/archive/2009/01/25/disk-defragmentation-background-and-engineering-the-windows-7-improvements.aspx#9857852</link><pubDate>Wed, 05 Aug 2009 11:40:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9857852</guid><dc:creator>stewartjazmin</dc:creator><description>&lt;p&gt;SSDs have internal &amp;quot;wear-balancing&amp;quot; software that will intend to use ALL the cells in the drive the same amount of times. That means, you modify an existing file, and it will save the new blocks into a different place of a chip or in a different chip intentionally. No matter what the file system thinks where the file is really located.&lt;/p&gt;
&lt;p&gt;So, even if you defrag them, or use a tool to image the drive and restore it (some of them restore the files in a contiguous fashion) it will fragment big time internally.&lt;/p&gt;
</description></item></channel></rss>