Sub topic 3
Solid-state drives: NAND flash with no moving parts
This chapter assumes you know what a hard disk drive is, which the previous chapter covered. It also assumes you know the difference between storage and RAM, and that you are comfortable with units such as GB, TB, and MB/s. Form factors and interfaces (SATA, M.2, NVMe) get their own chapters, so this one covers what is inside the drive and how it behaves.
What an SSD is
A solid-state drive (SSD) stores data in NAND flash memory chips. NAND flash is non-volatile, so it keeps data with the power off. An SSD has no platters, spindle, or read/write heads. Nothing spins and nothing moves, which explains most of its advantages over a hard disk drive (HDD).
An SSD has three main parts:
- NAND flash chips hold the data.
- The controller is a small processor that manages the chips. It handles reads, writes, error correction, and wear management.
- A cache speeds up access. Many drives include a DRAM chip that holds the map of where data lives. Cheaper drives skip it.
The controller reads several chips at once, much as striping spreads data across drives. That parallelism is a large part of why SSDs are fast.
How NAND flash stores data
A NAND cell holds electrical charge. The charge level represents bits. Cells are grouped into pages (typically a few KB), and pages are grouped into blocks (hundreds of pages). This structure leads to a rule that shapes SSD behavior:
- You can read and write at the page level.
- You can only erase a whole block.
- A page must be erased before it can be rewritten.
To change data in one page, the controller writes the new version to a free page elsewhere and marks the old page as stale. Later it collects stale pages and erases their blocks. This background cleanup is called garbage collection.
Cell types
Manufacturers store more than one bit per cell to raise capacity and lower cost. The trade-off is lower endurance and slower writes.
| Type | Bits per cell | Endurance | Speed | Cost | Typical use |
|---|---|---|---|---|---|
| SLC | 1 | Highest | Fastest | Highest | Industrial, enterprise caches |
| MLC | 2 | High | Fast | High | Older enterprise and prosumer drives |
| TLC | 3 | Moderate | Good | Moderate | Most consumer drives |
| QLC | 4 | Lowest | Slower sustained writes | Lowest | Read-heavy, budget, high capacity |
Many TLC and QLC drives set aside part of the flash to act as SLC for fast bursts. This is an SLC cache. Writes are fast until the cache fills. After that, speed drops to the native speed of the cells. This is why a cheap drive can benchmark well on a short test and then slow down during a large file copy.
Wear, endurance, and the features that manage it
Each erase cycle wears the cells slightly. Cells eventually lose the ability to hold charge reliably. The controller uses several techniques to extend the drive's life:
- Wear leveling spreads writes evenly across all blocks, so no single block wears out early.
- Over-provisioning reserves spare flash that the user cannot see. The controller uses it for garbage collection and for replacing worn blocks.
- TRIM is a command from the operating system that tells the drive which blocks no longer hold useful data, such as deleted files. The drive can then erase them in advance instead of during a later write.
- Error correction (ECC) repairs bit errors in data as it is read.
Endurance is rated in TBW (terabytes written) or DWPD (drive writes per day). A consumer 1 TB TLC drive might be rated for several hundred TBW. Normal desktop use rarely approaches that. Servers and write-heavy workloads can.
SSD versus HDD
| Factor | SSD | HDD |
|---|---|---|
| Speed | Much faster, especially random access | Slower, limited by seek time and rotation |
| Durability | Handles shock and vibration well | Moving parts can fail if dropped or bumped |
| Noise | Silent | Audible spinning and clicking |
| Power and heat | Lower | Higher |
| Cost per GB | Higher | Lower |
| Maximum capacity | Large, but costly at the top end | Very large at low cost |
| Failure pattern | Often wears out gradually, but can fail suddenly (for example, a controller fault) | Often shows warning signs such as clicking and bad sectors |
A solid-state hybrid drive (SSHD) combines a small amount of flash with a spinning platter in one 2.5-inch or 3.5-inch unit. It caches frequently used data in the flash. It costs less than a full SSD, and it still has moving parts.
Checking whether a drive is an SSD
Operating systems report the drive type, which helps when you are troubleshooting a system you did not build.
On Windows, this PowerShell command lists each disk with its media type, bus type, and size:
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, BusType, SizeOn Linux, this command lists whole disks. A ROTA value of 1 means a rotational drive (HDD), and 0 means non-rotational (SSD):
lsblk -d -o NAME,ROTA,SIZE,TYPECommon errors and gotchas
- Assuming "SSD" means "NVMe". SSD describes the storage technology. A SATA SSD and an NVMe SSD are both SSDs, and they use different interfaces and have very different peak speeds. The interface chapters cover this.
- Filling the drive. A drive that is almost full has little free space for garbage collection and over-provisioning. Write speed and lifespan both suffer. Leaving some free space is good practice.
- Expecting secure deletion from a simple erase. Wear leveling means old data may sit in blocks the operating system cannot see. Use the drive's secure erase or encryption features to sanitize an SSD.
- Ignoring power-loss risk. A sudden power cut during a write can corrupt data or the mapping table. Enterprise drives often include power-loss protection capacitors. Cheap consumer drives often do not.
- Treating a slowdown as a failure. A sustained-write slowdown after the SLC cache fills is normal behavior for the drive. It does not indicate a fault. A drive that disappears from the system or reports errors in its SMART data is a different matter.
Exercise
A technician finds a laptop that is slow when copying a 60 GB video file. The copy starts at 2,000 MB/s and falls to about 150 MB/s partway through. The drive is a budget QLC SSD that is 95 percent full. Give two likely causes for the slowdown, and say whether the technician should run a defragmentation tool to fix it.
Show answer
Two likely causes are that the drive's SLC cache filled up, so writes dropped to the native QLC speed, and that the drive is nearly full, which leaves little room for garbage collection and over-provisioning. The technician should not defragment. An SSD has no heads, so defragmentation does nothing useful and adds wear. Freeing space and letting the OS run TRIM are better steps.