Abstract
Multi-tenancy for latency-critical applications leads to resource interference and unpredictable performance. Core reconfiguration opens up more opportunities for colocation, as it allows the hardware to adjust to the dynamic performance and power needs of a specific mix of co-scheduled applications. However, reconfigurability also introduces challenges, as even for a small number of reconfigurable cores, exploring the design space becomes more time- and resource-demanding. We present CuttleSys, a runtime for reconfigurable multi-cores that leverages scalable and lightweight data mining to quickly identify suitable core and cache configurations for a set of co-scheduled applications. The runtime combines collaborative filtering to infer the behavior of each job on every core and cache configuration, with Dynamically Dimensioned Search to efficiently explore the configuration space. We evaluate CuttleSys on multicores with tens of reconfigurable cores and show up to 2.46x and 1.55x performance improvements compared to core-level gating and oracle-like asymmetric multicores respectively, under stringent power constraints.
Introduction: The Multi-Tenancy Challenge
In modern datacenters, "multi-tenancy" is essential for cost efficiency. However, it creates a persistent conflict between latency-critical (LC) applications (e.g., web search) and batch applications (e.g., data processing). LC apps require guaranteed responsiveness, while batch apps demand maximum throughput. Traditional solutions like Dynamic Voltage and Frequency Scaling (DVFS) are reaching physical limits, prompting interest in reconfigurable cores. These cores allow hardware to dynamically "resize" internal structures like instruction windows or load-store queues to match an application's specific needs.
The primary challenge is the massive configuration space; with tens of cores, there are billions of possible combinations. Exhaustively testing these at runtime is impossible, especially as application behavior and power budgets shift every few milliseconds.
The CuttleSys Framework
CuttleSys manages this complexity using a two-stage data-driven approach integrated into a centralized resource controller.
- Practical Inference with SGD: Instead of profiling every possible configuration, CuttleSys uses Collaborative Filtering. It maintains a matrix of how "known" applications perform across various configurations. For a new application, it only needs two brief profiling samples (the highest and lowest configurations). It then uses Stochastic Gradient Descent (SGD) to predict the app's performance and power consumption across the entire design space with high accuracy.
- Parallel Dynamically Dimensioned Search (DDS): Once the performance landscape is predicted, CuttleSys uses a novel parallel version of the DDS algorithm, a heuristic search designed for high-dimensional spaces. DDS identifies a near-optimal setup for all co-scheduled jobs under a strict power cap.
The entire process—profiling, inference, and search—happens at the start of every 100ms timeslice, incurring only about 8ms of overhead.
Hardware Tailoring and Insights
A core insight of CuttleSys is that different applications exhibit unique hardware sensitivities. For instance, some apps are highly sensitive to load-store queue sizes, while others depend more on front-end fetch width.
By identifying these specific sensitivities, CuttleSys enables energy proportionality. Unlike fixed architectures, reconfigurable cores can reduce leakage power by gating off unused components, consuming power only in relation to the actual work being performed. If an LC app experiences a load spike, CuttleSys can dynamically reassign resources from batch jobs to maintain Quality of Service (QoS).
Evaluation and Key Results
The authors evaluated CuttleSys using a 32-core system simulated via zsim and McPAT, utilizing TailBench for LC workloads and SPEC CPU2006 for batch workloads.
- Throughput Gains: Under stringent power constraints, CuttleSys achieved up to 2.46x higher throughput than core-level gating and 1.55x higher than an oracle-based asymmetric multicore.
- QoS Reliability: CuttleSys successfully met tail-latency targets for LC applications in almost all scenarios, even during diurnal load swings and shifting power caps.
- Inference Accuracy: The SGD-based reconstruction kept prediction errors within 10% for the majority of cases, proving that recommendation-style logic is highly effective for architectural management.
- Low Overhead: The parallelized SGD and DDS implementations achieved a 3.5x speedup over standard versions, ensuring the manager does not become a system bottleneck.
Conclusion
While CuttleSys introduces a 19% area penalty due to the complexity of reconfigurable cores, the resulting performance and power efficiency gains are substantial. This work demonstrates that lightweight data mining can effectively manage the complexity of modern, flexible hardware. Future research may explore how these techniques scale to rack-scale systems with hundreds of reconfigurable elements.
Summary updated