Sub topic 6
M.2 Slots and NVMe over PCIe
This chapter assumes you know what a motherboard, expansion slot, and SATA drive are, and that you are comfortable with units such as GB/s and Gbps. It covers how an M.2 slot relates to the two protocols that can run through it.
M.2 is a connector, not a protocol
M.2 is a small card format and slot. It defines the physical shape and which signals the slot carries. It does not decide how the drive talks to the computer. An M.2 slot can carry one of two kinds of traffic:
- SATA: the same protocol used by 2.5-inch SATA drives. It is limited to about 6 Gbps (roughly 550 MB/s in practice).
- NVMe: Non-Volatile Memory Express, a protocol built for flash storage. It runs over PCI Express (PCIe) lanes and is much faster.
An M.2 SSD is therefore not automatically fast. An M.2 SATA drive performs like any other SATA SSD. An M.2 NVMe drive can be five to ten times faster.
Why NVMe is faster
SATA was designed for spinning disks. NVMe talks to the CPU over PCIe lanes, which gives it more bandwidth and lets it handle many requests at once. A typical M.2 slot uses four PCIe lanes (x4). Each PCIe generation roughly doubles the speed per lane.
| Connection | Approximate maximum throughput |
|---|---|
| SATA III | 600 MB/s |
| NVMe, PCIe 3.0 x4 | about 3,500 MB/s |
| NVMe, PCIe 4.0 x4 | about 7,000 MB/s |
| NVMe, PCIe 5.0 x4 | about 14,000 MB/s |
Keys and sizes
M.2 drives have notches, called keys, that must match the slot.
- B key and M key are the two you will see on storage drives.
- M key drives use up to four PCIe lanes, so NVMe drives are normally M key.
- B+M key drives, often SATA, fit in both kinds of slot.
Sizes are written as width and length in millimetres. For example, 2280 means 22 mm wide and 80 mm long. Common lengths are 2242, 2260, 2280, and 22110. The motherboard has a standoff screw position for each length.
Common errors
- Assuming every M.2 slot supports NVMe. Some slots are SATA only, and some support both. Check the motherboard manual.
- Sharing bandwidth. On many boards, filling an M.2 slot disables a SATA port because they share lanes.
- Drive not detected. Check that the drive is fully seated and screwed down. Check that the slot is enabled in UEFI/BIOS. Check that the drive type matches what the slot supports.
- Mixing up mSATA and M.2. mSATA is an older, SATA-only format with a different connector. It does not fit in an M.2 slot.
Checking the drive type
On Windows, this command shows the bus type of each disk. An NVMe drive reports NVMe, and a SATA drive reports SATA.
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, BusType, SizeExercise
A technician installs a new M.2 SSD in a laptop. It works but reads at only about 550 MB/s. The laptop's spec sheet lists a PCIe 4.0 M.2 slot. What is the most likely explanation?
Show answer
The drive is an M.2 SATA model, not an NVMe model. M.2 is only the physical format, and a SATA drive in an M.2 slot is limited to SATA III speeds of about 600 MB/s. Replacing it with an M key NVMe drive would use the PCIe lanes.
Exercise
Which M.2 key type do NVMe SSDs normally use, and what does the number 2280 in a drive's name mean?
Show answer
NVMe SSDs normally use the M key. 2280 means the card is 22 mm wide and 80 mm long.