L
Loren Pechtel
With a spinning drive you simply write new values into the magneticI'm not understanding what you mean by "erase" here. Are SSDs different
in some way, i. e. aren't bits erased anyway when overwritten?
domains, the old values are irrelevant. SSDs don't work that way,
though. You can only write 1s to a block, a zero can't be written.
Instead you have to erase the whole block--and erasing a block makes
spinning drives look downright speedy.
If the block consists of all zeroes it can be written rapidly. If
there are 1s in the way you have to copy everything out of the block,
erase it and then write the good data back.
Thus the drive maintains a pool of empty blocks to be used for writes,
blocks that are released are queued for erasing as the drive gets the
time to do so. If you manage to write so much to the drive that you
deplete this pool you'll see your write performance plunge until it
catches up.
The drive maintains the pool by two methods. Part of it is that the
drive is actually a bit bigger than they tell you. If the drive is
listed at 100gb it's probably something like 105gb in reality. The
second part of it is the TRIM command. Windows tells the drive what
areas aren't being used, the drive can respond by erasing them against
future need. This is why TRIM support is considered a very good
thing.