Skip to content

Latest commit

 

History

History
90 lines (58 loc) · 23 KB

SSD.md

File metadata and controls

90 lines (58 loc) · 23 KB

SSD

参考:

https://pcpepper.com/sata-vs-msata-vs-ngff-m-2-vs-nvme-pcie-m-2-which-is-the-right-ssd-for-me/

https://www.hp.com/us-en/shop/tech-takes/what-is-a-hybrid-hard-drive

Digest

solid-state hybrid drive 简称 SSD,中文叫固态硬盘

Types

根据接口 市面上主要有4种SSDs

  1. SATA SSD
  2. mSATA SSD
  3. NGFF M.2 SSD
  4. NVME PCIe M.2 SSD

接口和性能各有不同

SATA SSD

SATA SSD 使用和 HHD 一样的SATA(Serial Advanced Technology Attachment)接口,所以体积会比较大2.5inch。读写速率通常在450-550MB/s左右

Samsung-850-EVO-SSD

mSATA or Mini-SATA SSD

使用mSATA接口,小巧通常被用在laptop,速度和SATA SSD差不多,但是价格贵一点。

Transcend-mSATA-SSD

NGFF SSD

NGFF(Next Generation Form Factor) SSD,也被称为M.2 SSD,使用M.2接口(==PCIe mini card物理接口==)并且和mSATA设备不兼容。虽然mSATA接口兼容SATA1.0到SATA3.0,但是不兼容USB3.0和PCIe 3.0。但是M.2接口支持SATA3.0,USB3.0,PCIe 3.0

速率和SATA3.0 SSD 和 mSATA SSD差不多,但是同时有SATA和mSATA的优点

Samsung-860-EVO-M

NVME M.2 SSD

NVME M.2 SSD(使用PCIe mini card物理接口) 是目前市面上速度最快的SSD,同样使用M.2接口,但是使用NVMe协议。读写速度大约在3500到3000MB/s,价格相对较贵。主板需要支持NVME才行

Samsung-960-EVO-M

SSD VS HDD

  1. lack the physical spinning disks and movable read-rewrite heads. Assess data completely electronically instead of electromechanically

    以电子存取的方式替代机电存取,也就意味不需要转盘片寻址,也就没有噪音

  2. higher IOPS and lower latency; use non-volatile NAND flash memory

    高IO吞吐,低时延;使用 NAND 闪存

  3. less fragment

    几乎没有磁盘碎片

以下是摘自 wiki 的详细对比

