TL;DR
ZnG (Z-NAND on GPU) is a novel architecture that replaces limited, power-hungry GPU DRAM with high-capacity, ultra-low-latency Z-NAND flash. By eliminating the traditional SSD controller bottleneck and integrating flash management directly into the GPU’s memory hardware, ZnG enables GPUs to process massive datasets—up to 64x larger than DRAM allows—with a 7.5x performance boost over previous flash-integrated designs.
The Memory Wall
Modern GPUs are powerhouses for data-intensive tasks like graph analysis and big data processing. However, they hit a "memory wall": on-board DRAM is expensive, power-intensive, and physically limited in capacity (usually a few dozen GBs). When a dataset exceeds this capacity, the system typically "swaps" data from an external NVMe SSD. This process is agonizingly slow because data must travel over the PCIe bus, through the CPU, and into host memory before reaching the GPU.
As illustrated in the figure above, Z-NAND provides up to 64x the memory density of GDDR5 while consuming a fraction of the power per gigabyte (0.02 W/GB vs. 5.00 W/GB), making it an ideal candidate for high-capacity GPU memory.
The Bottleneck
Prior attempts to overcome the memory wall, such as HybridGPU, placed flash memory directly on the GPU board. However, they were crippled by two primary issues:
- The Controller Bottleneck: Traditional SSD controllers are too slow to handle the massive, parallel memory requests generated by thousands of GPU threads.
- Granularity Mismatch: GPUs request data in small 128-byte chunks, while flash memory prefers reading 4KB pages. This leads to massive bandwidth waste.
The "Performance gap" identified in the figure above shows that while raw flash read bandwidth is high (341.30 GB/s), the SSD engine (controller) limits throughput to a tiny fraction of that potential (4.80 GB/s), creating a massive bottleneck below the GDDR5 performance line.
Innovations in ZnG
The authors propose ZnG, an architecture that treats flash not as a peripheral, but as a primary memory tier. Key innovations include:
- Removing the Middleman: ZnG eliminates the discrete SSD controller. Instead, multiple flash controllers are attached directly to the GPU’s internal interconnect network.
- Zero-Overhead FTL: The Flash Translation Layer (FTL) is offloaded. Read-only block mapping is integrated into the GPU’s Memory Management Unit (MMU), while a "log page mapping table" is implemented directly in the flash's hardware row decoders.
- Network-in-Flash (NiF): To solve the bandwidth bottleneck of traditional serial flash channels, the authors designed a mesh-based internal network for the flash packages, allowing for higher parallel throughput.
- STT-MRAM L2 Cache: Since Z-NAND has higher latency than DRAM, ZnG replaces the standard SRAM L2 cache with STT-MRAM. This increases L2 capacity by 4x, allowing it to act as a massive buffer for the 4KB pages fetched from flash.
- Predictive Prefetching: Because flash reads are "chunky" (4KB), ZnG uses a hardware predictor to see if a thread is likely to need the rest of a 4KB page. If the "waste ratio" is low, it prefetches; if it’s high, it dynamically throttles back to prevent cache thrashing.
Evaluation and Results
The architecture was evaluated using 12 real-world GPU workloads from GraphBig, Rodinia, and Polybench, using the MacSim GPU simulator and SimpleSSD.
- Massive Speedup: ZnG achieves 7.5x higher performance than HybridGPU and outperforms systems using Intel Optane DC Persistent Memory by 1.9x.
- Latency Reduction: The dynamic prefetcher and STT-MRAM L2 cache reduced the number of redundant flash reads by 87%.
- Predictor Accuracy: The PC-based hardware predictor achieved an average accuracy of 93%.
Limitations and Future Work
While ZnG offers a significant leap forward, some challenges remain. Garbage Collection (GC) spikes can cause performance dips of up to 73% for specific applications. Additionally, while Z-NAND has high endurance, write-intensive scientific workloads could still stress the medium. Future work may explore more advanced wear-leveling and GC management integrated into GPU helper threads.
Summary updated