TL;DR
This paper introduces an "integrated processor-cache partitioning" approach for chip multiprocessors (CMPs). By coordinating how both processors and the shared last-level cache are allocated to applications, the authors demonstrate significant improvements in performance isolation and overall system throughput compared to schemes that partition these resources independently.
What Problem Does This Paper Address?
Modern chip multiprocessors (CMPs) pack multiple processing cores onto a single chip, leading to increased competition for shared resources like the last-level cache (LLC) and memory bandwidth. When multiple applications run concurrently, interference between them can degrade performance. Existing solutions often tackle this by partitioning either the processors (typically handled by the OS) or the cache (often managed by hardware) in isolation. However, these decoupled approaches fail to leverage the synergy between processor and cache allocation. This paper addresses the challenge of optimizing performance and ensuring quality of service (QoS) by proposing a unified strategy that considers both processor and cache partitioning simultaneously, recognizing that the optimal allocation for one resource is dependent on the allocation of the other.
Methods
The core of the paper is the "integrated processor-cache partitioning" scheme. This approach is iterative: it first partitions processors and then, based on that, partitions the cache. This process is repeated, allowing the system to adapt to changing application behaviors. A key innovation is the use of a regression-based predictor to estimate application performance (IPC) for various processor and cache allocations. This predictor helps prune the vast search space of possible configurations.
The authors define three key metrics:
- Weighted Speedup (WS): Measures overall system throughput.
- Fair Speedup (FS): Balances performance and fairness across applications (this is the primary optimization objective).
- Quality of Service (QoS): Quantifies performance degradation relative to an equal-share baseline, with a threshold (QoSTh) used to guarantee a minimum performance level.
The integrated partitioning algorithm (Algorithm 1) orchestrates these steps:
- Processor Partitioning (PROC_PART): Uses regression to find an optimal processor partition that maximizes FS while respecting QoSTh. This involves bootstrapping the regression with two initial partitions (equal share and an alternate distribution).
- Cache Partitioning (CACHE_PART): Similarly uses regression to find an optimal cache partition, aware of the current processor partition, to maximize FS within QoSTh.
- Iteration: The process repeats, allowing processor and cache partitions to adapt to each other and to dynamic application phases.
The system uses "enforcement intervals" to determine how often partitions are reconfigured.
Datasets
The paper evaluates its approach using multiprogrammed workloads consisting of multithreaded applications. These include:
- Six programs from the SPEC CPU2001 benchmark suite (apsi, art, applu, ammp, mgrid, equake).
- Two programs from the SPLASH2 benchmark suite (barnes, ocean).
- SPEC JBB (a commercial server benchmark).
The workloads are categorized into mixes based on application characteristics (e.g., high parallelism, high cache demand, complementary resource requirements). The authors do not introduce new benchmarks but use established ones to create realistic multiprogrammed scenarios.
Key Insights and Ideas
- Synergy is Key: Partitioning processors and caches in isolation is suboptimal. An integrated approach that considers their interdependence yields significantly better results.
- Dynamic Adaptation: Applications exhibit dynamic behavior (phase changes). A static partitioning scheme cannot keep up, highlighting the need for dynamic, iterative adaptation of both processor and cache allocations.
- QoS as a Filter: The QoS metric, with a defined threshold, is crucial for filtering out partitions that might offer high fair speedup but at the cost of unacceptable performance degradation for some applications. This allows for performance isolation.
- Regression for Prediction: Using regression analysis to predict application performance across various resource allocations is an effective way to prune the search space and guide the partitioning process, especially for complex systems.
- Fairness vs. Equal Share: Simply dividing resources equally doesn't guarantee optimal performance or fairness. Dynamic allocation based on application needs and resource contention is superior.
Key Results
- On an 8-core CMP: The integrated partitioning scheme achieved, on average, 20.83% better fair speedup than equal partitioning and 14.14% better than OS-implicit partitioning. It also outperformed processor-only partitioning by 6.15% and cache-only partitioning by 6.93%.
- On a 16-core CMP: The integrated approach showed improvements of 8.21% over processor partitioning and 9.19% over cache partitioning on the weighted speedup metric.
- Scalability: The approach scales well to larger core counts and cache sizes, with improvements over equal partitioning increasing on a 16-core system compared to an 8-core system.
- Sensitivity Analysis: The performance is sensitive to the enforcement interval (how often partitions are reconfigured). Too infrequent reconfigurations miss dynamic changes, while too frequent ones incur overhead. The optimal interval balances these. Varying the number of threads per application also significantly impacts performance, showing the importance of adapting to workload variability.
Limitations and Future Work
- Homogeneous Cores: The study focuses on homogeneous multicore processors. Extending the approach to heterogeneous or asymmetric multicore processors is a direction for future work.
- Virtualization: The authors plan to extend their work to virtualization workloads with multiple guest operating systems.
- Overhead: While the regression overhead is noted as small, the paper acknowledges that dynamic repartitioning incurs overhead, and finding the right balance for enforcement intervals is critical.
- Hardware Cache Partitioning: While the paper uses a software-based regression strategy for both processor and cache partitioning for uniformity, it notes that hardware-based cache partitioning mechanisms could be integrated.
Summary updated