25 Eylül 2021 Cumartesi

13 Aralık 2019 Cuma

How Do SSDs Work? - ExtremeTech

How Do SSDs Work? - ExtremeTech

Here beygir ExtremeTech, we’ve often discussed the difference between different types of NAND structures — vertical NAND versus planar, or multi-level cell (MLC) versus triple-level cells (TLC) and quad-level cells (QLC). Now, let’s talk about the more basic relevant question: How do SSDs work in the first place, and how do they compare with newer technologies, like Intel’s non-volatile storage technology, Optane?

To understand how and why SSDsSEEAMAZON_ET_135 See Amazon ET commerce are different from spinning discs, we need to talk a little bit about hard drives. A hard drive stores data on a series of spinning magnetic disks called platters. There’s lahza actuator arm with read/write heads attached to it. This arm positions the read-write heads over the correct area of the drive to read or write information.

Because the drive heads must align over lahza area of the disk in order to read or write data (and the disk is constantly spinning), there’s a non-zero wait time before bilgi can be accessed. The drive may need to read from multiple locations in order to launch a program or load a file, which means it may have to wait for the platters to spin into the proper position multiple times before it can complete the command. If a drive is asleep or in a low-power state, it can take several seconds more for the disk to spin up to full power and begin operating.

From the very beginning, it was clear that hard drives couldn’t possibly match the speeds at which CPUs could operate. Latency in HDDs is measured in milliseconds, compared with nanoseconds for your typical CPU. One millisecond is 1,000,000 nanoseconds, and it typically takes a hard drive 10-15 milliseconds to find veri on the drive and begin reading it. The hard drive industry introduced smaller platters, on-disk memory caches, and faster spindle speeds to counteract this trend, ayak there’s only so fast drives can spin. Western Digital’s 10,000 RPM VelociRaptor family is the fastest set of drives ever built for the consumer market, while some enterprise drives spun up to 15,000 RPM. The problem is, even the fastest spinning drive with the largest caches and smallest platters are still achingly slow birli far birli your CPU is concerned.

How SSDs Are Different

“If I had asked people what they wanted, they would have said faster horses.” — Henry Ford

Solid-state drives are called that specifically because they don’t rely on moving parts or spinning disks. Instead, data is saved to a pool of NAND flash. NAND itself is made up of what are called floating gate transistors. Unlike the transistor designs used in DRAM, which must be refreshed multiple times per second, NAND flash is designed to retain its charge state even when not powered up. This makes NAND a type of non-volatile memory.

Flash cell structure

Image by Cyferz beygir Wikipedia, Creative Commons Attribution-Share Alike 3.0.

The diagram above shows a simple flash cell design. Electrons are stored in the floating gate, which then reads birli charged “0” or not-charged “1.” Yes, in NAND flash, a 0 means data is stored in a cell — it’s the opposite of how we typically think of a zero or one. NAND flash is organized in a grid. The entire grid layout is referred to birli a block, while the individual rows that make up the grid are called a page. Common page sizes are 2K, 4K, 8K, or 16K, with 128 to 256 pages per block. Block size therefore typically varies between 256KB and 4MB.

One advantage of this system should be immediately obvious. Because SSDs have no moving parts, they can operate at speeds far above those of a typical HDD. The following chart shows the access latency for typical storage mediums given in microseconds.

SSD-Latency

Image by CodeCapsule

NAND is nowhere near as fast birli main memory, ayak it’s multiple orders of magnitude faster than a hard drive. While write latencies are significantly slower for NAND flash than read latencies, they still outstrip traditional spinning media.

There are two things to notice in the above chart. First, note how adding more bits per cell of NAND has a significant impact on the memory’s performance. It’s worse for writes birli opposed to reads — typical triple-level-cell (TLC) latency is 4x worse compared with single-level cell (SLC) NAND for reads, ayak 6x worse for writes. Erase latencies are also significantly impacted. The impact isn’t proportional, either — TLC NAND is nearly twice birli slow birli MLC NAND, despite holding just 50% more bilgi (three bits per cell, instead of two). This is also true for QLC drives, which store even more bits beygir varying voltage levels within the same cell.

