All about SSDs: Difference between revisions
Line 25: | Line 25: | ||
===M.2=== | ===M.2=== | ||
M.2 SSDs are slightly narrower than mSATA at (usually) 22mm, and coming in several standard lengths up to 110mm. Confusingly, there are two different flavours, and the terminology only adds to the confusion. They are distinguished by a keying notch in the edge connector which can be in one (or both) of two different posions, known as B key and M key. | M.2 SSDs are slightly narrower than mSATA at (usually) 22mm, and coming in several standard lengths up to 110mm. Confusingly, there are two different flavours, and the terminology only adds to the confusion. They are distinguished by a keying notch in the edge connector which can be in one (or both) of two different posions, known as B-key and M-key. | ||
NGFF is another name for M.2. These cards are often described as NVMe, which is the name of the software driver for PCIe interface devices. | NGFF is another name for M.2. These cards are often described as NVMe, which is the name of the software driver for PCIe interface devices. | ||
Beware: the B and M key positions are almost symetrically | Beware: the B and M key positions are almost symetrically placed, which means that you may be able to force a B-key card upside down into an M-key connector (or vice versa) if you got the wrong sort. But you will almost certainly kill it in the process! | ||
====B key==== | ====B-key==== | ||
B key M.2 cards (sometimes known as Socket 2) may optionally also have the M key (but the reverse is not true). They offer two PCIexpress SATA channels (described in specifications as PCIe x2), SMBus for management and a USB interface on the edge connector. | B-key M.2 cards (sometimes known as Socket 2) may optionally also have the M-key (but the reverse is not true). They offer two PCIexpress SATA channels (described in specifications as PCIe x2), SMBus for management and a USB interface on the edge connector. | ||
More recent laptop WiFi cards are frequently B key devices, communicating with the motherboard using the USB connection. | More recent laptop WiFi cards are frequently B key devices, communicating with the motherboard using the USB connection. | ||
====M key==== | ====M-key==== | ||
M key boards (sometimes known as socket 4) offer four PCIexpress SDATA channels (descrbed in specifications as PCIe x4) and so can transfer data twice as fast. They also offer SMBus for management but not USB. | M-key boards (sometimes known as socket 4) offer four PCIexpress SDATA channels (descrbed in specifications as PCIe x4) and so can transfer data twice as fast. They also offer SMBus for management but not USB. | ||
===NGSFF or NF1=== | ===NGSFF or NF1=== |
Revision as of 07:22, 31 August 2019
Solid State Disks (SSDs) come in a variety of shapes and sizes and they work in a totally different way to a conventional hard disk. Whether you're replacing a failed SSD or upgrading from a hard disk, these are things you may need to know about.
Summary
This page is in two main sections: firstly we discuss the different shapes, sizes and types of SSD, and then we explain how they work and hence how they need to be treated differently from a hard disk.
But first let's get one thing straight: a Solid State Disk is no more solid than a hard disk, and it isn't even disk-shaped! (The only liquid state computer memory that has ever been used was the mercury delay line, and those went out of fashion in the 1950's!) An SSD would be better called semiconductor, electrostatic, non-magneting or non-rotating storage, but we're stuck with the name we've got.
Safety
- Consider whether your page should include a specific section on safety.
Shapes and Sizes
The commonest and perhaps the most familiar SSDs are direct replacements for hard drives but modern ultra-thin laptops often use different sorts, and here it can start to get confusing.
2.5" SATA
These are identical in size and shape and the type of connector to 2.5" hard drives, except that they are lighter and usually only 7mm think whereas 2.5" hard drives can be up to 15mm for the higher capacities. Therefore you may need to add some kind of packing if upgrading a 2.5" hard drive to an SSD in order to retain it in its bay.
1.8" MicroSATA or μSATA
These are similar to 2.5" SATA drives but in a 1.8" form factor and with a smaller version of the SATA connector. These are sometimes used in smaller devices such as netbooks.
MiniSATA or mSATA
Considerably smaller still are mSATA SSDs, simply consisting of a small circuit board about the size of a business card. They have a gold plated edge connector fitting into a socket similar to a RAM socket and two holes for fixing screws at the corners of the opposite edge.
Older internal laptop WiFi cards have the same dimensions and connector.
M.2
M.2 SSDs are slightly narrower than mSATA at (usually) 22mm, and coming in several standard lengths up to 110mm. Confusingly, there are two different flavours, and the terminology only adds to the confusion. They are distinguished by a keying notch in the edge connector which can be in one (or both) of two different posions, known as B-key and M-key.
NGFF is another name for M.2. These cards are often described as NVMe, which is the name of the software driver for PCIe interface devices.
Beware: the B and M key positions are almost symetrically placed, which means that you may be able to force a B-key card upside down into an M-key connector (or vice versa) if you got the wrong sort. But you will almost certainly kill it in the process!
B-key
B-key M.2 cards (sometimes known as Socket 2) may optionally also have the M-key (but the reverse is not true). They offer two PCIexpress SATA channels (described in specifications as PCIe x2), SMBus for management and a USB interface on the edge connector.
More recent laptop WiFi cards are frequently B key devices, communicating with the motherboard using the USB connection.
M-key
M-key boards (sometimes known as socket 4) offer four PCIexpress SDATA channels (descrbed in specifications as PCIe x4) and so can transfer data twice as fast. They also offer SMBus for management but not USB.
NGSFF or NF1
This is yet another type of SSD, slightly larger than M.2 but still using an M-key connector. However, they are not compatible and are mainly used in servers in a tray conmtaining a number of such cards.
Under the Bonnet
Unlike a hard disk, an SSD contains no moving parts or delicate mechanisms and so is much more rugged and tolerant of physical shock and also requires less power. But that's only the beginning.
The way in which an SSD works is radically different from a hard disk is several respects:
- An SSD stores data as electrostatic charges on a silicon chip whereas a hard disk stores it as patterns of magnetism in a spinning magnetic disk.
- When you write data to a hard disk it simply overwrites any previous data in the same location whereas you can't write zeros to an SSD, you can only write ones (all data consists of ones and zeros). Hence the area you want to write to has to be erased (set to all zeros) before you start writing.
- You can't erase a little bit of an SSD here and a little bit there. It only allows you to erase quite large block of memory at a time.
- You can write to a hard disk as many times as you like without wearing out the magnetic surface, but writing to an SSD causes wear. An SSD will therefore choose where to put your data in order to spread out the wear and will itself remember where it put it. This is known as wear-levelling.
A consequence of all that is that as you create, edit and delete files, more and more blocks of storage will contain some data which is still current and quite a lot which is not (deleted and old versions of files, known as "stale" data). Eventually you would end up with no empty blocks to write new data to even though the SSD might only be half full of current data. To deal with this problem the operating system (Windows, MacOS or Linux) tells the SSD which data is no longer needed through a process known as TRIM, and as a background task, the SSD tries consolidate the current data into fewer blocks, freeing up blocks which can then be erased and re-used. This process is known as garbage collection.
All this represents a lot of work for an SSD to keep track of where it's put all your data and which bits of it are still needed and which aren't. So if anything goes wrong it can go very badly wrong, leaving the SSD totally confused and no longer able to operate. This might happen, for example, if power is suddenly lost or a power surge occurs while the SSD was in the middle of doing garbage collection, even though SSDs (certainly the better ones) are deigned to cope with such an eventuality. By contrast, when a hard disk fails it often does so more gracefully with increasingly frequent read errors, giving you more chance to recover your data. They may therefore be more suitable than SSDs for backup.
External links
- External links (if any) as bullet points.
- If non, delete this section.