The Blind SSD

Modern OSes talk to hard drives using logical block addressing. While hard drives are rotational media, logical block addressing organizes sectors on a hard drive linearly. When you go to save a file, Windows simply issues a write command for your file at a specific logical block address, say LBA 15 for example.

Your OS knows what LBAs are available and which ones are occupied. When you delete a file, the LBAs that point to that file on your hard disk are listed as available. The data you’ve deleted hasn’t actually been removed and it doesn’t get wiped until those sectors on the drive are actually overwritten.

Believe it or not, SSDs actually work the same way.

The flash translation layer in a SSD controller maps LBAs to pages on the drive. The table below explains what happens to the data on the SSD depending on the action in the OS:

Action in the OS Reaction on a HDD Reaction on an SSD
File Create Write to a Sector Write to a Page
File Overwrite Write new data to the same Sector Write to a Different Page if possible, else Erase Block and Write to the Same Page
File Delete Nothing Nothing

 

When you delete a file in your OS, there is no reaction from either a hard drive or SSD. It isn’t until you overwrite the sector (on a hard drive) or page (on a SSD) that you actually lose the data. File recovery programs use this property to their advantage and that’s how they help you recover deleted files.

The key distinction between HDDs and SSDs however is what happens when you overwrite a file. While a HDD can simply write the new data to the same sector, a SSD will allocate a new (or previously used) page for the overwritten data. The page that contains the now invalid data will simply be marked as invalid and at some point it’ll get erased.

Strength in Numbers, What makes SSDs Fast Understanding the SSD Performance Degradation Problem
Comments Locked

250 Comments

View All Comments

  • siberx - Thursday, March 19, 2009 - link

    This is, very likely, the best article I have ever read, period. Online, in magazines, about any subject... this was an absolutely fantastic read. Suddenly, all smoke surrounding SSDs has cleared and the truth shines through in editorial brilliance. It's great to see that at least some computer news sites out there can still cut through the crap and get to the heart of the issue. My already high opinion of AnandTech has risen even further.

    Thank you for taking the immense time it must have taken to compile and assemble all this information - this article is now a must-read for *anybody* considering purchasing an SSD, and it's just about all the background you could need in one place.

    In addition to all the extremely useful general SSD information contained within, the detailing of the issues with the JMicron controllers as well as OCZ's efforts to address the concerns to produce the best product possible (despite the reduced marketability to the uninformed) is reassuring and comforting in a world where tech companies seem more concerned with how much they can deceive their customers instead of producing quality products.

    In short, the article is a win on all fronts, thank you greatly for posting it. When I purchase my first SSD (which I'm considering doing reasonably soon) this article, its information and suggestions, and OCZs actions to resolve the issues with its drives will definitely be at the forefront of my mind.
  • jkua - Thursday, March 19, 2009 - link

    I have to say, I really appreciate the effort and throughness with which you have covered the state of the SSD market today. As an engineer and scientist, I applaud your methods in tracking down and reporting the major issues with SSDs. As a consumer, I really appreciate the timeliness of this article as I was just thinking of putting an SSD in a netbook for a robotics application where mechanical drives are not ideal.

    Cheers!
  • jkua - Thursday, March 19, 2009 - link

    That said, one thing I would have like to have seen is some numbers on power consumption for these drives compared to average mechanical desktop and laptop drives.
  • aamsel - Thursday, March 19, 2009 - link

    Anyone have a link to the Intel HDD ERASE program that Anand referred to?
  • HolyFire - Thursday, March 19, 2009 - link

    http://www.ultimatebootcd.com/download.html">http://www.ultimatebootcd.com/download.html (includes HDD erase 3.1)

    http://cmrr.ucsd.edu/people/Hughes/SecureErase.sht...">http://cmrr.ucsd.edu/people/Hughes/SecureErase.sht... (version 4.0)
  • AnnonymousCoward - Thursday, March 19, 2009 - link

    AWESOME ARTICLE.

    The huge difference in read/write flash performance looks a lot like this article: http://www.anandtech.com/memory/showdoc.aspx?i=257...">http://www.anandtech.com/memory/showdoc.aspx?i=257...
  • wind glider - Thursday, March 19, 2009 - link

    Thanks for the orgasmic review.
  • wicko - Wednesday, March 18, 2009 - link

    Had a really good read here, thanks for the history and info, Anand. The only thing I don't understand is what the importance of random write is? What kind of task would benefit from high random write speeds (maybe copying many files at once)? I'm tempted to pick up a vertex drive but it depends on whether or not random write will be important for me. But the price... whoa, pretty damn expensive here in Canada.. http://www.ncix.com/products/index.php?sku=36023&a...">http://www.ncix.com/products/index.php?...X120G&am... - $625 for a 120GB!!! I kind of want 2, for RAID0, I have a lot of games installed (steam folder alone is 100GB lol). Might even have to raid 3 of em.. but not for $1800 lol.
  • strikeback03 - Thursday, March 19, 2009 - link

    As mentioned in the article, the OS in general makes lots of random writes. Send an IM, it writes to a log. Load a website, it caches some images.
  • AnnonymousCoward - Thursday, March 19, 2009 - link

    >I'm tempted to pick up a vertex drive but it depends on
    >whether or not random write will be important for me.
    Keep in mind, its random write is twice as fast as mechanical HDs.

    >But the price...
    It's only $110USD/32GB.

Log in

Don't have an account? Sign up now