Attribute or characteristic Solid-state drive Hard disk drive
Price per capacity SSDs generally are more expensive than HDDs and expected to remain so into the 2020s.[needs update][154] SSD price as of first quarter 2018 around 30 cents (US) per gigabyte based on 4 TB models.[155] Prices have generally declined annually and as of 2018 are expected to continue to do so. HDD price as of first quarter 2018 around 2 to 3 cents (US) per gigabyte based on 1 TB models.[155] Prices have generally declined annually and as of 2018 are expected to continue to do so.
Storage capacity In 2018, SSDs were available in sizes up to 100 TB,[156] but less costly, 120 to 512 GB models were more common. In 2018, HDDs of up to 16 TB[157] were available.
Reliability – data retention If left without power, worn out SSDs typically start to lose data after about one to two years in storage, depending on temperature. New drives are supposed to retain data for about ten years.[8] MLC and TLC based devices tend to lose data earlier than SLC-based devices. SSDs are not suited for archival use. If kept in a dry environment at low temperatures, HDDs can retain their data for a very long period of time even without power. However, the mechanical parts tend to become clotted over time and the drive fails to spin up after a few years in storage.
Reliability – longevity SSDs have no moving parts to fail mechanically so in theory, should be more reliable than HDDs. However, in practice this is unclear.[158] Each block of a flash-based SSD can only be erased (and therefore written) a limited number of times before it fails. The controllers manage this limitation so that drives can last for many years under normal use.[159][160][161][162][163] SSDs based on DRAM do not have a limited number of writes. However the failure of a controller can make an SSD unusable. Reliability varies significantly across different SSD manufacturers and models with return rates reaching 40% for specific drives.[148] Many SSDs critically fail on power outages; a December 2013 survey of many SSDs found that only some of them are able to survive multiple power outages.[164][needs update?] A Facebook study found that sparse data layout across an SSD's physical address space (e.g., non-contiguously allocated data), dense data layout (e.g., contiguous data) and higher operating temperature (which correlates with the power used to transmit data) each lead to increased failure rates among SSDs.[165] However, SSDs have undergone many revisions that have made them more reliable and long lasting. New SSDs in the market today use power loss protection circuits, wear leveling techniques and thermal throttling to ensure longevity.[166][167] HDDs have moving parts, and are subject to potential mechanical failures from the resulting wear and tear so in theory, should be less reliable than SSDs. However, in practice this is unclear.[158] The storage medium itself (magnetic platter) does not essentially degrade from reading and write operations. According to a study performed by Carnegie Mellon University for both consumer and enterprise-grade HDDs, their average failure rate is 6 years, and life expectancy is 9–11 years.[168] However the risk of a sudden, catastrophic data loss can be lower for HDDs.[169] When stored offline (unpowered on the shelf) in long term, the magnetic medium of HDD retains data significantly longer than flash memory used in SSDs.
Start-up time Almost instantaneous; no mechanical components to prepare. May need a few milliseconds to come out of an automatic power-saving mode. Drive spin-up may take several seconds. A system with many drives may need to stagger spin-up to limit peak power drawn, which is briefly high when an HDD is first started.[170]
Sequential access performance In consumer products the maximum transfer rate typically ranges from about 200 MB/s to 3500 MB/s,[171][172][173] depending on the drive. Enterprise SSDs can have multi-gigabyte per second throughput. Once the head is positioned, when reading or writing a continuous track, a modern HDD can transfer data at about 200 MB/s. Data transfer rate depends also upon rotational speed, which can range from 3,600 to 15,000 rpm[174] and also upon the track (reading from the outer tracks is faster). Data transfer speed can be up to 480 MB/s(experimental).[175]
Random access performance[176] Random access time typically under 0.1 ms.[177][178] As data can be retrieved directly from various locations of the flash memory, access time is usually not a big performance bottleneck. Read performance does not change based on where data is stored. In applications, where hard disk drive seeks are the limiting factor, this results in faster boot and application launch times (see Amdahl's law).[179][170] SSD technology can deliver rather consistent read/write speed, but when many individual smaller blocks are accessed, performance is reduced. Flash memory must be erased before it can be rewritten to. This requires an excess number of write operations over and above that intended (a phenomenon known as write amplification), which negatively impacts performance.[180] SSDs typically exhibit a small, steady reduction in write performance over their lifetime, although the average write speed of some drives can improve with age.[181] Read latency time is much higher than SSDs.[182] Random access time ranges from 2.9 (high end server drive) to 12 ms (laptop HDD) due to the need to move the heads and wait for the data to rotate under the magnetic head.[183] Read time is different for every different seek, since the location of the data and the location of the head are likely different. If data from different areas of the platter must be accessed, as with fragmented files, response times will be increased by the need to seek each fragment.[184]
Impact of file system fragmentation There is limited benefit to reading data sequentially (beyond typical FS block sizes, say 4 KiB), making fragmentation negligible for SSDs. Defragmentation would cause wear by making additional writes of the NAND flash cells, which have a limited cycle life.[185][186] However, even with SSDs there is a practical limit on how much fragmentation certain file systems can sustain; once that limit is reached, subsequent file allocations fail.[187] Consequently, defragmentation may still be necessary, although to a lesser degree.[187] Some file systems, like NTFS, become fragmented over time if frequently written; periodic defragmentation is required to maintain optimum performance.[188] This is usually not an issue in modern file systems.[citation needed][clarification needed]
Acoustic noise[189] SSDs have no moving parts and therefore are silent, although, on some SSDs, high pitch noise from the high voltage generator (for erasing blocks) may occur. HDDs have moving parts (heads, actuator, and spindle motor) and make characteristic sounds of whirring and clicking; noise levels vary depending on the RPM, but can be significant (while often much lower than the sound from the cooling fans). Laptop hard drives are relatively quiet.
Temperature control[190] A Facebook study found that at operating temperatures above 40 °C (104 °F), the failure rate among SSDs increases with temperature. However, this was not the case with newer drives that employ thermal throttling, albeit at a potential cost to performance.[165] In practice, SSDs usually do not require any special cooling and can tolerate higher temperatures than HDDs. Some SSDs, including high-end enterprise models installed as add-on cards or 2.5-inch bay devices, may ship with heat sinks to dissipate generated heat, requiring certain volumes of airflow to operate.[191] Ambient temperatures above 35 °C (95 °F) can shorten the life of a hard disk, and reliability will be compromised at drive temperatures above 55 °C (131 °F). Fan cooling may be required if temperatures would otherwise exceed these values.[192] In practice, modern HDDs may be used with no special arrangements for cooling.
Lowest operating temperature[193] SSDs can operate at −55 °C (−67 °F). Most modern HDDs can operate at 0 °C (32 °F).
Highest altitude when operating[194] SSDs have no issues on this.[195] HDDs can operate safely at an altitude of at most 3,000 meters (10,000 ft). HDDs will fail to operate at altitudes above 12,000 meters (40,000 ft).[196] With the introduction of helium-filled[197][198] (sealed) HDDs, this is expected to be less of an issue.
Moving from a cold environment to a warmer environment SSDs have no issues with this. Due to the thermal throttling mechanism SSDs are kept secure and prevented from the temperature imbalance. A certain amount of acclimation time may be needed when moving some HDDs from a cold environment to a warmer environment before operating them; depending upon humidity, condensation could occur on heads and/or disks and operating it immediately will result in damage to such components.[199] Modern helium HDDs are sealed and do not have such a problem.
Breather hole SSDs do not require a breather hole. Most modern HDDs require a breather hole in order to function properly.[196] Helium-filled devices are sealed and do not have a hole.
Susceptibility to environmental factors[179][200][201] No moving parts, very resistant to shock, vibration, movement, and contamination. Heads flying above rapidly rotating platters are susceptible to shock, vibration, movement, and contamination which could damage the medium.
Installation and mounting Not sensitive to orientation, vibration, or shock. Usually no exposed circuitry. Circuitry may be exposed in a card form device and it must not be short-circuited by conductive materials. Circuitry may be exposed, and it must not be short-circuited by conductive materials (such as the metal chassis of a computer). Should be mounted to protect against vibration and shock. Some HDDs should not be installed in a tilted position.[202]
Susceptibility to magnetic fields Low impact on flash memory, but an electromagnetic pulse will damage any electrical system, especially integrated circuits. In general, magnets or magnetic surges may result in data corruption or mechanical damage to the drive internals. Drive's metal case provides a low level of shielding to the magnetic platters.[203][204][205]
Weight and size[200] SSDs, essentially semiconductor memory devices mounted on a circuit board, are small and lightweight. They often follow the same form factors as HDDs (2.5-inch or 1.8-inch) or are bare PCBs (M.2 and mSATA). The enclosures on most mainstream models, if any, are made mostly of plastic or lightweight metal. High performance models often have heatsinks attached to the device, or have bulky cases that serves as its heatsink, increasing its weight. HDDs are generally heavier than SSDs, as the enclosures are made mostly of metal, and they contain heavy objects such as motors and large magnets. 3.5-inch drives typically weigh around 700 grams (1.5 lb).
Secure writing limitations NAND flash memory cannot be overwritten, but has to be rewritten to previously erased blocks. If a software encryption program encrypts data already on the SSD, the overwritten data is still unsecured, unencrypted, and accessible (drive-based hardware encryption does not have this problem). Also data cannot be securely erased by overwriting the original file without special "Secure Erase" procedures built into the drive.[206] HDDs can overwrite data directly on the drive in any particular sector. However, the drive's firmware may exchange damaged blocks with spare areas, so bits and pieces may still be present. Some manufacturers' HDDs fill the entire drive with zeroes, including relocated sectors, on ATA Secure Erase Enhanced Erase command.[207]
Read/write performance symmetry Less expensive SSDs typically have write speeds significantly lower than their read speeds. Higher performing SSDs have similar read and write speeds. HDDs generally have slightly longer (worse) seek times for writing than for reading.[208]
Free block availability and TRIM SSD write performance is significantly impacted by the availability of free, programmable blocks. Previously written data blocks no longer in use can be reclaimed by TRIM; however, even with TRIM, fewer free blocks cause slower performance.[80][209][210] HDDs are not affected by free blocks and do not benefit from TRIM.
Power consumption High performance flash-based SSDs generally require half to a third of the power of HDDs. High-performance DRAM SSDs generally require as much power as HDDs, and must be connected to power even when the rest of the system is shut down.[211][212] Emerging technologies like DevSlp can minimize power requirements of idle drives. The lowest-power HDDs (1.8-inch size) can use as little as 0.35 watts when idle.[213] 2.5-inch drives typically use 2 to 5 watts. The highest-performance 3.5-inch drives can use up to about 20 watts.