Phase-Change Memory vs NAND Flash: The Storage-Class Memory Wager
For forty years the memory hierarchy has been a compromise between speed and price, with a conspicuous gap between DRAM and flash. DRAM is fast and volatile; NAND is persistent and dense but behaves nothing like memory. Phase-change memory is the most persistent attempt to fill that gap, and its failure to replace NAND says as much about economics as it does about physics. The interesting…
Phase-change memory and NAND flash are competing for the storage-class memory market, with each offering unique advantages and disadvantages. DRAM and flash have a long history as the memory hierarchy, with DRAM being fast and volatile while NAND is persistent and dense but lacking in memory-like behavior. Phase-change memory aims to bridge this gap, but its failure to replace NAND indicates a complex interplay between economics and physics.
NAND flash stores information as charge, using a floating-gate or charge-trap transistor that shifts electrons onto an isolated region to encode bits. Reading is a sense operation, while writing requires a program operation that increases threshold voltage and erasing necessitates pulling the whole block back to a low state. This erase granularity, often a block of hundreds of kilobytes to megabytes, leads to update inefficiencies such as reading the block, modifying it in RAM, and rewriting it elsewhere. This indirection causes garbage collection and write amplification.
Phase-change memory, on the other hand, stores information in material state. A chalcogenide alloy such as Ge2Sb2Te5 can transition between a crystalline phase that conducts well and an amorphous phase that resists current. A short, high-current pulse heats a small region past its melting point and quenches it into the disordered state, while a longer, lower pulse holds it above crystallization temperature long enough to order the lattice.
This transition enables byte-addressable access, eliminating the need for erase steps and block granularity. Consequently, phase-change memory exhibits lower latency compared to NAND flash, which has a read latency of tens of microseconds, two orders of magnitude apart.
The material difference also impacts endurance. NAND flash's erase-rewrite cycle puts stress on the tunnel oxide, eventually leading to error accumulation and reduced error correction capabilities. In contrast, phase-change switching is a reversible structural transition, resulting in a much higher endurance, typically several orders of magnitude beyond NAND flash. However, resistance drift in the amorphous state and slow crystallization remain engineering challenges.
The software interface for both technologies is crucial. NAND flash is accessed through a block device driver and a filesystem, requiring multiple system calls, page cache lookups, and controller round trips for every access. In contrast, phase-change memory is reached through ordinary load and store instructions against a memory-mapped region, with cache-line flushes and memory fences ensuring durability.
Libraries like PMDK and filesystems like DAOS have been developed to manage these semantics, but the absence of such software layers diminishes the hardware's latency advantage.
Cost per bit is another critical factor. NAND flash's manufacturing processes allow for extremely high densities, resulting in a low cost per gigabyte. Phase-change memory, however, requires a larger selector and heater structure, along with a more complex material stack. At equal capacities, phase-change memory remains significantly more expensive per bit, limiting its applicability to workloads that value latency and endurance.
This has resulted in a narrow addressable market for phase-change memory, contributing to its historical struggles in the commercial sector.
Despite these challenges, the storage-class memory market is projected to grow to $12 billion by 2030, driven by specialized tiers rather than a wholesale replacement of flash memory. The future of storage-class memory is likely to be hierarchical, with DRAM at the top, a persistent byte-addressable tier for hot mutable data, NAND flash for bulk storage, and object storage for cold archives.
Real-world applications, such as game consoles, further illustrate these trade-offs, with modern titles streaming textures and geometry from flash drives.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to