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: Most helpful
  1. Anonymous
    2020-08-12T13:42:57+00:00

    Only windows system restore snapshots only should get defragged but drive optimization triggered by maintenance task or schedule defrags whole SSD for almos an hour.

    Yep I've noticed that too. I disabled automatic drive optimisation on all my PC and I just run a manual trim once a week or so.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-08-02T09:32:56+00:00

    You're wrong. Windows performs defragmentation once every 30 days if volume snapshots are enabled[1]. This is where the fault is because with the default schedule this process is done every 7 days. As a workaround, you can either change the schedule to monthly or turn off completely System Restore, which should theoretically make SSD defragmentation unnecessary.

    1. https://www.hanselman.com/blog/TheRealAndCompleteStoryDoesWindowsDefragmentYourSSD.aspx

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-08-01T21:37:43+00:00

    As far as I can see, the system at present is not only forgetting when it last optimized the drives, it's also misidentifying them when it comes to automatically optimizing them, even though they appear to be identified correctly in the list of drives.

    That's why it's trying to TRIM conventional HDDs, which isn't possible, and throwing error messages into the event log as a result.

    The opposite scenario, trying to defragment SSDs, is unfortunately very possible, and it could well be doing this, which is not good!

    I fear that the automatic optimization and the manual optimization are behaving differently, and the manual option is behaving correctly, the automatic isn't.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2020-07-16T06:51:37+00:00

    Sorry I don't know, I don't have an SSD on my laptop, but a Hitachi 320 GB HDD storage. I'm going to take a nap first, don't disturb me.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2020-07-16T04:18:17+00:00

    Windows defrags ssds once a month ....with the new technology of ssds ....defragging once a month does nothing but keep the life of the ssd. Please do some research on ssds and windows. The only bug is that windows defrag wont retain the defrag history. You should set  auto defrag to once a month is you have an ssd. Manual maintenance is in case of need to.

    According to Scott Hanselman of Microsoft, Windows 7 and later do defragment a solid-state disk (SSD) but in a completely different way. There is less incentive for defragmentation of SSDs because file fragmentation has less performance impact on them and they handle a finite number of storage cycles before their lifespan expires. However, file systems cannot support infinite file fragmentation as they reach their metadata limit. In addition, Microsoft Drive Optimizer is also responsible for performing the TRIM command on SSDs.

    ^Reference:****Microsoft Drive Optimizer | Wikipedia & The real and complete story - Does Windows defragment your SSD?^

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments