Abstract
Modern Solid State Drives (SSDs) have evolved into complex systems featuring dedicated processors, DRAM, and significant internal parallelism. Traditional simulation methods often force a choice between fast but inaccurate trace-based models and precise but prohibitively slow cycle-accurate simulators. SimpleSSD addresses this gap by providing a high-fidelity, modular simulator that integrates with full-system environments like gem5. By modeling the complete storage stack—from firmware algorithms to hardware parallelism—SimpleSSD enables researchers to evaluate how internal SSD characteristics impact overall system performance, such as CPU Instructions Per Cycle (IPC).
Introduction
In the current architectural landscape, the SSD is no longer a simple "slow disk" but a sophisticated peripheral. Computer architects face a significant challenge in simulating these devices effectively. Trace-based simulators are efficient but fail to capture the dynamic interaction between the CPU/OS and storage latency. Conversely, cycle-accurate simulators provide extreme precision at the cost of simulation speed, often taking days to simulate a single second of activity.
SimpleSSD is designed to simplify "nondescript" hardware features to maintain high simulation speeds while retaining high-fidelity models of the Flash Translation Layer (FTL) and hardware parallelism. This holistic approach allows for "full-system" simulation, where the CPU, memory, and storage are simulated in concert.
Architecture and Methodology
SimpleSSD utilizes a modular, layered architecture to balance the competing requirements of speed and accuracy. It separates the simulation into distinct functional blocks that mirror the actual structure of a modern SSD.
The framework is divided into three primary layers:
- Host Interface Layer (HIL): This layer manages the communication with the host system (e.g., gem5). It handles device-level queues and utilizes a "latency map table" to communicate request completion times back to the full-system simulator asynchronously.
- Flash Translation Layer (FTL): Acting as the "brain" of the SSD, this layer models logical-to-physical address mapping, garbage collection (GC), and wear-leveling. It is highly reconfigurable, allowing for the testing of various mapping granularities.
- Parallelism Allocation Layer (PAL): This layer simulates the physical hardware layout, disassembling requests and striping them across multiple channels, packages, and dies to model internal parallelism accurately.
Internal Logic and Data Flow
The internal operations of SimpleSSD are governed by a set of Function and Communication APIs that manage the flow of data from the initial host request to the final flash transaction.
A key innovation in SimpleSSD is its hardware abstraction. Rather than simulating gate-level transitions, it abstracts transactions into key activities while crucially modeling latency variation. In modern Triple-Level Cell (TLC) flash, writing to different pages within the same block (LSB vs. MSB pages) results in significantly different latencies. SimpleSSD captures these nuances, which are often overlooked in simpler models.
Evaluation and Key Results
The researchers validated SimpleSSD against a physical Intel 750 NVMe SSD using ATTO disk benchmark traces. The simulator achieved a remarkably low average error rate of 2.7% for basic I/O tasks and approximately 9% for complex, real-world workloads.
The evaluation spanned 13 full-system workloads, including ApacheBench and Filebench. Key findings include:
- System-Wide Impact: Storage performance directly influences CPU IPC. Transitioning from SLC to TLC flash can result in a drop of over 140% in system IPC for file-intensive tasks.
- Non-Uniform Latency: Workloads like
varmailshowed 32-34% shorter latencies on TLC-based SSDs compared to MLC-based ones because their write patterns favored faster LSB pages—a detail only visible through page-level modeling. - OS Layer Influence: For web servers like Apache, the SSD type had minimal impact because the OS's Virtual File System (VFS) page cache absorbed most requests, highlighting the necessity of full-system simulation.
Conclusion and Future Work
SimpleSSD provides a powerful tool for holistic system research, bridging the gap between speed and accuracy in SSD simulation. While highly effective, future iterations aim to include internal SSD buffer cache models, PCIe-enabled system/IO crossbars, and NVMe-specific interface models. Additionally, the team plans to integrate power and energy consumption models to provide a more comprehensive evaluation framework for modern storage systems.
Summary updated