Disk defragmenter running even though it's disabled


  1. Posts : 426
    Windows 10 64-bit Ver 1909, OS build 18363.535
       #1

    Disk defragmenter running even though it's disabled


    I just caught disk defragmenter running when I didn't want it to. Windows seems to love running things without my permission. I just doubled-checked the settings under "defragment and optimize drives" and it is off for all drives:

    Drives are not being optimized automatically

    Also under task scheduler, defrag is disabled.

    Yet when my drive stared grinding away all of a sudden I checked task manager and this was running:

    service host: disk defragmenter
    optimize drives


    Which stopped running shortly after I opened task manager.

    So why is this running if it's disabled?
      My Computer


  2. Posts : 426
    Windows 10 64-bit Ver 1909, OS build 18363.535
    Thread Starter
       #2

    And it just started running again while it was in idle. Why?!

    I just went into services and checked the "optimize drives" setting and it was set to manual and it was running. I stopped the service and set it to disabled. I'll see how that works. I'll have to remember to set it back to manual when I want to defragment the drives.

    But I'd love to know what is triggering it to run if it's set to manual and it's disabled under the "defragment and optimize drives" setting. Something is triggering it and it shouldn't be running.

    Behavior like this is why people hate Windows. Set it to disabled, it runs anyways when it wants to.
      My Computer


  3. Posts : 18,432
    Windows 11 Pro
       #3

    A small amount of disk defrag must run periodically in order to keep the NTFS file system itself from crashing. Windows will even defrag on SSDs every now and then to keep the file system from crashing. It's only defragging the file table, though, not the entire drive.
      My Computer

  4.   My Computer


  5. Posts : 6,839
    22H2 64 Bit Pro
       #5

    Windows Does Defragment SSDs, But It's Okay

    You can just post the URL by linking.
      My Computer


  6. Posts : 373
    Windows 10 Home 21H2
       #6

    Callender said:
    You can just post the URL by linking.

    I think it depends on which hemisphere you're in.

    I tried two methods:

    - Post the URL directly into the reply box. Before I could click "Submit Reply", the box filled with lines and the timer spinner continued for minutes.

    - Post 3 separate bits. As soon as I joined them up, the same thing happened.

    Honest.
      My Computer


  7. Posts : 6,839
    22H2 64 Bit Pro
       #7

    Copy & Paste (or type) some text then highlight it using the mouse.

    Then use the link button and enter the URL.

    Disk defragmenter running even though it's disabled-hyperlink.jpg
      My Computer


  8. Posts : 426
    Windows 10 64-bit Ver 1909, OS build 18363.535
    Thread Starter
       #8

    NavyLCDR said:
    A small amount of disk defrag must run periodically in order to keep the NTFS file system itself from crashing. Windows will even defrag on SSDs every now and then to keep the file system from crashing. It's only defragging the file table, though, not the entire drive.
    Well I use a mechanical drive, not SSD.

    I did set it to disabled under services and it's much better. So does this mean the file system could become unstable just because it's not defragging automatically? I mean, why does it have to defrag so often? It always seems to kick in if it's left alone for a few minutes.
      My Computer


  9. Posts : 18,432
    Windows 11 Pro
       #9

    rivre said:
    Well I use a mechanical drive, not SSD.

    I did set it to disabled under services and it's much better. So does this mean the file system could become unstable just because it's not defragging automatically? I mean, why does it have to defrag so often? It always seems to kick in if it's left alone for a few minutes.
    The reason why Windows MUST defrag an SSD is the same reason why it also MUST defrag an HDD:
    "Actually Scott and Vadim are both wrong. Storage Optimizer will defrag an SSD once a month if volume snapshots are enabled. This is by design and necessary due to slow volsnap copy on write performance on fragmented SSD volumes. It’s also somewhat of a misconception that fragmentation is not a problem on SSDs. If an SSD gets too fragmented you can hit maximum file fragmentation (when the metadata can’t represent any more file fragments) which will result in errors when you try to write/extend a file. Furthermore, more file fragments means more metadata to process while reading/writing a file, which can lead to slower performance."

    The same statement is true for HDDs. It has to do with the metadata keeping up with all the file fragments, rather than putting together the actual file fragments. I believe if you want to stop the defrag process altogether you have to turn off the Volume Shadow Copy service.
      My Computer


  10. Posts : 426
    Windows 10 64-bit Ver 1909, OS build 18363.535
    Thread Starter
       #10

    Okay, so then the question is, if I leave it disabled under services, will it still run when it needs to? Because so far it has not run again since I set it to disabled under services.

    If I keep it disabled, can't I just set it to manual like it was previously, or run a defrag manually, when it's convenient for me, rather than always leaving it on manual and it running at the worst most inconvenient times?
      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 05:47.
Find Us




Windows 10 Forums