Should SSD's be defragmented

Page 5 of 7 FirstFirst ... 34567 LastLast

  1. Posts : 11,247
    Windows / Linux : Arch Linux
       #41

    NavyLCDR said:
    Unlike defragging, Trim on an SSD is just Trim, it doesn't matter which program initiates it the results will be exactly the same. Trim doesn't move files, trim resets storage locations on the SSD that have had data previously stored there. There are two steps required to make a storage location available on an SSD. The first step is to delete the previous data. The second step is to reset the storage location for reuse. The first step is done on-command at the moment it is required. The second step is only performed when either there are no more reset data locations available for use or periodically, hopefully during idle periods. By waiting for an idle period to do the second step, the SSD performance is increased. The second step is the trim operation.
    Hi there
    I still don't see the need for TRIM on modern SSD's -- why does one need to reset storage location when given that an SSD is basically like a LOT of RAM -- any location is equal to any other location so why should moving data make any difference at all epcially since most of the index can be held in RAM - and even a simple binary search can give very fast access to a HUGE number of "addresses" in a very few number of operations.

    It's like the 6 in 49 lottery numbers -- 123456 is just as likely to come up as any of the other 14 million or so combinations.

    The electronics in the I/O controller will take care of any specific firmware improvements.

    A lot of these old utilities and ideas came from the early days of HDD's and ist gen of SSD's -- these days you are much more advised to leave this stuff well alone !!.

    Of course like everything else YMMV but when using things like DEFRAG you need to know why those utilities existed in the first place and make sure that you really need them.

    Cheers
    jimbo
      My Computer


  2. Posts : 413
    windows 10 2004
    Thread Starter
       #42

    So Jimbo, I gather you wouldn't prefer to have Diskeeper set loose on any type of SSD. Here's a different question. Is there a chance an SSD might catch on fire if letting a program like Diskeeper optimize it every day?
      My Computer


  3. Posts : 27,181
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #43

    Edward said:
    Hi Cliff, Yes the one that comes with windows 10 when I click optimize it will start trimming, or I should use the Samsung Magician one to trim SSD? Once in a month is not necessary I think once In a while I think it's better?
    The one in Magician is turned of on Windows 8 and higher(8, 8.1, 8.1 Update, 10), because Windows will handle it as part of automatic maintenance. I have mine set to daily, but Windows won't do it for weeks, it just looks at it every day, and executes when needed, just like defragging with a HDD.
    Should SSD's be defragmented-image-002.png

    If it makes you feel better you could do it manually.
    Should SSD's be defragmented-image-001.png
      My Computers


  4. Posts : 18,432
    Windows 11 Pro
       #44

    jimbo45 said:
    Hi there
    I still don't see the need for TRIM on modern SSD's -- why does one need to reset storage location when given that an SSD is basically like a LOT of RAM -- any location is equal to any other location so why should moving data make any difference at all epcially since most of the index can be held in RAM - and even a simple binary search can give very fast access to a HUGE number of "addresses" in a very few number of operations.
    An SSD is made up of a whole bunch of cells to hold data. Let's say that cell A1 has a 2 in it as part of a file. The file changes and that 2 becomes a 5. What the SSD does is look for the next open spot to shove that 5 into. So lets say that next open spot is cell A10. So what you have now is cell A10 with the 5 in it that is part of the actual file, and you still have the 2 in cell A1 that isn't attached to any file.

    Over time the SSD is going to run out of empty cells to shove data into and there are going to be a whole bunch of cells with obsolete data in them not attached to any file. Then what happens? In order to write new data the SSD has to go to one of the cells with obsolete data, clear that out, then write the new data. That's going to make it close to twice the time required to write new data and slow down the SSDs performance greatly.

    What the trim command does is it goes through and gets rid of all the obsolete data in one operation, resetting all those previously used cells so they can be written to again.

    And that's why you run Trim on a routine basis - you slow down the SSD performance for say 5 seconds out of every month to clear out the garbage. If you don't, then the garbage just builds up until the SSD is full, at which time for each piece of data that needs to be written, one piece of garbage must be cleared out and now your SSD performance is slowed down on a permanent basis - until the Trim command gets issued.

    Trim has nothing to do with moving data. Trim clears out all the garbage in one sweep to provide clean cells available to hold data again.
      My Computer


  5. Posts : 413
    windows 10 2004
    Thread Starter
       #45

    That's a very clear explanation of what is taking place on the SSD's. Consequently, I have TRIM all trimmed up and ready to go. Thanks for this.
      My Computer


  6. Posts : 7,254
    Windows 10 Pro 64-bit
       #46

    I tend to run the internal defrag tool once a week to get TRIM going.
      My Computers


  7. Posts : 3,257
    Windows 10 Pro
       #47

    jimbo45 said:
    Why would an SSD need to be defragmented. Te only reson to defrag an HDD is that parts of the file exist over physcally different sectors and the HDD has to rotate to position the read mechanism to pick the file up -- obviously the more chunks scattered over the HDD the more the seek and Read accesses are required to get the file.
    That's the usual reason to defragment a drive, but defragging typically does more than just rearranging sectors to make them contiguous, it also optimizes the file structures on disk (such as the MFT) to reduce wasted space and reduce the number of entries that have to be navigated to read an entire disks directory structure.

    The Windows disk optimizer does, on occasion, defrag these structures in addition to performing a TRIM on SSD drives. However, this is not a full blown defragment.

    Another reason to perform a defrag is to consolidate free space, so that you can shrink a partition. Suppose you have a partition that uses only a single block at the end of the disk space, then resizing won't be allowed even though you may have plenty of disk space. Having said that, it's a pretty rare circumstance for most people.
      My Computer


  8. Posts : 18,432
    Windows 11 Pro
       #48

    Mystere said:
    Another reason to perform a defrag is to consolidate free space, so that you can shrink a partition. Suppose you have a partition that uses only a single block at the end of the disk space, then resizing won't be allowed even though you may have plenty of disk space. Having said that, it's a pretty rare circumstance for most people.
    If you use a program such as MiniTool Partition Wizard, the program will move the files out of the way needed to shrink the partition. That's why you can remove space from the front of a partition with MiniTool Partition Wizard, but you can't with Windows Disk Managment. Windows Disk Management did not have the capability to move files written into it. I suppose you could call the partitioning program moving files as "defragging" to some degree.
      My Computer


  9. Posts : 983
    Windows 7/64 Professional
       #49

    I'm simple so I try to keep things simple and not over complicate things.

    1. As far as I know their is no manufacture of SSD's that recommend using a defrag program on their SSD's. What I have read from manufactures is they do not want their SSD's defraged with any program.

    2. I have not use all brands of SSD's but I would suggest just following the manufactures suggestion, tool boxes and instructions on how to maintain their SSD's.
      My Computers


  10. Posts : 3,257
    Windows 10 Pro
       #50

    Layback Bear said:
    1. As far as I know their is no manufacture of SSD's that recommend using a defrag program on their SSD's. What I have read from manufactures is they do not want their SSD's defraged with any program.
    I wouldn't say they "don't want their SSD's defraged with any program". That sounds like they are actively telling users what they can and can't do with their drives. It would be better to say they do not recommend defragging, as it normally serves no useful purpose and can (slightly) decrease the lifetime expectancy of the drive (although if you were to defrag it often each time would decrease that life expectancy).

    Again, there are plenty of defrag tools that are smart and understand that SSD's don't need general defragging (though they sometimes need filesystem optimization).

    So it's good to optimize drives, even SSD's, but you should only use an SSD aware optimizer.
      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 18:04.
Find Us




Windows 10 Forums