How do ssd work




















As those instructions are called up, sometimes up to 50 times a second, the arm pivots at one end and moves the heads in unison over the platters. Once a head arrives at a certain location on a platter, an electromagnet produces a magnetic field, which aligns data-carrying domains in the underlying track. Each domain can be aligned in one of two possible directions -- 1 or 0. As these alignments change, they form patterns that correspond to discrete chunks of digital information.

The NAND flash of a solid-state drive stores data differently. Recall that NAND flash has transistors arranged in a grid with columns and rows. If a chain of transistors conducts current, it has the value of 1.

If it doesn't conduct current, it's 0. At first, all transistors are set to 1. But when a save operation begins, current is blocked to some transistors, turning them to 0. This occurs because of how transistors are arranged. At each intersection of column and row, two transistors form a cell. One of the transistors is known as a control gate , the other as a floating gate. When current reaches the control gate, electrons flow onto the floating gate, creating a net positive charge that interrupts current flow.

By applying precise voltages to the transistors, a unique pattern of 1s and 0s emerges. NAND flash comes in two flavors based on how many 1s and 0s can be stored in each cell.

MLC flash delivers higher capacity, but it wears out more quickly yes, wears out -- we'll cover that more in a couple of pages. Still, it's less expensive per gigabyte than SLC and, as a result, is the preferred technology in almost all consumer-level SSDs.

Cost has been one of the biggest hurdles of flash memory and, consequently, of solid-state drives. But in recent years, costs have dropped significantly. At the same time, advances in NAND flash development have taken what's good about the technology and made it even better. Up next, we'll look at the advantages of solid-state drives.

You've invested in a top-of-the-line laptop with a gigabyte hard drive, and it's working great. You've got all your photos and videos, your entire music library, five half-finished novels and applications galore packed onto the drive's platters. Why would you consider swapping the HDD for a solid-state drive? Didn't Dad always say, "If it ain't broke, don't fix it"? Maybe Dad didn't own any hard drives. The harsh reality is that HDDs can and do fail, often more frequently than their technical specs would seem to suggest.

For example, hard drive manufacturers rate the reliability of their products using a measurement known as mean time between failures , or MTBF. A typical consumer hard drive has a MTBF rating of , hours, meaning that, in a sample of drives tested, there would be one failure every , hours of testing. That's one failure every 57 years, which sounds pretty good, right?

Unfortunately, MTBF scores are misleading. They come from a statistical evaluation based on a small sample size and a short amount of time. In reality, you'd also want to consider a typical HDD's warranty and service life three to five years or so , along with the MTBF score. Because they have no moving parts, SSDs can deliver improved reliability. They can rate up to 2. An even bigger deal is the performance of solid-state drives compared to HDDs.

With no moving heads and spinning platters, SSDs can access one piece of data as quickly as any other piece, even if they aren't in the same proximity. Projections from stated that shipments of HDD units would continue to decline over the coming years as SSD usage grows. There continues to exist a significant market share for traditional hard disk drives HDD. As pricing continues to fall and raid array usage provides a large amount of storage space, SMBs often take advantage of the lowered total cost of ownership traditional storage mediums offer.

The lower costs associated with large HDDs versus the newer SSDs medium permit a reliable alternative option for many businesses, depending on their needs. There are multiple offerings when it comes to SSD storage space options: portable, pocket-sized flash drives, external SSD drives, and the server-side internal SSD drives. For servers, the Seagate Lyve Drive Mobile Array now provides an isolated, high-performance, 6-bay storage SSD drive array, which is sturdy and easily transported.

SSD drives have no moving parts to wear down or break, which provides better performance and improved reliability over regular hard drives.

Additionally, SSDs provide enhanced data integrity and endurance since they retain data even when not powered up. This being said, SSDs do have a downside. There is a finite number of writes available, which will cause the eventual need for a replacement SSD drive to be employed. Additionally, some drives may arrive from the factory with degraded blocks or pages, which can cause an exponentially faster breakdown and cause the early failure of the drive.

Granted, this is a rarity, but it can occur. Modern SSD producers are keenly aware of this issue and, in response, usually add additional memory cells to compensate for this loss. This addition is commonly called over-provisioning and typical for most major manufacturers. Other techniques manufacturers use to prevent issues are called garbage collection.

This process identifies when pages become stale and act to copy an entire block that has both good data and stale pages, and then moves the good pages to an alternate block, and then erases the original block entirely. Additionally, the OS can use a command called Trim. Trim is a command that is sent to an SSD to signal that specific pages or blocks no longer contain valid data. As with all SSD processes, the continual use of these commands increases the number of writes, which contributes to the overall decline of the drive lifespan.

A typical SSD has access speeds of 40 to microseconds, which is nearly times faster than a standard hard disk drive. Increased access speed means programs can run quicker and work gets done with less stress on the server. Because every storage block is available at the same speed as every other storage block, the rate at which data is accessed and provided is exponentially enhanced.

SSDs require less power and cooling than other types of storage media. SSDs produce less heat than a regular hard disk drive, which lowers the need for heat dissipation. Instead, the operating system tells the hard drive it can overwrite the physical area of the disk where that data was stored the next time it needs to perform a write.

With an SSD, this matters. The TRIM command allows the operating system to tell the SSD it can skip rewriting certain data the next time it performs a block erase. This lowers the total amount of data the drive writes and increases SSD longevity. Both reads and writes damage NAND flash, but writes do far more damage than reads. Fortunately, block-level longevity has not proven to be an issue in modern NAND flash. The last two concepts we want to talk about are wear leveling and write amplification.

Because SSDs write data to pages but erase data in blocks, the amount of data being written to the drive is always larger than the actual update. If you make a change to a 4KB file, for example, the entire block that 4K file sits within must be updated and rewritten. Depending on the number of pages per block and the size of the pages, you might end up writing 4MB worth of data to update a 4KB file.

Garbage collection reduces the impact of write amplification, as does the TRIM command. A good wear leveling algorithm seeks to balance these impacts. It should be obvious by now SSDs require much more sophisticated control mechanisms than hard drives do. The mechanical challenges involved in balancing multiple read-write heads nanometers above platters that spin at 5, to 10, RPM are nothing to sneeze at.

The fact that HDDs perform this challenge while pioneering new methods of recording to magnetic media and eventually wind up selling drives at cents per gigabyte is simply incredible. SSD controllers , however, are in a class by themselves.

The SSD controller handles error correction, and the algorithms that control for single-bit errors have become increasingly complex as time has passed. While cache and RAM operate at speeds in nano seconds, a traditional hard disk drive operates at speeds in milli seconds. In essence, the data drive is the bottleneck: no matter how fast everything else is, a computer can only load and save data as fast as the data drive can handle it. This is where SSDs step in.

This can significantly cut the amount of time it takes to load various programs and processes, and will make your computer feel much faster. The difference is that SSDs use a type of memory called "flash memory," which is similar to RAMbut unlike RAM, which clears its data whenever the computer powers down, the data on an SSD persists even when it loses power.

If you took apart a typical HDD, you'd see a stack of magnetic plates with a reading needlekind of like a vinyl record player. Before the needle can read or write data, the plates have to spin around to the right location. On the other hand, SSDs use a grid of electrical cells to quickly send and receive data.

These grids are separated into sections called "pages," and these pages are where data is stored. Pages are clumped together to form "blocks. Why is this necessary to know? Because SSDs can only write to empty pages in a block.

In HDDs, data can be written to any location on the plate at any time, and that means that data can be easily overwritten. SSDs can't directly overwrite data in individual pages. They can only write data to empty pages in a block.



0コメント

  • 1000 / 1000