The reason TLC NAND is slower than MLC or SLC has to do with how bilgi moves in and out of the NAND cell. With SLC NAND, the controller only needs to know if the bit is a 0 or a 1. With MLC NAND, the cell may have four values — 00, 01, 10, or 11. With TLC NAND, the cell can have eight values, and QLC has 16. Reading the proper value out of the cell requires the memory controller to use a precise voltage to ascertain whether any particular cell is charged.

Reads, Writes, and Erasure

One of the functional limitations of SSDs is while they can read and write data very quickly to lahza empty drive, overwriting bilgi is much slower. This is because while SSDs read data beygir the page level (meaning from individual rows within the NAND memory grid) and can write at the page level, assuming surrounding cells are empty, they can only erase bilgi at the block level. This is because the act of erasing NAND flash requires a high amount of voltage. While you can theoretically erase NAND beygir the page level, the amount of voltage required stresses the individual cells around the cells that are being re-written. Erasing bilgi at the block level helps mitigate this problem.

The only way for an SSD to update lahza existing page is to copy the contents of the entire block into memory, erase the block, and then write the contents of the old block + the updated page. If the drive is full and there are no empty pages available, the SSD must first scan for blocks that are marked for deletion but that haven’t been deleted yet, erase them, and then write the data to the now-erased page. This is why SSDs can become slower as they age — a mostly-empty drive is full of blocks that can be written immediately, a mostly-full drive is more likely to be forced through the entire program/erase sequence.

If you’ve used SSDs, you’ve likely heard of something called “garbage collection.” Garbage collection is a background process that allows a drive to mitigate the performance impact of the program/erase cycle by performing certain tasks in the background. The following image steps through the garbage collection process.

Garbage collection

Image courtesy of Wikipedia

Note in this example, the drive has taken advantage of the fact that it can write very quickly to empty pages by writing new values for the first four blocks (A’-D’). It’s also written two new blocks, E and H. Blocks A-D are now marked as stale, meaning they contain information the drive has marked as out-of-date. During lahza idle period, the SSD will move the fresh pages over to a new block, erase the old block, and mark it as free space. This means the next time the SSD needs to perform a write, it can write directly to the now-empty Block X, rather than performing the program/erase cycle.

The next concept I want to discuss is TRIM. When you delete a file from Windows on a typical hard drive, the file isn’t deleted immediately. Instead, the operating system tells the hard drive it can overwrite the physical area of the disk where that veri was stored the next time it needs to perform a write. This is why it’s possible to undelete files (and why deleting files in Windows doesn’t typically clear much physical disk space until you empty the recycling bin). With a traditional HDD, the OS doesn’t need to pay attention to where bilgi is being written or what the relative state of the blocks or pages is. With an SSD, this matters.

The TRIM command allows the operating system to tell the SSD it can skip rewriting certain veri 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, bacak writes do far more damage than reads. Fortunately, block-level longevity has not proven to be lahza issue in modern NAND flash. More veri on SSD longevity, courtesy of the Tech Report, can be found here.

The last two concepts we want to talk about are wear leveling and write amplification. Because SSDs write bilgi to pages but erase data in blocks, the amount of veri 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 veri to update a 4KB file. Garbage collection reduces the impact of write amplification, birli does the TRIM command. Keeping a significant chunk of the drive free and/or manufacturer over-provisioning can also reduce the impact of write amplification.

Wear leveling refers to the practice of ensuring certain NAND blocks aren’t written and erased more often than others. While wear leveling increases a drive’s life expectancy and endurance by writing to the NAND equally, it can actually increase write amplification. In other to distribute writes evenly across the disk, it’s sometimes necessary to program and erase blocks even though their contents haven’t actually changed. A good wear leveling algorithm seeks to balance these impacts.

The SSD Controller

It should be obvious by now SSDs require much more sophisticated control mechanisms than hard drives do. That’s not to diss magnetic media — I actually think HDDs deserve more respect than they are given. The mechanical challenges involved in balancing multiple read-write heads nanometers above platters that spin beygir 5,400 to 10,000 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 beygir 3-5 cents per gigabyte is simply incredible.

SSD controller

A typical SSD controller

