Skip to main content
QUICK REVIEW

[Paper Review] Mantis: Predicting System Performance through Program Analysis and Modeling

Byung-Gon Chun, Ling Huang|arXiv (Cornell University)|Sep 30, 2010
Software System Performance and ReliabilityComputer Science26 references11 citations
TL;DR

Mantis is a novel framework that predicts program performance with over 93% accuracy by combining program analysis and machine learning to extract and model program features from execution traces. It uses feature instrumentation, machine learning-based feature selection, and program slicing to generate lightweight code snippets that efficiently compute predictive features for real-time performance estimation.

ABSTRACT

We present Mantis, a new framework that automatically predicts program performance with high accuracy. Mantis integrates techniques from programming language and machine learning for performance modeling, and is a radical departure from traditional approaches. Mantis extracts program features, which are information about program execution runs, through program instrumentation. It uses machine learning techniques to select features relevant to performance and creates prediction models as a function of the selected features. Through program analysis, it then generates compact code slices that compute these feature values for prediction. Our evaluation shows that Mantis can achieve more than 93% accuracy with less than 10% training data set, which is a significant improvement over models that are oblivious to program features. The system generates code slices that are cheap to compute feature values.

Motivation & Objective

  • To address the challenge of accurately predicting system performance for complex, large-scale programs without relying on black-box models or developer-provided semantics.
  • To automatically extract meaningful program features from execution traces that capture program semantics and correlate with performance metrics.
  • To generate compact, efficient code snippets that compute these features at prediction time, minimizing runtime overhead.
  • To improve prediction accuracy over traditional black-box models that depend only on input size or configuration parameters.
  • To enable practical deployment of performance prediction in real-world systems such as data centers and distributed applications.

Proposed method

  • Instrumenting programs to collect a wide range of execution features, including metadata, control flow patterns, and data access characteristics.
  • Applying machine learning techniques—specifically sparse regression—to identify the most relevant features for performance prediction.
  • Using program slicing to generate minimal, efficient code fragments that compute only the selected features at prediction time.
  • Integrating feature selection with slicing to prioritize features that are both predictive and computationally lightweight.
  • Building a white-box prediction model that leverages internal program semantics rather than treating the system as a black box.
  • Evaluating the framework on real applications (Lucene and ImageJ) using a small fraction (less than 10%) of training data.

Experimental results

Research questions

  • RQ1Can program features extracted from execution traces significantly improve performance prediction accuracy compared to black-box models?
  • RQ2How can we automatically identify a minimal set of features that are both predictive and efficient to compute?
  • RQ3What is the impact of integrating program slicing with feature selection on prediction model efficiency and accuracy?
  • RQ4Can a white-box approach based on program analysis outperform traditional black-box modeling in real-world applications?
  • RQ5How scalable and generalizable is the framework across different types of programs and workloads?

Key findings

  • Mantis achieves over 93% prediction accuracy for execution time using less than 10% of the training data, significantly outperforming black-box models.
  • The framework reduces prediction error by leveraging program semantics through instrumented features, which black-box models miss.
  • Code snippets generated via program slicing are highly efficient, enabling fast feature computation during prediction with minimal runtime overhead.
  • Feature selection via sparse regression effectively identifies the most relevant features from a large set of potential candidates.
  • The integration of slicing with model generation ensures that only computationally lightweight features are selected, enhancing deployability.
  • The approach is effective across diverse applications, including a search engine (Lucene) and an image processing tool (ImageJ).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.