[DISCUSSION] Windows Disk Defragmenter, SSD, and TRIM

Discussion in 'PC Hardware' started by gjohnson5, Dec 29, 2022.

  1. gjohnson5

    gjohnson5 MDL Member

    Jul 25, 2013
    132
    54
    10
    I had the disk defragmenter turned on. Disabled it as its not needed for ssd
     
  2. stemic28

    stemic28 MDL Senior Member

    Aug 23, 2009
    290
    299
    10
    windows does not defrag an ssd. there is no need to turn it off
     
  3. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,359
    7,078
    210
    It does, occasionally, for minimizing file extents, as the filesystem only supports a finite amount of them (65535, IIRC).
     
  4. Stimpy88

    Stimpy88 MDL Senior Member

    Mar 24, 2011
    354
    188
    10
    #5 Stimpy88, Dec 30, 2022
    Last edited: Dec 30, 2022
    Your statement is incorrect. The defrag program runs the TRIM command when an SSD is detected, instead of moving parts of files around. You will degrade your SSD if it never has the TRIM command run on it.
     
  5. nosirrahx

    nosirrahx MDL Expert

    Nov 7, 2017
    1,245
    592
    60
    Degrade the performance because writing to a freed block requires a 0 write first. TRIM does those 0 writes so future writes take place in pre-0ed cells. So yes, leave what is called deffrag on, even though that is a misnomer as defragmenting only happens to HDDs.
     
  6. EaglePC

    EaglePC MDL Expert

    Feb 13, 2012
    1,147
    471
    60
    for a year my nvme went only 98% on Win 10 now only 6 months on Win 11 92% Screenshot_20221230_031335.png
     
  7. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,172
    1,055
    60
    #8 TairikuOkami, Dec 31, 2022
    Last edited: Dec 31, 2022
    Windows 11 used defrag instead of trim, it was fixed twice, it is only a matter of time before it will occur again, if it did not already, it was found out only thanks to people like us, who questioned it. I just use disk manufacturer's utility.
    I never take into consideration empty statements like it is supposed to work like that, just like memory managment. 11 leaks memory all the time, even system processes like dwm, explorer, widgets, etc. I prefer to manage RAM myself.
     
  8. P40L0

    P40L0 MDL Senior Member

    Jul 14, 2009
    343
    187
    10
    TRIM works just fine when SSD is detected.
    Leave it on.
     
  9. gjohnson5

    gjohnson5 MDL Member

    Jul 25, 2013
    132
    54
    10
    I have the same ssd. Thanks for letting me know about this program and will check it periodically.
     

    Attached Files:

  10. nosirrahx

    nosirrahx MDL Expert

    Nov 7, 2017
    1,245
    592
    60
    TRIM is all about writing to an SSD. It is faster to write to pre-cleared blocks than it is to overwrite existing data marked as free. TRIM takes blocks marked as free and 0s them out.

    As far as prolonging the life of a SSD goes, if people are actually worried about this, buy a cheap used Optane drive and move anything with a lot of random read/write access to the Optane drive.
     
  11. Stimpy88

    Stimpy88 MDL Senior Member

    Mar 24, 2011
    354
    188
    10
    My drive has a performance hit while it's performing a disk-wide TRIM, for about 4 seconds, once a week...
     
  12. nosirrahx

    nosirrahx MDL Expert

    Nov 7, 2017
    1,245
    592
    60
    No need to run TRIM that often unless you do an insane amount file creation and deletion.

    I only run it after a CU install and even then, that is more often is probably needed.