Windows 2022 Disk Defrag Freezing System
-
Nearly new, very vanilla, Windows Server 2022 system with a recurring freezing issue. The system would drop network connections and even the console was unresponsive. Been troubleshooting for the last few weeks.
Finally had a chance to be on the console at the time that the freeze happened and it was super sluggish, but not entirely frozen. We managed to get Task Manager open and were able to see that the Disk Defragmenter taking all available RAM and slamming the disks.
My default in Windows Server 2022, disk defrag is set to run every week. This likely makes little sense if you have SSD, NVMe, or are virtualized. We disabled that and stopped the current run and things returned to normal. All is well now from what we can tell.
-
This is the netdata load report from the underlying system...
-
@scottalanmiller said in Windows 2022 Disk Defrag Freezing System:
Nearly new, very vanilla, Windows Server 2022 system with a recurring freezing issue. The system would drop network connections and even the console was unresponsive. Been troubleshooting for the last few weeks.
Finally had a chance to be on the console at the time that the freeze happened and it was super sluggish, but not entirely frozen. We managed to get Task Manager open and were able to see that the Disk Defragmenter taking all available RAM and slamming the disks.
My default in Windows Server 2022, disk defrag is set to run every week. This likely makes little sense if you have SSD, NVMe, or are virtualized. We disabled that and stopped the current run and things returned to normal. All is well now from what we can tell.
You should never Defrag SSDs except for very specific reasons.
Id run a SSD health check on the SSDs themself to see if there are any issues.
-
sounds like a bug
-
@Obsolesce said in Windows 2022 Disk Defrag Freezing System:
You should never Defrag SSDs except for very specific reasons.
Which is why it is surprising that in the SSD era, Windows 2022 has it on by default.
-
@scottalanmiller said in Windows 2022 Disk Defrag Freezing System:
@Obsolesce said in Windows 2022 Disk Defrag Freezing System:
You should never Defrag SSDs except for very specific reasons.
Which is why it is surprising that in the SSD era, Windows 2022 has it on by default.
Has Microsoft changed how they handle TRIM yet? I know years ago they only ran TRIM when defrag was run. Why? Because Microsoft is still that bad at managing storage.