Windows 10 2004 optimization/defrag bug

Anonymous
2020-05-29T10:31:40+00:00

Hi all

I've just completed the Windows 10 2004 upgrade and I have noticed 2 issues.

  1. When I manually trim my SSD in the drive defrag/optimize tool in windows and I reboot it says 'never optimized' when i go back. I heard this was a bug in insider preview which they obviously didn't fix. 
  2. I happened to have the defrag/optimize tool open at the same time as Control Panel\All Control Panel Items\Security and Maintenance, I initiated a manual maintenance and I caught windows defragging my SSD and then it trimmed it straight afterwards. If i click the optimize button in defrag/optimize tool it only trims it and not defrag.

This seem to only happen when Control Panel\All Control Panel Items\Security and Maintenance initiates its automatic maintenance or if I select start maintenance.

This is concerning as it should never attempt to defrag an SSD.

My laptop is only a few months old and came with a PCIe SSD and Windows 10 1909 so there is no compatibility or lack of trim support issues obviously.

I have disabled scheduled weekly optimizations in the defrag/optimize tool which prevents it from attempting to defrag when the control penal maintenance attempts its maintenance when the computer is idle.

I want to let everyone know that this is happening so others are aware. My other computers that have the latest update are also doing it.

Windows for home | Windows 10 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

171 answers

Sort by: Oldest
  1. Anonymous
    2020-06-09T12:11:58+00:00

    I have never had this issue before build 2004, I'm on the insiders list but staying on retail builds. I've also not seen that using "dfrgui" the defrag window is actually trying to defragment the SSD. When I use manually use "optimize" it says "n% trimmed" but the status is not kept, right after that when leaving and restarting dfrgui it says "needs optimization". 

    I got build 19041.264 installed on April 17th ... I mentioned this problem (and a few others) in the feedback hub, without getting feedback :-) 

    I'm only seeing this issue if I go to Control Panel>Security and Maintenance and run the maintenance manually.

    If you run the maintenance Control Panel>Security and Maintenance while also having the Optimize drives (defrag/optimize drives) open you will see it defrag then trim right in front of you.

    You will only see it of you have both open at same time and do manual maintenance via Control Panel>Security and Maintenance. You will catch Windows doing it. Open Control Panel>Security and Maintenance and Optimize drives side by side and run manual maintenance (Control Panel>Security and Maintenance) and you will see it defrag briefly and then trim.

    If you just open 'Optimize drives' only and select optimize then it will just trim it only. 

    You are actually saying that "defrag" on an SSD takes less time than a trim operation? 

    Edit: Indeed when passing through "Security & Maintenance" it is doing a full defrag operation but it is anything but a brief message, it it going through the "full-all passes procedure" ... weird and worrying

    The first time you see this defrag issue it can go for about minute or 2, anytime after that it is very brief and as you say less or equal to a trim time.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-06-09T16:10:19+00:00

    I have never had this issue before build 2004, I'm on the insiders list but staying on retail builds. I've also not seen that using "dfrgui" the defrag window is actually trying to defragment the SSD. When I use manually use "optimize" it says "n% trimmed" but the status is not kept, right after that when leaving and restarting dfrgui it says "needs optimization". 

    I got build 19041.264 installed on April 17th ... I mentioned this problem (and a few others) in the feedback hub, without getting feedback :-) 

    I already mentioned it via the feedback hub,  but Microsoft didn't reply either.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2020-06-09T16:45:23+00:00

    So it only does it if I go to maintenance in control panel>security & maintenance and perform a manual maintenance? If I leave windows to do it's own thing it doesn't defrag in error?

    I'll leave disk optimizer set to its weekly default setting and simply 'do not' do a manual maintenance? When windows does it's auto maintenance

    It doesn't do the defrag error?

    we can tell when Windows has done an auto maintenance as it shows up in control panel>security & maintenance.

    All I know is that when you check  disk optimizer, it wil say that your  SSD has never been optimized and that it needs  to be optimized. If you do this, it will trim the SSD, as it is supposed to to. The problem is that it then 'forgets' that it has optimized the SSD. The next time you start your computer, it will say that the SSD has never been optimized and that it needs optimization. 

    If you do a manual maintenance (via control panel, security and maintenance), then Windows starts defragging the SSD, which it is not supposed to do and then, again, forgets that it has done so the next time you start your computer. I know, it sounds weird...

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2020-06-09T22:00:40+00:00

    So it only does it if I go to maintenance in control panel>security & maintenance and perform a manual maintenance? If I leave windows to do it's own thing it doesn't defrag in error?

    I'll leave disk optimizer set to its weekly default setting and simply 'do not' do a manual maintenance? When windows does it's auto maintenance

    It doesn't do the defrag error?

    we can tell when Windows has done an auto maintenance as it shows up in control panel>security & maintenance.

    All I know is that when you check  disk optimizer, it wil say that your  SSD has never been optimized and that it needs  to be optimized. If you do this, it will trim the SSD, as it is supposed to to. The problem is that it then 'forgets' that it has optimized the SSD. The next time you start your computer, it will say that the SSD has never been optimized and that it needs optimization. 

    If you do a manual maintenance (via control panel, security and maintenance), then Windows starts defragging the SSD, which it is not supposed to do and then, again, forgets that it has done so the next time you start your computer. I know, it sounds weird...  

    I’m glad that someone else can see what I am talking about. 

    You’ve described perfectly.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2020-06-11T11:05:21+00:00

    A mi me pasa lo mismo en la versión 2004. Parece ser algo generalizado, hay que esperar que lo solucionen.

    No pasará nada mientras no desfragmenten manualmente. Dejen todo como está sin tocar nada xD

    Was this answer helpful?

    0 comments No comments