Windows 10: Why is Windows defragging my SSD?

Discus and support Why is Windows defragging my SSD? in Windows 10 Performance & Maintenance to solve the problem; Hi, Sorry but that is a load of crap by people that have not a single clue about how SSD controllers work. That said, some companies... Discussion in 'Windows 10 Performance & Maintenance' started by bumboola, Mar 23, 2017.

  1. swarfega Win User

    Why is Windows defragging my SSD?


    Sorry but I would have to agree with @CountMike on this. Its dangerous to defrag an SSD and I've experienced that first hand. When I got my very first SSD back in the day, I defragmented it ONCE and it stopped functioning so I had to return it for a replacement.
     
    swarfega, Mar 26, 2017
    #16

  2. Eventhough SSD is here for years, drivers, software and even Windows can fail to manage it properly.

    To disable automatic defrag + preferably the whole maintenance (useless anyway):

    schtasks /Change /TN "Microsoft\Windows\Defrag\ScheduledDefrag" /Disable
    reg add "HKLM\Software\Microsoft\Dfrg\BootOptimizeFunction" /v "Enable" /t REG_SZ /d "n" /f
    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance" /v "MaintenanceDisabled" /t REG_DWORD /d "1" /f
     
    TairikuOkami, Mar 26, 2017
    #17
  3. fdegrove Win User
    Hi,

    I'm not saying any different but dangerous ? Not nowadays.
    Thing is, it's totally pointless.

    Most modern SSD controllers take care of things all by themselves anyhow.

    Cheers, *Wink
     
    fdegrove, Mar 26, 2017
    #18
  4. anonjwm Win User

    Why is Windows defragging my SSD?

    You can check if your trim is enabled in the command prompt
     
    anonjwm, Mar 28, 2017
    #19
  5. WOT
    WOT Win User
  6. bumboola Win User
    Happened again today. Event Viewer shows " the storage optimizer successfully completed defragmentation on Window C:" and also the same message with WinRE_DRV. Trim is enabled and it "optimized" the drive either right before or right after the defrag.

    Hard to believe that nobody here can answer why it is doing this or what exactly it is doing. Please don't post another link to the Scott Hanselman blog, I'm not convinced he has any idea what he is talking about. *Rolleyes

    Why has Microsoft purposely evaded answering this question ever since Windows 8 was released? All we get is a blog post?
     
    bumboola, Apr 20, 2017
    #21
  7. Mystere Win User
    Why would someone posting on a forum convince you when someone who literally works for Microsoft (Scott Hanselman) who has talked to the Windows developers who maintain the defrag utility doesn't convince you?

    Evaded? Please explain how they have evaded anything.
     
    Mystere, Apr 20, 2017
    #22
  8. bumboola Win User

    Why is Windows defragging my SSD?

    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?
     
    bumboola, Apr 20, 2017
    #23
  9. Brink
    Brink New Member
    Hello @bumboola, *Smile

    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
     
    Brink, Apr 20, 2017
    #24
  10. bumboola Win User
    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.
     
    bumboola, Apr 21, 2017
    #25
  11. CountMike New Member
    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? [​IMG]
     
    CountMike, Apr 21, 2017
    #26
  12. prikker Win User
    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.
     
    prikker, Apr 21, 2017
    #27
  13. CountMike New Member

    Why is Windows defragging my SSD?

    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.
     
    CountMike, Apr 21, 2017
    #28
  14. cereberus Win User
    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.
     
    cereberus, Apr 21, 2017
    #29
  15. swarfega Win User
    You're more likely to upgrade your computer in that time.
     
    swarfega, Apr 21, 2017
    #30
Thema:

Why is Windows defragging my SSD?

Loading...
  1. Why is Windows defragging my SSD? - Similar Threads - Why defragging SSD

  2. SSD Defrag

    in Windows 10 Gaming
    SSD Defrag: Everything I've read says don't defrag an SSD, yet looking at the Windows Defrag app it's telling me "never run.. needs optimisation".Is this just another Microsoft ****-up? https://answers.microsoft.com/en-us/windows/forum/all/ssd-defrag/07874af0-c965-4e5d-987b-f5358909fb57
  3. SSD Defrag

    in Windows 10 Software and Apps
    SSD Defrag: Everything I've read says don't defrag an SSD, yet looking at the Windows Defrag app it's telling me "never run.. needs optimisation".Is this just another Microsoft ****-up? https://answers.microsoft.com/en-us/windows/forum/all/ssd-defrag/07874af0-c965-4e5d-987b-f5358909fb57
  4. Defrag a SSD

    in Windows 10 Gaming
    Defrag a SSD: I have been told by Norton it is safe to use the defrag tool that is built into Windows even on a SSD. I was very worried about it because I have damaged a SSD before by defragmenting it. I used a third party tool then though. Has Norton lied to me about this. I had paid for...
  5. Defrag a SSD

    in Windows 10 Software and Apps
    Defrag a SSD: I have been told by Norton it is safe to use the defrag tool that is built into Windows even on a SSD. I was very worried about it because I have damaged a SSD before by defragmenting it. I used a third party tool then though. Has Norton lied to me about this. I had paid for...
  6. Defrag SSD

    in Windows 10 Performance & Maintenance
    Defrag SSD: I have read defragging a SSD (Solid State drive) can greatly shorten its life so i have turned off scheduled maintenance for C & D discs however it seems to turn itself back on again over time (i am not sure when) is there a way of uninstalling windows 10 defrag or a...
  7. Windows 10 Auto DEFRAG my SSD

    in Windows 10 Drivers and Hardware
    Windows 10 Auto DEFRAG my SSD: Hi There I got a new SSD (Samsung 860 evo 500 gb) and I know that defragging an SSD is the worst thing to do.... I opened Samsung Magician and I clicked on optimize , it opened the windows defragger window. ( I DID NOT RUN IT ) I noticed that , IT HAD AUTOMATIC...
  8. Defragmenting SSD

    in Windows 10 BSOD Crashes and Debugging
    Defragmenting SSD: Hello everyone! Should I use the Windows 10 built-in Disk Defragmentation to defragment my SSD? Some internet sources suggest that SSDs should never be defragmented. https://answers.microsoft.com/en-us/windows/forum/all/defragmenting-ssd/a3aac7a1-64d5-4c2d-a1eb-7b62401e340d
  9. To defrag or not to defrag? (non-SSD)

    in Windows 10 Performance & Maintenance
    To defrag or not to defrag? (non-SSD): My secondary drive in my system is a 2TB standard hard drive. Windows 10 defrag (both UI and the command line) tells me that I do not need to defrag the disk, as it is "0% fragmented" but upon delving a little further (adding the /V switch) I notice that it doesn't include...
  10. Should SSD's be defragmented

    in Windows 10 Drivers and Hardware
    Should SSD's be defragmented: Here's a question that hasn't been asked before I'm sure. Should an SSD be defragmented. Seriously, I know there are a multitude of opinions on this but was wondering what the experts on this forum would suggest. 52802