You might have heard of solid-state drive (SSD). This post will explain this type of storage and its variant (i.e., SATA SSD vs. NVMe SSD) and how they are different from the traditional hard drive (HDD).
And even if you’re familiar with them all, this still is going to be a good read. Let’s start with the basic similarities and differences when it comes to SSD vs. HDD.
HDD vs. SSD: Similarities
From a user’s perspective, a solid-state drive and hard drive behave the same: they store information and make it available when you need it.
The popular SATA connection type
And that’s because SSDs initially are based on HDDs by sharing the same interface called serial AT attachment (SATA). This allows an SSD to seamlessly replace an HDD without extra hardware or software requirements.
The SATA interface comes in two prominent designs: 3.5-inch (for desktop computers) and 2.5-inch (for laptops). (You’ll find SSDs only in the 2.5-inch form, but they work in all applications where a hard drive fits.)
SATA is currently in its third revision (SATA 3), with the top speed of 6 gigabits per second (Gbps) or 750 megabytes per second (MB/s).
Future of SATA
There will not be a newer and faster version of SATA in the future. That’s because SSDs have been increasingly popular and more affordable and they have designs and interfaces that deliver significantly higher speeds.
The truth is, the SATA connection standard is often the bottleneck when it comes to SSDs’ performance. As a result, the growing popularity of SSDs will eventually render SATA obsolete.
HDD vs. SSD: Differences
First and foremost, SSDs are significantly faster than HDDs. It’s safe to say that even the fastest hard drive is slower than the slowest SSD.
On average, you can expect a SATA SSD to have at least twice the sequential (copy) speed of a SATA hard drive. SSDs’ strong point, however, is the random access performance which contributes more to the general performance of a computer.
That’s because, on the inside, an SSD and an HDD are totally different.
A hard drive’s basics
Open up a hard drive; you’ll find a few platters stacked on top of one another like a spindle of compact discs. Each disc has a thin layer of metal on top that can be magnetized by the read/write head — which hovers on top of each platter — into binary patterns to store information.
This process is the same when you write on a portion — called sector — of the platter for the first time or any subsequent times (overwriting). In either case, the drive magnetizes the sector directly into the patterns required at the time of writing, regardless of their state.
The reading/writing speed of a hard drive depends mainly on how fast it can spin its platters. Most consumer-grade HDDs spin at either 5,400 rounds per minute or 7,200 RPM. They are mechanical machines.
An SSD’s basics
An SSD has no moving parts. It’s an integrated circuit and therefore uses less energy yet can provide much faster access to the information it stores than an HDD.
It also can come in much smaller physical sizes and doesn’t necessarily need to conform to a standard design. Still, most do anyway for ease-of-use, though many also come in a proprietary form that fits only in a particular application.
All you need to know about solid-state drives
The world of SSDs can be quite complicated due to the nature of the technology. However, the first thing you should know about them is the fact you can only write so much to an SSD before you can’t anymore.
Finite P/E cycles
That’s because there’s no “overwriting” with SSDs.
Except when the SSD is brand-new, writing to an SSD is always a process of erasing existing information from memory cells and then programming them with new information.
For this reason, writing to an SSD is often referred to as a program/erase cycles (or P/E) cycle, similar to writing on a whiteboard with a Sharpie — you need to clean the board before you can draw something new on it.
And just like a whiteboard that won’t last forever, an SSD also has a finite amount of P/E cycles. You can only program a memory cell so many times before it wears out and becomes unreliable.
And programing information on an SSD is a complicated and inefficient process by nature.
Blocks and pages
An SSD organizes its memory cells in pages and blocks, with one block containing many pages. Here’s the problem: An SSD writes page by page but erases block by block.
As you can imagine, if you want to write more pages to a half-used block, the SSD will first need to copy the good pages (those with valid information) to a different place, erase the entire block, then write back the good pages together with the new pages to that block.
As a result, most of the time, an SSD has to write more than the amount of information you need it to store, which brings us to some interesting terms.
The writing process on an SSD is so complex that it breeds half a dozen lingoes:
- Write amplification: The phenomenon that an SSD has to write more than the amount of information the user needs to write on it.
- Garbage collection: A process where SSD needs to reallocate pages of a block before erasing the entire block so it can write on that block.
- TRIM command: This is an actual command (and not an acronym) of an operating system and not an acronym. It notifies the SSD pages of old data that is no longer valid, so the garbage collection to skip them during the reallocation. When enabled, TRIM helps reduce Write amplification a great deal.
- Over-provisioning: To make garbage collection more efficient, an SSD can dedicate a part of its storage (typically 10%) specifically for this process. It’s like having an extra room in your house to store stuff temporarily when you need to do a major cleanup. As a result, many SSDs don’t have full capacity. For example, 256GB or 512GB drives only deliver 240GB or 480GB of real storage space, respectively.
- Endurance: The amount of data that can be written to an SSD before it becomes unreliable.
- Wear-leveling: Algorithms that make an SSD use up all of its memory chips, cell by cell before the first cell is erased and written on again. Consequently, the entire drive “wears” evenly. For this, SSDs with larger capacities generally have higher endurance than smaller ones.
SSD endurance is generally presented in two ways: Terabytes written (TBW) or drive writes per day (DWPD).
TBW is the total amount of data you can write to an SSD over its life span before it becomes unreliable. The higher TBW value, the better the endurance, the longer the drive will last.
It’s important to note that using TBW can be misleading since larger capacities generally mean a higher TBW rating. For example, if you stack a 1TB low-endurance SSD against a 250GB high-endurance SSD, chances are the former will have a higher TBW value.
For this reason, there’s another more consistent measurement for endurance.
Drive writes per day
DWPD is the percentage of a full drive writes per day over the SSD’s warranty period, which tends to be between three and five years.
For example, if a 250GB SSD has 1 DWPD rating and a warranty of three years, that means you can expect to write up to 250GB to it per day and every day for three years. If the same drive has the DWPD value of .5, then you can write 125GB to it per day, so on and so forth.
The higher DWPD value means the better the endurance but keep in mind that DWPD needs to be weighed against the warranty period. For example, a drive with .5 DWPD over three years has lower endurance that one with .4 DWPD over five years. [ads0
The endurance anxiety
Since the write on SSDs is finite, we tend to worry a lot about their longevity. In reality, though, there’s no need to worry at all.
Even though you can’t write to an SSD forever, with normal usage, it’d take you many years to deplete even a low-capacity SSD’s P/E cycles. Most of us don’t write more than 10GB per day to a drive, and many days we don’t write anything at all.
I consider myself a heavy user who moves data around a lot, yet I’ve never been able to wear out an SSD, including my very first, a 256GB Samsung 830 I bought back in 2011. It’s still working now.
That said, if you still want to extend the life span of an SSD even more, then reduce any unnecessary amount of writing you do to it. Chances are, though, you don’t need to worry about this at all.
SSD types: NVMe SSD vs. SATA SSD
There have been many standard designs (form factors) of SSDs over the years. That’s not to mention most Apple computers use proprietary SSDs — the pool of SSD shapes and sizes so large that hardly anyone can remember them all.
The classification of SSDs is also confusing because the form factors (designs, physical shapes), the interfaces (how a drive connects to a host), and the speed standards overlap between different types.
For example, SATA is both an interface as well as a speed standard. And then you have standard SATA and mSATA form factors. mSATA itself is also another interface variant of SATA.
That said, strictly from the interface point of view, you only need to know two popular types: SATA and M.2. I’ll explain the form factors and speeds of each.
The SATA standard has been in use for the past 15 years currently at the third revision — SATA 3 — which has the cap speed of 6Gbps (or 750MB/s). In real-world usage, the fastest SATA SSD, after overheads, has the top sustained copy speed of around 550MB/s.
SATA SSDs come in two main designs:
Standard SATA: Standard SATA SSDs share the same design as that of a laptop (2.5-inch) hard drives though most are slightly thinner than 7mm, as opposed to 9.5mm of the HDD. Examples of SATA drives are the entry-level Toshiba OCZ TR200, the mainstream Crucial MX500, or the high-end Samsung 860 Pro.
mSATA SSD: Short for mini-SATA, mSATA is a variant of standard SATA with a much smaller form factor and uses a different interface (called mSATA) to connect to a host. Many laptops use mSATA drives, and you can also use them as regular SATA drives via adapters.
M.2 is the latest interface and has the highest number of design variants via different lengths and “module keys.”
Length: Typically an M.2 drive is always 22mm wide. Its length, however, varies from 42mm to 110mm. Most M.2 SSDs, however, use the 2280 (22mm wide and 80mm long) design.
Module keys: This determines how an M.2 device connects to a host (like a computer motherboard). There are A-key, E-key, B-key, and M-key. The first two are used mostly in Wi-Fi, Bluetooth, and cellular cards; SSDs only use B-key and M-key.
All variants of M.2 SSD have even smaller physical sizes than mSATA. So small that people tend to call M.2 devices “sticks” or “cards.”
M.2 SSD: B-key vs. M-key (SATA M.2 vs. NVMe M.2)
The M.2 keys are it gets confusing. M.2 SSDs are always super compact but not always necessarily fast. For compatibility reasons, many M.2 drives use the SATA speed standard and therefore are no different from SATA SSDs in terms of speed. Here’s the break-down:
- Original versions of M.2 SSDs use the B-key. They tend to use SATA speed standards and therefore are not faster regular SATA SSDs. Some B-key M.2 drives use the 2x PCIe speed standard and are slightly faster. These drives only fit in the B-key socket on a host (like a motherboard).
- Some M.2 SSDs use B & M key to fit in both B-key and M-key sockets. These drives also tend to use SATA or x2 PCIe speed standards.
- Latest M.2 SSDs use the M-key. These drives use x4 PCIe (or faster) speed standards and are the fastest SSDs on the market.
Generally, if you want the fastest performance, go with SSDs that use the M-key M.2 connector.
M.2 SSD speed
M.2 SSDs have a few (and growing) speed variations.
SATA-based M.2: SATA M.2 drives (like the Samsung 860 Evo) have the same speed as regular SATA SSDs (6Gbps).
PCIe-based M.2: M.2 drives that use PCI Express (PCIe) lanes to communicate with a host computer are labeled as NVMe (Non-Volatile Memory Express) M.2 drives. They have much faster speed than SATA SSDs and will get even faster in the future with new generations of PCIe as shown in the table below.
Specifically, currently, PCIe Gen 3 has a top speed of 8Gbps (985MB/s) per lane. That said, a PCIe x2 (two lanes) M.2 drive has the cap speed of up to 16Gbps. Similarly, a PCIe x4 SSD has a ceiling speed of up to 32Gbps.
In my experience, a good NVMe SSD (like the Samsung 970 Evo) can deliver sustained copy speeds of over 2,000MB/s. Future NVMe SSDs will be even faster, thanks to the faster lane speed of next-generation PCIe.
Solid-slate drives, especially NVMe SSDs, are the way of the future. Most modern motherboards and laptops now tend to include an NVMe M.2 socket. You can upgrade most desktops to an NVMe drive by using a PCIe adapter.
But the hard drive won’t go away, either. It still provides a low-cost storage solution where speed is not a big issue.
In a computer, it’s a great idea to use an SSD as the primary (boot) storage and a hard drive as a secondary backup storage space. You can certainly do that with a desktop computer, and there are more and more laptops that have space for both, too.
Dong’s note: I originally published this post on February 22, 2018, and updated it on June 3, 2020, with additional relevant information.