SSD controllers, however, are in a class by themselves. They often have a DDR3 or DDR4 memory pool to help with managing the NAND itself. Many drives also incorporate single-level cell caches that act as buffers, increasing drive performance by dedicating fast NAND to read/write cycles. Because the NAND flash in an SSD is typically connected to the controller through a series of parallel memory channels, you can think of the drive controller as performing some of the same load-balancing work as a high-end storage array — SSDs don’t deploy RAID internally etap wear leveling, garbage collection, and SLC cache management all have parallels in the big iron world.

Some drives also use veri compression algorithms to reduce the total number of writes and improve the drive’s lifespan. The SSD controller handles error correction, and the algorithms that control for single-bit errors have become increasingly complex as time has passed.

Unfortunately, we can’t go into too much detail on SSD controllers because companies lock down their various secret sauces. Much of NAND flash’s performance is determined by the underlying controller, and companies aren’t willing to lift the lid too far on how they do what they do, lest they hand a competitor an advantage.

Interfaces

In the beginning, SSDs used SATA ports, just like hard drives. In recent years, we’ve seen a shift to M.2 drives — very thin drives, several inches long, that slot directly into the motherboard (or, in a few cases, into a mounting bracket on a PCIe riser card. A Samsung 970 EVO Plus drive is shown below.


NVMe drives offer higher performance than traditional SATA drivers because they support a faster interface. Conventional SSDs attached via SATA top out at ~550MB/s in terms of practical read/write speeds. M.2 drives are capable of substantially faster performance into the 3.2GB/s range.

The Road Ahead

NAND flash offers an enormous improvement over hard drives, etap it isn’t without its own drawbacks and challenges. Drive capacities and price-per-gigabyte are expected to continue to rise and fall respectively, etap there’s little chance SSDs will catch hard drives in price-per-gigabyte. Shrinking process nodes are a significant challenge for NAND flash — while most hardware improves as the node shrinks, NAND becomes more fragile. Data retention times and write performance are intrinsically lower for 20nm NAND than 40nm NAND, even if veri density and total capacity are vastly improved. Thus far, we’ve seen drives with up to 96 layers in-market, and 128 layers seems plausible beygir this point. Overall, the shift to 3D NAND has helped improve density without shrinking process nodes or relying on planar scaling.

Thus far, SSD manufacturers have delivered better performance by offering faster data standards, more bandwidth, and more channels per controller — plus the use of SLC caches we mentioned earlier. Nonetheless, in the long run, it’s assumed NAND will be replaced by something else.

What that something else will look like is still open for debate. Both magnetic RAM and phase change memory have presented themselves as candidates, though both technologies are still in early stages and must overcome significant challenges to actually compete birli a replacement to NAND. Whether consumers would notice the difference is lahza open question. If you’ve upgraded from NAND to an SSD and then upgraded to a faster SSD, you’re likely aware the gap between HDDs and SSDs is much larger than the SSD-to-SSD gap, even when upgrading from a relatively modest drive. Improving access times from milliseconds to microseconds matters a great deal, but improving them from microseconds to nanoseconds might fall below what humans can really perceive in most cases.

Intel’s 3D XPoint (marketed as Intel Optane) has emerged as one potential challenger to NAND flash, and the only current alternative technology in mainstream production. Optane SSDs don’t use NAND — they’re built using non-volatile memory believed to be implemented similarly to phase-change RAM — üçgenin taban olmayan kenarı they offer similar sequential performance to current NAND flash drives, ayak with vastly better performance beygir low drive queues. Drive latency is also roughly half of NAND flash (10 microseconds, versus 20) and vastly higher endurance (30 full drive-writes per day, compared with 10 full drive writes per day for a high-end Intel SSD).

Optane1

Intel Optane performance targets

The first Optane SSDs have debuted as excellent add-ons for Kaby Lake and Coffee Lake.SEEAMAZON_ET_135 See Amazon ET commerce Optane is also available in standalone drives, and in a variety of server roles for enterprise computing. At the moment, Optane is still too expensive to match NAND flash, which benefits from substantial economies of scale, but this could change in the future. NAND will stay king of the hill for at least the next 3-4 years. Ayak past that point, we could see Optane starting to replace it in volume, depending on how Intel and Micron scale the technology and how well 3D NAND flash continues to expand its cell layers (96-layer NAND is shipping from multiple players), with roadmaps for 128 layers on the horizon.

Check out our ExtremeTech Explains series for more in-depth coverage of today’s hottest tech topics.

Now read:

The Worst CPUs Ever BuiltHappy 40th Anniversary to the Original Intel 8086The Myths of Moore’s Law

The Real-World AI Issue

The Real-World AI Issue

The term “artificial intelligence” was coined fairly recently in 1955, ayak the idea of smart machines that do our bidding has far deeper roots, going back to the ancient myths of Greece, India, and China. Perhaps that’s why AI has such an impact on our imagination, and why, in recent years, there’s been so much hype surrounding the technology.

Üçgenin Taban Olmayan Kenarı AI is anekdot a myth, nor is it a magical machine. It’s a technology like any other, that, after decades of research, has reached a new plateau of productivity. Cheap processing power and abundant bilgi have made this possible, and AI and machine learning are now useful tools in a diverse range of fields, including astronomy, health care, transportation, and music.

After years of promise, AI is finally becoming useful

After years of promise, AI is finally becoming useful. But what usually happens to useful technologies is that they disappear. We forget about the things that just work, and we shouldn’t let that happen to AI. Any technology destined to change the world needs scrutiny, and AI, with its combination of huge imaginative presence and very real, very dangerous failings, needs that scrutiny more than most.

So, for the AI Issue beygir The Verge, we’re taking a closer look beygir some of the ways artificial intelligence and machine learning are affecting technology right now — because it’s too late to understand something after it’s changed the world.

Start here The state of AI in 2019

29 Kasım 2019 Cuma

Dubai, Tesla Cybertrucks’ı polis arabası filosuna ekleyebilir

Dubai, Tesla Cybertrucks’ı polis arabası filosuna ekleyebilir

Dubai Polis Teşkilatı, vasıta filosuna Tesla Cybertruck eklemeyi düşünüyor. Polis teşkilatının garajında Bugatti Veyron, Lamborghini Aventador gibi lüks araçlar yer alıyor.

Dubai Polis Teşkilatı’na ait resmi Twitter hesabından 2020 başlığı ile atılan tweette Tesla Cybertruck’a, polis teşkilatının logolarının eklendiği görülüyor. Dubai Polis Başkomutanı Abdullah Khalifa Al Marri de Arabian Business’a yaptığı açıklamada Cybertruck’ların turistik bölgelerde güvenlik için kullanılacağını açıkladı. شرطة دبي – 2020 – Dubai Police #CyberTruck pic.twitter.com/V9rMPLgjS4 — Dubai Policeشرطة دبي (@DubaiPoliceHQ) November 26, 2019
Polis merkezinin vasıta filosunda Nissan GT-R, Lamborghini Gallardo, Bugatti Veyron hatta Hoverbike bile yer alıyor. 250 bin adet sipariş aldı Elon Musk, bir Twitter mesajında aracın bambaşka modellerine hiçbir reklam vermeden şimdiye değin 250 bin sipariş aldıklarını söyledi. “Geleceğe Dönüş” filminde süre yolculuğu yapılan DeLorean marka arabaya benzetilen Cybertruck’ın iki camı sahnedeki sağlamlık testi esnasında kırılmıştı. Üç saniyede 100 kilometre hıza ulaşabildiği belirtilen Cybertruck’ın yaklaşık 40 bin dolarlık en ucuz modeli, bir şarjla 402 kilometre gidebiliyor. 69 bin 900 dolarlık modelin menzili ise 804 kilometre. 6 karakter araç 1587 kilogram siklet taşıyabiliyor. CyberTruck dubai Dubai Polis Teşkilatı Tesla tesla cybertruck

Huawei’ye bir yasak da İspanya’dan geldi

Huawei’ye bir yasak da İspanya’dan geldi

La Informacion göre paylaşılan bir rapora göre, İspanya Savunma Bakanlığı Huawei’ye erişim yasağı getirdi.

Huawei, geçtiğimiz mayıs ayında ABD hükümeti tarafından casusluk yapmakla suçlanmış ve ABD’li şirketlerin Huawei kullanmasına yasaklanmış getirilmişti. Bu durumun Huawei’i negatif yönde etkileyeceği düşünülüyordu ancak bu durum şirketi beklendiği kadar etkilemedi. Buna karşın Çin ile ABD aralarında yaşanan ticaret savaşı da aynı ölçüde büyüdü. Şimdi ise Huawei, diğer bir yasakla aleyhinde karşıya kaldı. İspanya Savunma Bakanlığı, bütün Huawei cihazlarının alıngan bilgilere erişmesine yasaklanmış koydu. İspanya’da kullanıcılar Huawei cihazlarını kullanabilmekte.  Bu yasak yalnızca bakanlıkla ilgili alıngan verilerin olabileceği işlemler için geçerli durumda. Ancak e-postalar dahil olmak üzere İspanya Savunma Bakanlığı’nın sunucularından gelen verilere cihazlardan erişim sağlanamıyor. İspanya’nın Huawei’ye niçin erişim yasağı getirdiği ise henüz bilinmiyor. Hem ülke halkının ve bakanlık personelinin, bireysel uygulama için Huawei kullanması konusunda da herhangi bir ambargo bulunmuyor. İspanya’nın Huawei cihazlara ambargo getirmesinin nedeninin ABD’deki ile benzer olduğu düşünülüyor. Fakat konuya ilişkin açıklamalarda bulunan bir Huawei sözcüsü; böyle bir şeyin olmadığını, 30 yıldır 170’deri pozitif ülkede iş yaptıklarını ve emniyet konusunun Huawei için büyük bir tartı talep ettiğini söyledi. Huawei sözcüsü, şirketin bugüne kadar da herhangi bir siber güvenlik sorunu yaşamadığının altını çizdi. abd çin Huawei ispanya İspanya Savunma Bakanlığı yasaklanmış

Xbox, gelenekselleşen Kasım ayı indirim furyasına yeni indirimlerle katıldı

Xbox, gelenekselleşen Kasım ayı indirim furyasına yeni indirimlerle katıldı

25 Kasım Pazartesi günü başlayan kampanya kapsamında; 3 oyun hediyeli Xbox One S All-Digital 2299 TL yerine %40’a varan indirimiyle 1399 TL öğüt edilen satmak fiyatıyla kullanıcılara sunuluyor. En yeni dijital oyunlar ise %65’e varan indirimle oyun tutkunlarıyla buluşuyor.

Xbox, Kasım ayına özel eXtra Cuma kampanyasını, teknoloji mağazaları ve e-ticaret platformlarında geçerli elde etmek üzere 25 Kasım’da başlattı. 2 Aralık tarihine değin devam edecek kampanya kapsamında; disksiz yapısıyla uyarı çeken Xbox One S All-Digital, %40’a varan indirimle oyun severlerle buluştu. Normalde 2299 TL olan satış fiyatının önemli bir indirim oranıyla 1399 TL tutarına düşmesi oyun tutkunlarının yüzünü güldürdü. Konsolun yanı sıra en yeni dijital oyunlarda %65’e varan, Windows 10 ve IOS ile tam uyumlu Xbox kumandalarında dev indirimler uygulanıyor. En yeni model Xbox One S All-Digital, Türkiye’de satışa çıkmasının arkasından yoğun ilgi gördü. Bu yoğun ilginin eXtra Cuma indirimiyle daha da artması öngörülüyor. Alışılmışın haricen disksiz yapısıyla tüm dünyanın dikkatini çeken Xbox One S All-Digital, ayrıntılarıyla dijital oyunlardan oluşan kütüphanesiyle sınırsız oyun deneyimi sunuyor. Kusursuz 4K ve HDR görünüm deneyimi karşılayan konsol, multimedya özellikleriyle Netflix, YouTube, Spotify ve Microsoft Edge gibi uygulamaların en aktüel versiyonlarını kullanım imkânı tanıyor. Xbox’a özel oyun üyelik servisi olan Game Pass, aylık 29.99 TL fiyatıyla her ay yeni ve güncel oyunları kullanıcılarına sunuyor. PES 19, Forza Horizon 4 ve PUBG gibi oyunlara ek olarak çoğu popüler oyun içeren Xbox Game Pass ile 200’ün üzerinde oyuna sınırsız erişim sağlanıyor. Her türden ve herkese uygun oyunları içeren servis, kullanıcıları aralıksız oyun alma derdinden kurtarıyor. efsane cuma Xbox xbox indirim Xbox One S All-Digital