TL;DR
This paper introduces Physically Addressed Queueing (PAQ), a novel scheduling algorithm for SSDs that leverages physical addresses to overcome performance bottlenecks in random read operations. By intelligently grouping and scheduling requests based on their physical location, PAQ significantly boosts bandwidth and IOPS while reducing latency, without negatively impacting write performance.
What Problem Does This Paper Address?
Solid State Drives (SSDs) based on NAND flash memory are lauded for their high random-access speeds, low power consumption, and potential for efficient random reads. However, when these flash chips are packaged into SSDs, a surprising paradox emerges: random writes often outperform random reads. This counter-intuitive behavior stems from inherent resource contention within the SSD's architecture. Traditional scheduling algorithms, which operate on logical block addresses (LBAs), are blind to the physical layout of data. This lack of awareness prevents them from effectively managing shared resources like channels, packages, and dies, leading to conflicts that cripple parallelism, especially for random read operations. The paper aims to bridge this gap by developing a scheduler that understands and exploits the physical addressing of NAND flash.
Methods
The core of this paper is the Physically Addressed Queueing (PAQ) algorithm. PAQ introduces several key innovations:
- QBM Relocation: The Queue and Buffer Management (QBM) layer, typically residing in the Host Interface Layer (HIL), is moved beneath the Flash Translation Layer (FTL). This critical change exposes physical addresses to the scheduler, rather than just logical ones.
- I/O Clumping: PAQ classifies conflicts into hierarchical groups (domains, clusters, nodes) based on the shared physical SSD components. It then groups non-conflicting sub-requests into "clumps" to be executed simultaneously, prioritizing the avoidance of lower-level conflicts.
- Inter-request NAND Transaction Packing: PAQ leverages physical addresses to identify opportunities for multi-plane mode operations. This allows multiple requests targeting the same page offset within a block, on the same die, but on different planes, to be served concurrently, significantly boosting parallelism.
PAQ is implemented and evaluated using a custom-built, cycle-accurate NAND flash SSD simulator designed to capture fine-grained command handling and intrinsic latency variations.
Datasets
The paper uses traces from actual enterprise applications to validate PAQ's performance. These traces represent various workload types:
- Online Transaction Processing (fin)
- Search Engines (web)
- Shared Home Directories (usr)
- Print Serving (prn)
- Relational Database Management Systems (sql)
- Remote File Storage Servers (msnfs)
These traces are characterized by their mix of random and sequential reads and writes, and are available from public repositories.
Key Insights and Ideas
- The "Random Read Paradox": The paper highlights a critical, often overlooked, issue where SSDs, despite their theoretical advantage in random reads, can perform worse than random writes due to scheduling limitations.
- Physical Addresses are Key: The fundamental insight is that effective SSD scheduling, especially for parallelism, requires knowledge of physical addresses. Logical addresses alone are insufficient to manage resource contention.
- Hierarchical Conflict Management: PAQ's conflict classification (domain, cluster, node) provides a structured way to understand and mitigate contention at different levels of the SSD architecture.
- Clumping for Efficiency: Grouping non-conflicting requests into "clumps" is a powerful mechanism to maximize resource utilization and overlap operations.
- Multi-plane Mode Optimization: PAQ significantly enhances the effectiveness of multi-plane operations by intelligently packing requests, which is often underutilized in traditional schedulers.
Key Results
PAQ demonstrates substantial performance improvements across various enterprise workloads:
- Bandwidth: Improvements of up to 62.7% (average 32.6%) for random reads.
- IOPS: Improvements of up to 62.6% (average 32.7%) for random reads.
- Latency: Decreases of up to 41.6% (average 25.1%) for random reads.
Crucially, PAQ does not degrade performance for write or sequential access types. In fact, it often improves overall performance even for mixed workloads. The paper also shows that PAQ significantly reduces idle time and resource contention.
Limitations and Future Work
- QoS Thresholds: The authors acknowledge that PAQ can occasionally delay certain requests to optimize others, leading to occasional latency spikes. They suggest that future work could explore setting Quality-of-Service (QoS) thresholds to bound these delays.
- Sensitivity Analysis: While the paper explores sensitivity to queue size and channel count, further investigation into other emerging protocols (SAS, PCI-Express) and advanced flash device features could be beneficial.
- Overhead: The authors estimate PAQ's overhead to be around 1%, which is considered negligible. However, further real-world hardware validation would be valuable.
- DRAM Cache Impact: The paper notes that the fraction of DRAM used for buffering I/Os is small and concurrently used for FTL metadata, suggesting that future work could explore the interplay between PAQ and DRAM cache management more deeply.
Summary updated