Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Does it make sense to defrag a SSD?

Does it make sense to defrag a SSD?

Scheduled Pinned Locked Moved The Lounge
question
37 Posts 17 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cp Coder
    wrote on last edited by
    #1

    Saw an article this morning recommending that you run the command: "Defrag C:" from time to time on your SSD drives. But does it make sense to defrag a SSD? I can understand that it is of value on old spinning disk hard drives, where fragmentation can cause the reader to physically jump from fragment to fragment, but a SSD has no moving parts. What do the experts say?

    Ok, I have had my coffee, so you can all come out now!

    Kornfeld Eliyahu PeterK L D J O 11 Replies Last reply
    0
    • C Cp Coder

      Saw an article this morning recommending that you run the command: "Defrag C:" from time to time on your SSD drives. But does it make sense to defrag a SSD? I can understand that it is of value on old spinning disk hard drives, where fragmentation can cause the reader to physically jump from fragment to fragment, but a SSD has no moving parts. What do the experts say?

      Ok, I have had my coffee, so you can all come out now!

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #2

      No - all it will do is 'burning' write cycles, which shortens the life of the drive

      "If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      0 D 2 Replies Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        No - all it will do is 'burning' write cycles, which shortens the life of the drive

        "If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg

        0 Offline
        0 Offline
        0x01AA
        wrote on last edited by
        #3

        This is a well-known and probably correct argument. On the other hand, the question I have is: If SSDs use something like DMA, could a certain kind of defragmentation increase throughput?

        1 Reply Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          No - all it will do is 'burning' write cycles, which shortens the life of the drive

          "If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg

          D Offline
          D Offline
          dandy72
          wrote on last edited by
          #4

          Agreed. Steve Gibson (author of [Spin-Rite](https://www.grc.com/sr/spinrite.htm)) has discussed this numerous times on his [Security Now](https://twit.tv/sn) podcast, and it makes zero sense to "defrag" an SSD. Some people have called him a quack, and I originally sided with them (somewhat), but after listening to his podcast for nearly a decade, it's clear he's technical to an extreme and very knowledgeable. When he does a deep dive into some technical matter, I think he always makes a lot of sense. He's not clickbait-y and doesn't make outrageous claims. Not that I had any doubt, when it comes to defragging an SSD. But his explanation for it (I don't have a show number for it, sorry) just sealed the deal for me.

          J 1 Reply Last reply
          0
          • C Cp Coder

            Saw an article this morning recommending that you run the command: "Defrag C:" from time to time on your SSD drives. But does it make sense to defrag a SSD? I can understand that it is of value on old spinning disk hard drives, where fragmentation can cause the reader to physically jump from fragment to fragment, but a SSD has no moving parts. What do the experts say?

            Ok, I have had my coffee, so you can all come out now!

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Does a "defrag" use less space? Are there fewer "pointers" to follow? How much can you "save" in extreme cases? Is space a concern on a "maxed out" SSD?

            "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

            D 1 Reply Last reply
            0
            • C Cp Coder

              Saw an article this morning recommending that you run the command: "Defrag C:" from time to time on your SSD drives. But does it make sense to defrag a SSD? I can understand that it is of value on old spinning disk hard drives, where fragmentation can cause the reader to physically jump from fragment to fragment, but a SSD has no moving parts. What do the experts say?

              Ok, I have had my coffee, so you can all come out now!

              D Offline
              D Offline
              Daniel Pfeffer
              wrote on last edited by
              #6

              Defragging an SSD makes no sense, but trimming does. SSD TRIM is an ATA command that enables an operating system to inform an SSD drive which data blocks it can erase because they are no longer in use. The use of TRIM can improve the performance of writing data to SSDs and contribute to longer SSD life. This is an expensive operation, which is why it isn't performed after every time a block is released. See this explanation by Kingston Technology, a RAM and SSD drive manufacturer: [The Importance of Garbage Collection and TRIM Processes for SSD Performance](https://www.kingston.com/en/blog/pc-performance/ssd-garbage-collection-trim-explained)

              Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

              1 Reply Last reply
              0
              • D dandy72

                Agreed. Steve Gibson (author of [Spin-Rite](https://www.grc.com/sr/spinrite.htm)) has discussed this numerous times on his [Security Now](https://twit.tv/sn) podcast, and it makes zero sense to "defrag" an SSD. Some people have called him a quack, and I originally sided with them (somewhat), but after listening to his podcast for nearly a decade, it's clear he's technical to an extreme and very knowledgeable. When he does a deep dive into some technical matter, I think he always makes a lot of sense. He's not clickbait-y and doesn't make outrageous claims. Not that I had any doubt, when it comes to defragging an SSD. But his explanation for it (I don't have a show number for it, sorry) just sealed the deal for me.

                J Offline
                J Offline
                Jorgen Andersson
                wrote on last edited by
                #7

                dandy72 wrote:

                Some people have called him a quack

                dandy72 wrote:

                it's clear he's technical to an extreme and very knowledgeable

                You can be both you know. :-)

                Wrong is evil and must be defeated. - Jeff Ello

                D 1 Reply Last reply
                0
                • C Cp Coder

                  Saw an article this morning recommending that you run the command: "Defrag C:" from time to time on your SSD drives. But does it make sense to defrag a SSD? I can understand that it is of value on old spinning disk hard drives, where fragmentation can cause the reader to physically jump from fragment to fragment, but a SSD has no moving parts. What do the experts say?

                  Ok, I have had my coffee, so you can all come out now!

                  J Offline
                  J Offline
                  Jorgen Andersson
                  wrote on last edited by
                  #8

                  The short answer is, yes, Windows does sometimes defragment SSDs, yes, it's important to intelligently and appropriately defrag SSDs, and yes, Windows is smart about how it treats your SSD. The real and complete story - Does Windows defragment your SSD? - Scott Hanselman's Blog[^]

                  Wrong is evil and must be defeated. - Jeff Ello

                  K O J D 4 Replies Last reply
                  0
                  • C Cp Coder

                    Saw an article this morning recommending that you run the command: "Defrag C:" from time to time on your SSD drives. But does it make sense to defrag a SSD? I can understand that it is of value on old spinning disk hard drives, where fragmentation can cause the reader to physically jump from fragment to fragment, but a SSD has no moving parts. What do the experts say?

                    Ok, I have had my coffee, so you can all come out now!

                    O Offline
                    O Offline
                    OctumSven
                    wrote on last edited by
                    #9

                    To my knowledge, this happens automatically anyway, but in the form of TRIM, whereby unused blocks are cleaned in some way. But that happens automatically, as far as I know. In the Samsung FAQs, they also specifically recommend against using any kind of defragmentation as that will cause additional writes, which in turn shortens the lifespan of the SSD. :)

                    1 Reply Last reply
                    0
                    • C Cp Coder

                      Saw an article this morning recommending that you run the command: "Defrag C:" from time to time on your SSD drives. But does it make sense to defrag a SSD? I can understand that it is of value on old spinning disk hard drives, where fragmentation can cause the reader to physically jump from fragment to fragment, but a SSD has no moving parts. What do the experts say?

                      Ok, I have had my coffee, so you can all come out now!

                      J Offline
                      J Offline
                      Jan Heckman
                      wrote on last edited by
                      #10

                      Good question. Other comments favor NO or just TRIM (which is something else and was an issue when, long time ago, you couldn't yet set things up to do this automatically). Arguments on the hardware side are pretty convincing, but then still: - hardware: why is reading/writing the same bytes in different sized packages so much slower for small packages? - what about the OS having to emit many more diskrequests, switching from user mode? Can't that slow things down? - and finally, what about measuring? My impression is that it does make a difference. So, max once a month, when I believe it is useful, I do a full defrag. There is (in my case) an argument against in differential backup (diskimage): defrag will cost many more backup bites than without defrag, so much so, after a few backups, that a new complete backup is an option. So, I will lower my defrag frequency even more to say once in 3 months. Never say never!

                      1 Reply Last reply
                      0
                      • J Jorgen Andersson

                        The short answer is, yes, Windows does sometimes defragment SSDs, yes, it's important to intelligently and appropriately defrag SSDs, and yes, Windows is smart about how it treats your SSD. The real and complete story - Does Windows defragment your SSD? - Scott Hanselman's Blog[^]

                        Wrong is evil and must be defeated. - Jeff Ello

                        K Offline
                        K Offline
                        Keefer S
                        wrote on last edited by
                        #11

                        I respectfully disagree. Windows recognizes that your drive is an SSD and doesn't do it. Instead, there are other optimizations that Windows does to SSDs that are good to keep it working well. From my reading and understanding over the years, defragmenting, however, does nothing at all to an SSD drive except needlessly burn read/write cycles. If you know of information supporting your viewpoint, I'd love to read about it.

                        J 1 Reply Last reply
                        0
                        • K Keefer S

                          I respectfully disagree. Windows recognizes that your drive is an SSD and doesn't do it. Instead, there are other optimizations that Windows does to SSDs that are good to keep it working well. From my reading and understanding over the years, defragmenting, however, does nothing at all to an SSD drive except needlessly burn read/write cycles. If you know of information supporting your viewpoint, I'd love to read about it.

                          J Offline
                          J Offline
                          Jorgen Andersson
                          wrote on last edited by
                          #12

                          Keefer S wrote:

                          If you know of information supporting your viewpoint, I'd love to read about it.

                          You read the link?

                          Wrong is evil and must be defeated. - Jeff Ello

                          1 Reply Last reply
                          0
                          • J Jorgen Andersson

                            The short answer is, yes, Windows does sometimes defragment SSDs, yes, it's important to intelligently and appropriately defrag SSDs, and yes, Windows is smart about how it treats your SSD. The real and complete story - Does Windows defragment your SSD? - Scott Hanselman's Blog[^]

                            Wrong is evil and must be defeated. - Jeff Ello

                            O Offline
                            O Offline
                            obermd
                            wrote on last edited by
                            #13

                            Interesting read and explains why Rasco's Perfect Disk uses a consolidate free space algorithm by default for SSDs.

                            1 Reply Last reply
                            0
                            • J Jorgen Andersson

                              The short answer is, yes, Windows does sometimes defragment SSDs, yes, it's important to intelligently and appropriately defrag SSDs, and yes, Windows is smart about how it treats your SSD. The real and complete story - Does Windows defragment your SSD? - Scott Hanselman's Blog[^]

                              Wrong is evil and must be defeated. - Jeff Ello

                              J Offline
                              J Offline
                              jschell
                              wrote on last edited by
                              #14

                              ok... Note of course the post is 9 years old. So maybe something has changed since then. Additionally it does not provide any references. Closest is the following

                              "I dug deeper and talked to developers on the Windows storage team"

                              The first image gives a screen shot. On my personal computer I can see that the service is not on. Which suggests that to a certain extent, if Microsoft thinks it should be happening, it is not (on my computer.) The article says this.

                              "First, yes, your SSD will get intelligently defragmented once a month."

                              And it also says the following

                              "Windows 7, along with 8 and 8.1 come with appropriate and intelligent defaults and you don't need to change them for optimal disk performance."

                              I did not change the default. And as noted it is not on. I am running Windows 10. So perhaps no longer as relevant. And at least back then, 2014, SSDs had a reliability problem. So maybe that has changed since then.

                              J 1 Reply Last reply
                              0
                              • J jschell

                                ok... Note of course the post is 9 years old. So maybe something has changed since then. Additionally it does not provide any references. Closest is the following

                                "I dug deeper and talked to developers on the Windows storage team"

                                The first image gives a screen shot. On my personal computer I can see that the service is not on. Which suggests that to a certain extent, if Microsoft thinks it should be happening, it is not (on my computer.) The article says this.

                                "First, yes, your SSD will get intelligently defragmented once a month."

                                And it also says the following

                                "Windows 7, along with 8 and 8.1 come with appropriate and intelligent defaults and you don't need to change them for optimal disk performance."

                                I did not change the default. And as noted it is not on. I am running Windows 10. So perhaps no longer as relevant. And at least back then, 2014, SSDs had a reliability problem. So maybe that has changed since then.

                                J Offline
                                J Offline
                                Jorgen Andersson
                                wrote on last edited by
                                #15

                                Well,it was still around three years ago on windows 10, since they released a bugfix for it. Microsoft fixes Windows 10 bug causing excessive SSD defragging[^] If you think about it, it makes sense to defrag also SSDs, just not very often. If you get a lot of file fragments spread all over the disk, it will cause excessive writes since it will have to spread out the files on more blocks. Default setting since windows 8.1 is every 28 days.

                                Wrong is evil and must be defeated. - Jeff Ello

                                J 1 Reply Last reply
                                0
                                • J Jorgen Andersson

                                  dandy72 wrote:

                                  Some people have called him a quack

                                  dandy72 wrote:

                                  it's clear he's technical to an extreme and very knowledgeable

                                  You can be both you know. :-)

                                  Wrong is evil and must be defeated. - Jeff Ello

                                  D Offline
                                  D Offline
                                  dandy72
                                  wrote on last edited by
                                  #16

                                  :-D Fair point. But I've been listening to his podcast for over a decade, and I have come to the conclusion that those who called him a quack were just poorly informed. I forget what his exact concern was (something about XP's default network configuration?), but in the end he was proven right and Microsoft eventually had to seriously lock it down with SP2, which introduced (for the first time) the Windows firewall.

                                  J 1 Reply Last reply
                                  0
                                  • L Lost User

                                    Does a "defrag" use less space? Are there fewer "pointers" to follow? How much can you "save" in extreme cases? Is space a concern on a "maxed out" SSD?

                                    "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                                    D Offline
                                    D Offline
                                    dandy72
                                    wrote on last edited by
                                    #17

                                    Gerry Schmitz wrote:

                                    Is space a concern on a "maxed out" SSD?

                                    Is space not a concern on *any* maxed out drive, no matter what the underlying technology might be?

                                    1 Reply Last reply
                                    0
                                    • J Jorgen Andersson

                                      The short answer is, yes, Windows does sometimes defragment SSDs, yes, it's important to intelligently and appropriately defrag SSDs, and yes, Windows is smart about how it treats your SSD. The real and complete story - Does Windows defragment your SSD? - Scott Hanselman's Blog[^]

                                      Wrong is evil and must be defeated. - Jeff Ello

                                      D Offline
                                      D Offline
                                      dandy72
                                      wrote on last edited by
                                      #18

                                      I've only read bits and pieces of Scott's article, looking for specific keywords, but (I think) what he fails to mention is that Windows has *adapted* its defrag approach so it now knows how to tell an SSD apart from a spinner. I believe there were justified concerns at the time, when SSDs first came out (if I remember my timeline correctly), XP's defragger just treated all drives like any spinner (the only thing it knew about) and blindly tried to run the defrag code that only made sense for traditional drives. It's only later that MS introduced the Trim command to Windows.

                                      J 1 Reply Last reply
                                      0
                                      • D dandy72

                                        I've only read bits and pieces of Scott's article, looking for specific keywords, but (I think) what he fails to mention is that Windows has *adapted* its defrag approach so it now knows how to tell an SSD apart from a spinner. I believe there were justified concerns at the time, when SSDs first came out (if I remember my timeline correctly), XP's defragger just treated all drives like any spinner (the only thing it knew about) and blindly tried to run the defrag code that only made sense for traditional drives. It's only later that MS introduced the Trim command to Windows.

                                        J Offline
                                        J Offline
                                        Jorgen Andersson
                                        wrote on last edited by
                                        #19

                                        The trim command was introduced with win 7 iirc

                                        Wrong is evil and must be defeated. - Jeff Ello

                                        D 1 Reply Last reply
                                        0
                                        • D dandy72

                                          :-D Fair point. But I've been listening to his podcast for over a decade, and I have come to the conclusion that those who called him a quack were just poorly informed. I forget what his exact concern was (something about XP's default network configuration?), but in the end he was proven right and Microsoft eventually had to seriously lock it down with SP2, which introduced (for the first time) the Windows firewall.

                                          J Offline
                                          J Offline
                                          Jorgen Andersson
                                          wrote on last edited by
                                          #20

                                          I remember him alright. He isn't a quack, but has a tendency to fight windmills. :)

                                          Wrong is evil and must be defeated. - Jeff Ello

                                          D 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups