Abstract
Modern cloud and cluster environments offer a vast array of hardware configurations, creating a "paradox of choice" for developers seeking to balance performance and cost. This paper introduces a machine learning-based framework that predicts the full performance-cost trade-off space for applications by profiling them on a minimal set of "fingerprint" configurations. By utilizing short, partial runs and relative performance metrics, the tool enables users to navigate complex deployment options without exhaustive testing. Evaluation across 69 benchmarks demonstrates high predictive accuracy, even in the presence of "noisy neighbor" interference.
Introduction
When deploying applications in the cloud or on local clusters, developers must choose from hundreds of potential configurations, varying in vCPU count, RAM, and microarchitecture. Finding the "sweet spot"—where performance justifies the expenditure—is increasingly difficult. Application behavior is rarely uniform; some workloads scale linearly with resources, while others encounter bottlenecks or synchronization overhead that can lead to diminishing returns or even performance degradation.
Exhaustive testing on every possible configuration is prohibitively expensive and time-consuming. Furthermore, user objectives vary: one may prioritize absolute speed, while another seeks the most cost-effective configuration that meets a specific deadline. Existing optimization tools often focus on finding a single "optimal" point, failing to provide the comprehensive trade-off curves necessary for nuanced decision-making.
Methodology
The proposed framework employs a three-step workflow to generate performance and cost predictions across diverse hardware environments.
1. Fingerprint Generation
Rather than running an application to completion, the tool executes a brief "fingerprint" run (typically 30 seconds) on a small, automatically selected set of configurations. During these runs, standard profiling tools (such as perf) collect relative performance metrics, including instructions per cycle (IPC) and cache misses per second. These metrics form a unique signature, or "fingerprint," of the application's hardware requirements.
2. Scalability Classification
Before attempting complex regression, the framework uses a Random Forest classifier to categorize the application as either "well-scaling" or "poorly-scaling." This classification acts as a critical filter; for poorly-scaling applications, the tool avoids the overhead of complex modeling and simply recommends the most cost-effective minimal resource configuration.
3. Performance Prediction
For applications identified as well-scaling, the fingerprint is passed to an XGBoost regression model. This model predicts the relative speedup across all available systems and configurations. By focusing on relative speedup rather than absolute execution time, the model remains robust across different application types and is easier to train on diverse datasets.
Interference Awareness
A unique feature of this approach is its ability to account for "noisy neighbors." The framework includes a specialized regression model trained to predict how performance fluctuates when an application shares a node with tasks that are compute, cache, or memory-intensive.
Experimental Setup
The models were trained and evaluated using a diverse set of 69 benchmarks from seven major suites, including NAS Parallel Benchmarks, PARSEC 3.0, SPEC OMP 2012, and MLlib. The hardware testbed consisted of three distinct single-node CPU systems:
- AMD EPYC 7532 (64 cores)
- Intel Xeon Gold 6242 (32 cores)
- Intel Xeon Gold 5120 (28 cores)
In total, these systems provided 26 distinct resource configurations for testing and validation.
Key Results and Insights
The evaluation revealed several critical insights into the feasibility of cross-system performance prediction:
- Partial Runs are Sufficient: Relative metrics from a 30-second window are sufficient to create a signature that maps accurately to global performance. In a case study using the molecular dynamics application GROMACS, the tool achieved a 17.3% mean error by profiling the app for only 5% of its total execution time.
- Predictive Accuracy: The tool predicted performance across all three systems (26 configurations) with a global mean error of 22.5% using only three fingerprint configurations. When predicting within a single system, the error rate dropped significantly to between 11.4% and 15.6%.
- The Value of Classification: Using scalability classification as a pre-filter reduced the mean prediction error by approximately 6.7%, as it allowed the regression models to focus on predictable scaling patterns.
- Interference Bounds: The tool successfully provided bounds on performance degradation in shared environments, though it noted that cache-intensive interference remains the most challenging to predict with high precision.
Discussion and Limitations
While the framework demonstrates high utility for single-node CPU deployments, there are areas for future expansion. The current scope does not include multi-node systems where network bottlenecks become a primary factor, nor does it yet support accelerators like GPUs. Additionally, while a 30-second profiling window is modest for long-running scientific workloads, it may represent a significant overhead for very short-lived tasks. Future work will focus on expanding the hardware scope and maintaining a database of fingerprints for previously seen applications to further reduce profiling requirements.
Summary updated