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; 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. Discussion in 'Windows 10 Performance & Maintenance' started by bumboola, Mar 23, 2017.

  1. CountMike New Member

    Why is Windows defragging my SSD?


    Right, one of my SSDs is on third and other one on it's second computer.
     
    CountMike, Apr 21, 2017
    #31
  2. NavyLCDR New Member

    Do they have "dashboard" programs that tell what percentage of life is left on them?


    Why is Windows defragging my SSD? [​IMG]
     
    NavyLCDR, Apr 21, 2017
    #32
  3. swarfega Win User
    I still have 2 SSDs from 2013.
     
    swarfega, Apr 21, 2017
    #33
  4. CountMike New Member

    Why is Windows defragging my SSD?

    No, but I use SSD-Z for that:

    Why is Windows defragging my SSD? [​IMG]


    Why is Windows defragging my SSD? [​IMG]
     
    CountMike, Apr 21, 2017
    #34
  5. swarfega Win User
    Wow theres a "z" program for all aspects now! I knew of cpu-z and gpu-z but not ssd-z!
     
    swarfega, Apr 21, 2017
    #35
  6. Doesn't seem to like my Nvme though.....


    Why is Windows defragging my SSD? [​IMG]


    Why is Windows defragging my SSD? [​IMG]
     
    indianacarnie, Apr 21, 2017
    #36
  7. cereberus Win User
    hi
    Crystaldiskinfo tells you this.
     
    cereberus, Apr 21, 2017
    #37
  8. CountMike New Member

    Why is Windows defragging my SSD?

    Have that too:

    Why is Windows defragging my SSD? [​IMG]



    Why is Windows defragging my SSD? [​IMG]
     
    CountMike, Apr 21, 2017
    #38
  9. Brink
    Brink New Member
    @bumboola,

    Just to verify, could you post a screenshot showing PowerShell after running the command like below?

    I'm thinking the word "defragmentation" in the report may just be a generic term used. Especially with "The storage optimizer successfully completed retrim on Windows (C: )" in your event log.

    If your PowerShell includes "retrim" and "trimmed" like mine below, then the SSD is indeed being trimmed instead of defragged.

    *Arrow Optimize-Volume -DriveLetter C -Verbose



    Why is Windows defragging my SSD? [​IMG]
     
    Brink, Apr 21, 2017
    #39
  10. bumboola Win User
    Ok Shawn, looks just like the screenshot you posted.

    Problem is, I'm not convinced. This was about a three second procedure with hardly any drive activity, when it is defragmenting it takes at least 5 minutes and the drive indicator is lit solid green. According to what I have read the optimizer will trim the drive weekly (what I have set it at) and once a month will defragment the drive. Since it just happened a couple of days ago it will not defragment now. I think this is borne out by the Event Viewer, first a retrim then a defragmentation of drive C and third a defragmentation of the recovery drive. This is well explained in Vadim Sterkin's blog: Why Windows 10, 8.1 and 8 defragment your SSD and how you can avoid this – Вадим Стеркин

    It IS performing a defragmentation once a month and will do so once a month as long as system restore is enabled. Since I'm not willing to disable this it is something I'm going to have to live with. I would still love to know what kind of method Windows is using to defragment it, or a step by step method to prevent it without affecting anything else.
     
    bumboola, Apr 22, 2017
    #40
  11. fdegrove Win User
    Hi,

    Much ado about nothing really.
    It (defrag) isn't defragmenting the files in the same way a HDD (AKA spinner) is. It is in fact just optimizing the file system as there's a limit to the amount of fragmented files it can support.
    Why it wants to do this while System Restore is active is a mystery to me as this is just a pretty static shadow copy of the system at a certain point in time.

    If you'd analyse the actual command line parameters to invoke it then you'll notice the /O parameters which is the same as Optimize for SSD in a GUI interface.

    The whole issue would not arise if only MS and associates would clearly distinguish the words Defragmentation and Optimization. Unfortunately they don't and everyone's as confused as a barking bird....

    Whilst you can arrange files on an SDD so there's no fragmentation, there's actually little point in doing so due to the lack of moving heads to read the files. Latency on an SSD is extremely low.

    As Doogie mentioned before, it might be a different story if you'd be running PetaByte sized datacenter stuff writing tons of data a second.
    But even then most of this is managed by the drives's controllers.

    If you're really worried about this then run some cacheing software that will prevent fragmenation in the first place. It's effective and fast as it uses DRAM as a cache.

    On a home system ? I wouldn't worry about it.

    Cheers, *Wink
     
    fdegrove, Apr 22, 2017
    #41
  12. Mystere Win User
    There's a relatively good article here. The author works for an SSD manufacturer, so they should have a pretty good idea of what is going on:

    To Defrag or Not to DefragThat Is the Question for SSD | RTC Magazine

    It discusses how SSD's still suffer from some fragmentation performance hits. Particularly, it goes into details about how the more fragments there are, the more the OS must process the files to deal with them (irrespective of the physical disk slowness)

    Windows does a certain amount of SSD defragmentation, from what I understand this is mostly oriented around the File System itself, system structures, folder structures, and MFT (Master File Table), but not the actual files themselves.
     
    Mystere, Apr 22, 2017
    #42
  13. fdegrove Win User

    Why is Windows defragging my SSD?

    Hi,

    From what I've been told through various courses there's a limit to the maximum number of file fragments within the MFT and that's what the OS does keep track of. It does not need or does take care of other fragmented files on an SSD. This a build in OS limitation.
    In practice all works fine and as said before, if you want industrial level tools to prevent fragmentation then by all means do so.
    That being said, most current SSDs have contoller hardware that takes care of everything the drive needs to keep it into top shape.

    Cheers, *Wink
     
    fdegrove, Apr 4, 2018
    #43
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