Why is Windows defragging my SSD?

Page 3 of 5 FirstFirst 12345 LastLast

  1. Posts : 87
    Windows 10 Home 64-bit 1809
    Thread Starter
       #21

    Evade: Avoid giving a direct answer to (a question).

    I have gone over dozens of threads at Microsoft Community and TechNet and not one poster has received an answer to a question similar to this one from Microsoft. Many simply stated that Windows does not defrag SSDs period, which included Scott Hanselman until he changed his tune a couple of years ago. This was the official line from Microsoft. The vast majority never received any answers from Microsoft employees who simply ignored the questions.

    He (Hanselman) stated in his blog that SSDs get "intelligently" defragmented but gives no explanation of that. In the comments he stated "Certainly it doesn't Defrag them the same way" but gives no explanation of that. Again later in the comments he stated "I didn't mean to imply an SSD-special defrag." So why did he imply that in the first place?

    If Microsoft wasn't evading the question they would have gone much further and posted an article explaining this to the vast amount of people who asked and are still asking this very question. They have never bothered and likely never will.

    The reason I'd like someone here to answer this question is that with the amount of knowledge and experience that many of the posters here have with Windows who would know better?
    Last edited by bumboola; 21 Apr 2017 at 01:51.
      My Computer


  2. Posts : 68,921
    64-bit Windows 11 Pro for Workstations
       #22

    Hello @bumboola, :)

    Usually, Windows 10 will TRIM a SSD if TRIM support is enabled.

    TRIM support is enabled by default in Windows 10, but you might verify using the method in the tutorial below to rule that out as a possible reason why defrag instead of TRIM is being used on the SSD.

    Enable or Disable TRIM Support for Solid State Drives in Windows 10 - Windows 10 Hardware Drivers Tutorials

    If you like as a test, try the PowerShell command in step 4 of Option Three below to see if shows the SSD as being Trimmed in PowerShell.

    Optimize and Defrag Drives in Windows 10 - Windows 10 Performance Maintenance Tutorials
      My Computers


  3. Posts : 87
    Windows 10 Home 64-bit 1809
    Thread Starter
       #23

    Hi Shawn, yes trim is enabled and I checked it previously with the command prompt to make sure. The defragmentation is 100% being performed (System Restore is enabled) and it shows up in the Event Viewer as "The storage optimizer successfully completed defragmentation on Windows (C: ) and "The storage optimizer successfully completed defragmentation on WINRE_DRV." These events are preceded with a "The storage optimizer successfully completed retrim on Windows (C: ) event. All three are listed as Event ID 258 and Task Category is listed as none.

    What I am looking for is an explanation of what and how it is performing the defragmentation. If it only used the standard defrag tool in Windows how would it have any idea what to do with a SSD? I initially thought it was only dealing with the System Restore/Volsnap files but it is defragging the recovery portion of the drive as well which I don't believe contain any Volsnap files. It appears to be a full defragmentation judging by the time it took (several minutes) and that the Indicator light for the drive was solid green, so I knew what exactly was happening. It's never solid green for anything else including updates, even the Creators Update.

    My only beef with the Hanselman blog (I'm sure he's a very intelligent guy) is what I posted above, that he stated that the SSD will get intelligently defragmented, gives no explanation of what that means and then kept walking it back in response to people asking him what exactly that meant. Microsoft has never (to my knowledge) explained this at all and should have put out a KB or some official documentation on what is going on here. Ever since Windows 8 came out they just kept saying that Windows does not perform defragmentation on SSD drives when a lot of people complained that it was indeed doing just that. This was the official line and the Hanselman blog was the sole place that later stated anything differently. Before that his line was that Windows doesn't defrag SSDs period. Obviously he talked to someone in storage that was a lot more intelligent (or less evasive) than the first one that told him that it doesn't.

    The least they could do is put out something official that fully explains the process and I'm sure most users of Windows with SSD drives would like to know and appreciate that as well.
      My Computer


  4. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #24

    I'm not sure any optimization/defragmenting is needed with any disks/partitions with a letter even with HDDs.
    Why is Windows defragging my SSD?-image.png
      My Computers


  5. Posts : 382
    Windows 10 Home
       #25

    As I understood it correctly, it does not defrag the SSD, but optimizing it:

    There are some important optimizations, but Windows performs them all automatically. If you used an SSD with Windows XP or Vista, you needed to manually enable TRIM, which ensures your SSD can clean up deleted files and stay speedy. However, ever since Windows 7, Windows has automatically enabled TRIM for any drive it detects as solid-state.
      My Computer


  6. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #26

    prikker said:
    As I understood it correctly, it does not defrag the SSD, but optimizing it:

    There are some important optimizations, but Windows performs them all automatically. If you used an SSD with Windows XP or Vista, you needed to manually enable TRIM, which ensures your SSD can clean up deleted files and stay speedy. However, ever since Windows 7, Windows has automatically enabled TRIM for any drive it detects as solid-state.
    There's also Garbage Collection that makes cells with deleted data (data never actually get deleted from SSDs until than) available for normal writing. Leaving SSD on overnight or some longer time every now and than (doesn't even have to be booted to OS) is enough although it does happen in very short time.
      My Computers


  7. Posts : 15,484
    Windows10
       #27

    That Scott H blog is disengenous. In order to get the issues he was talking about, you have to do an astronomical amount of file writing - far beyond the average or even way above average user. In the real world IT NEVER HAPPENS.

    Simple terms: You do not need to defrag an SSD only trim it - end of story.
      My Computer


  8. Posts : 7,254
    Windows 10 Pro 64-bit
       #28

    You're more likely to upgrade your computer in that time.
      My Computers


  9. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #29

    swarfega said:
    You're more likely to upgrade your computer in that time.
    Right, one of my SSDs is on third and other one on it's second computer.
      My Computers


  10. Posts : 18,432
    Windows 11 Pro
       #30

    CountMike said:
    Right, one of my SSDs is on third and other one on it's second computer.
    Do they have "dashboard" programs that tell what percentage of life is left on them?

    Why is Windows defragging my SSD?-capture.jpg
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:04.
Find Us




Windows 10 Forums