De-fragging an SSD drive
Psychophysiological entity
Thread Starter
De-fragging an SSD drive
The advantages of de-fragging a rotating drive are obvious, but an SSD?
After ages of aborted updates - during which the drive LED was on a lot of the time - I wondered what dross was left of the 'disc'. The de-frag process worked normally, but I have no idea what delays a fragmented SSD might cause.
After ages of aborted updates - during which the drive LED was on a lot of the time - I wondered what dross was left of the 'disc'. The de-frag process worked normally, but I have no idea what delays a fragmented SSD might cause.
Join Date: Aug 2002
Location: Earth
Posts: 3,663
Likes: 0
Received 0 Likes
on
0 Posts
The advantages of de-fragging a rotating drive are obvious, but an SSD?
Defragging slow (5400rpm or 7200rpm) PC/Laptop drives is also a somewhat questionable activity as there are probably many other things you could do to improve your performance before reaching defragging.
Psychophysiological entity
Thread Starter
I'm not at all clear what goes on in a solid state drive. I had wondered if controlling switching would take a greater time if it had to go to a relatively distant array of switches - millions of times.
The thing is, it looks like Windows doesn't differentiate from one technology to the next with its de-frag schedule. So, I wonder if it would be wise to turn it off. If one can.
The thing is, it looks like Windows doesn't differentiate from one technology to the next with its de-frag schedule. So, I wonder if it would be wise to turn it off. If one can.
Join Date: Aug 2002
Location: Earth
Posts: 3,663
Likes: 0
Received 0 Likes
on
0 Posts
I'm not at all clear what goes on in a solid state drive.
But I'll happily concede there are plenty of people who know far more about how SSD works than me...
I had wondered if controlling switching would take a greater time if it had to go to a relatively distant array of switches - millions of times.
Most of the voodoo magic is done on the controller and its associated firmware, which is why choice of SSD manufacturer and their track record plays a major part in SSD reliability (along side the correct choice of memory component type for your application).
The thing is, it looks like Windows doesn't differentiate from one technology to the next with its de-frag schedule.
EDIT TO ADD:
See this forum post (the first answer) by a Microsoft employee which pretty much confirms what I said (i.e. they're basically doing "garbage collection" and not a traditional defrag) ....
Hello, In Windows 7 - we turned off defrag for SSDs as you mention in your entry; but in Windows 8, we have changed the defrag tool to do a general optimization tool that handles different kinds of storage, and in the case of SSD's it will send 'trim' hints for the entire volume;
In Windows 8, when the Storage Optimizer (the new defrag tool) detects that the volume is mounted on an SSD - it sends a complete set of trim hints for the entire volume again - this is done at idle time and helps to allow for SSDs that were unable to cleanup earlier - a chance to react to these hints and cleanup and optimizer for the best performance. We do not do a traditional defrag (moving files to optimizer there location for space and performance) on SSDs.
In Windows 8, when the Storage Optimizer (the new defrag tool) detects that the volume is mounted on an SSD - it sends a complete set of trim hints for the entire volume again - this is done at idle time and helps to allow for SSDs that were unable to cleanup earlier - a chance to react to these hints and cleanup and optimizer for the best performance. We do not do a traditional defrag (moving files to optimizer there location for space and performance) on SSDs.
Last edited by mixture; 12th Jul 2014 at 23:02.
Join Date: Jun 2009
Location: Canada
Posts: 464
Likes: 0
Received 0 Likes
on
0 Posts
So there's no real benefit to defragging--it may well end up making the SSD more fragmented at the flash RAM level--and significant downsides.
Join Date: Jan 2008
Location: Timbuktu
Posts: 962
Likes: 0
Received 0 Likes
on
0 Posts
SSD moves blocks around dynamically to spread the wear across the disk
I got a laptop a few years ago with an SSD that had Vista on it before, that doesn't support TRIM... immediately put W7 on it but a few months later the SSD was dead
Join Date: Aug 2002
Location: Earth
Posts: 3,663
Likes: 0
Received 0 Likes
on
0 Posts
I believe that only works if you have TRIM (wear-leveling) enabled
Psychophysiological entity
Thread Starter
I had intended investigating Raid 0, thinking it would give backup and more speed. (forgotten the source of that gem) However, I see a LOT of minus points in going that route, including loss of TRIM.
Two separate drives seems to be the answer, and right now I'm using the 2-1/2" drive from a defunct HP laptop as the on-board backup. The next backup level is a remote USB HD and memory sticks.
Both drive types are partitioned to give four logical drives. Any strong opinion about NOT partitioning SSDs?
Two separate drives seems to be the answer, and right now I'm using the 2-1/2" drive from a defunct HP laptop as the on-board backup. The next backup level is a remote USB HD and memory sticks.
Both drive types are partitioned to give four logical drives. Any strong opinion about NOT partitioning SSDs?
Join Date: Aug 2002
Location: Earth
Posts: 3,663
Likes: 0
Received 0 Likes
on
0 Posts
I had intended investigating Raid 0, thinking it would give backup and more speed
Strictly speaking the former, in RAID setups where it does apply, is also defined as "redundancy" rather than "backup" ... for the obvious reason that you're presented with one logical drive ... the number "one" being a big hint that it's not a "backup".
memory sticks
Hard drives, CDs, DVDs, BluRay disks ... hell, even printed copies !
But memory sticks get chucked into the same category of robustness as floppy disks.
If you insist on using USB sticks, at least go off and hunt down some industrial grade ones that use the more expensive SLC cells.
Psychophysiological entity
Thread Starter
Erm.... RAID0 gives the latter but not the former. Whoever wrote the article you read stating the former ought to be hung, drawn and quartered !
Yep, it sounds like it's not for me, so just staying with my four partitions for now. My next post is about getting smooth and indeed instant access to the drives.
Sticks? Yes, I do make too much use of them, but only for popping out. It's true a robbery or fire would take out the other backups, and so far I've resisted my stuff going into the clouds. Three sticks hung on different appendages might be a short term solution. Lexar for example seem horribly expensive and one could buy an array of products for the same price.
I do put my book on my phone, my GPS sim, and at least 3 sticks, so quite a lot of carried backup types.
What about SD cards? I've used one for ages since it lies flat in my wallet, but I really don't know much about their reliability since they all seem to claim perfection.
Join Date: Aug 2002
Location: Earth
Posts: 3,663
Likes: 0
Received 0 Likes
on
0 Posts
But isn't the punishment just a tad harsh? Hung and drawn - but not quartered, surely?
But I digress...
Yep, it sounds like it's not for me
I do put my book on my phone, my GPS sim, and at least 3 sticks, so quite a lot of carried backup types.
I want a signed copy of this most valuable sounding book when you publish it !
What about SD cards?
However.... I could concede that there are two points in their favour ....
- they are probably less prone to mechanical forms of damage than USB sticks (as your wallet storage implies).
- its also easier to get hold of high quality SD cards from reputable manufacturers, unlike USB sticks where every man and his dog is churning them out and it can be difficult to tell what you're getting.
So as long as you continue to abide by my multiple copy rule, using SD cards for one of your copies would be more acceptable than USBs.
Psychophysiological entity
Thread Starter
Mmm. . . so 2/3 philosophy will imply not partitioning, I would guess. Narrowing the target will no doubt focus the read-writes on a smaller spot. Never gave that a thought when I put the OS and Office on the first partition, though buying an OS dedicated drive of say, 100 gig, would be as burdened as my 240's half. That's of course if an SSD really hides the other partition from the first.
Book? Same The Perfect Code. Still on Kindle, but now being rewritten with a lot of over-thinking complexity ripped out and the sequel ready to combine to make the full yarn. It would have been done a year ago if life hadn't got in the way. Ho hum.
Book? Same The Perfect Code. Still on Kindle, but now being rewritten with a lot of over-thinking complexity ripped out and the sequel ready to combine to make the full yarn. It would have been done a year ago if life hadn't got in the way. Ho hum.
Join Date: Aug 2002
Location: Earth
Posts: 3,663
Likes: 0
Received 0 Likes
on
0 Posts
NEVER defrag an SSD - you may damage it.
I'd rather say ....
"NEVER defrag an SSD because its an utterly pointless waste of time"
Damage is going a bit too far, and likely technically incorrect because it doesn't do anything that a normal of series of reads and writes does.
NEVER use more than 2/3rd capacity of an SSD for maximum performance.
Its an SSD. You can access all of it at exactly the same speed.
Now, there may be OS related reasons for only using 2/3rds if the SSD is your boot disk (i.e leaving 1/3 free for memory paging etc.)... but that's nothing to do with SSD capabilities.
Join Date: Jun 2009
Location: Canada
Posts: 464
Likes: 0
Received 0 Likes
on
0 Posts
I believe there used to be issues with block erase and write levelling on packed SSDs in the early days. But they now all have TRIM support and excess capacity for write levelling and replacing bad blocks (e.g. a 240GB SSD might actually have 256GB of Flash), so it's no longer really a problem.