ZnG: Architecting GPU Multi-Processors with New Flash for Scalable Data Analysis

Jie Zhang, Jie Zhang 0048, Myoungsoo Jung

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.

What Problem Does This Paper Address?

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.

Prior attempts to fix this, like HybridGPU, placed flash memory directly on the GPU board. However, they were crippled by two issues:

  1. The Controller Bottleneck: Traditional SSD controllers are too slow to handle the massive, parallel memory requests generated by thousands of GPU threads.
  2. Granularity Mismatch: GPUs request data in small 128-byte chunks, while flash memory prefers reading 4KB pages. This leads to massive bandwidth waste.

Methods

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)—which maps logical addresses to physical flash locations—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.
  • Fully-Associative Flash Registers: To handle writes efficiently, ZnG groups internal flash registers into a fully-associative cache, preventing "thrashing" when multiple threads write to different locations.

Datasets

The architecture was evaluated using 12 real-world GPU workloads known for being data-intensive. These were drawn from:

  • GraphBig: Benchmarks like Betweenness Centrality (betw), Breadth-First Search (bfs), and PageRank (pr).
  • Rodinia & Polybench: Scientific computing workloads including Gaussian elimination (gaus) and polyhedral benchmarks (FDT, gram).

The evaluation used the MacSim GPU simulator and SimpleSSD to model a system with an 800GB Z-NAND-based storage tier.

Key Insights and Ideas

  • The SSD Controller is the Enemy: The authors found that in previous designs, the SSD firmware/engine accounted for 67% of the total memory access latency. By moving FTL logic into the MMU and row decoders, they achieved "zero-overhead" translation.
  • Exploiting Read-Intensity: Most big data analysis is read-heavy. ZnG exploits this by using a simple, small (80KB) block-mapping table for reads in the MMU, while reserving more complex logic only for the infrequent writes.
  • 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 (causing cache thrashing), it dynamically throttles back.

Key Results

  • Massive Speedup: ZnG achieves 7.5x higher performance than HybridGPU and even outperforms systems using Intel Optane DC Persistent Memory by 1.9x.
  • Bandwidth Utilization: By using the NiF mesh and L2 buffering, ZnG utilizes the accumulated bandwidth of flash arrays much more effectively, reaching peaks near 1000 GB/s in internal array bandwidth.
  • 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

  • Garbage Collection (GC) Spikes: While ZnG handles GC via a "GPU helper thread," the process still causes performance dips. During GC, the performance of the specific application being cleaned can drop by up to 73% (though it actually helps other co-running apps by freeing up cache space).
  • Write Endurance: Although Z-NAND (SLC-based) has high endurance, the paper notes that write-intensive scientific workloads could still stress the medium. Future work could explore more advanced wear-leveling integrated into the GPU helper threads.
  • STT-MRAM Latency: While STT-MRAM offers great density for the L2 cache, its write latency is higher than SRAM, which ZnG mitigates by treating the L2 primarily as a read-only buffer.

Summary updated

BibTeX
@inproceedings{zhang2020zng,
  author = {Jie Zhang and Jie Zhang and Myoungsoo Jung},
  title = {{ZnG: Architecting GPU Multi-Processors with New Flash for Scalable Data Analysis}},
  booktitle = {Isca},
  year = {2020},
  doi = {10.1109/isca45697.2020.00090},
}
Figure