Abstract
Configuration in software systems helps to ensure efficient operation and meet diverse user needs. Yet, some, if not all, configuration options have profound implications for the system's performance. Configuration performance analysis, wherein the key is to understand (or infer) the configuration options' relations and their impacts on performance, is crucial. Two major modalities exist that serve as the source information in the analysis: either the manual or source code. However, it remains unclear what roles they play in configuration performance analysis. Much work that relies on manuals claims their benefits of information richness and naturalness; while work that trusts the source code more prefers the structural information provided therein and criticizes the timeliness of manuals. To fill such a gap, in this paper, we conduct an extensive empirical study over 10 systems, covering 1,694 options, 106,798 words in the manual, and 22,859,552 lines-of-code for investigating the usefulness of manual and code in two important tasks of configuration performance analysis, namely performance-sensitive options identification and the associated dependencies extraction. We reveal several new findings and insights, such as it is beneficial to fuse the manual and code modalities for both tasks; the current automated tools that rely on a single modality are far from being practically useful and generally remain incomparable to human analysis. All those pave the way for further advancing configuration performance analysis.
Introduction
Modern software systems are increasingly "knob-heavy," featuring hundreds of configuration options that allow users to tune behavior and performance. However, this flexibility comes at a cost: roughly 60% of performance issues in production environments are attributed to misconfigurations. To mitigate these issues, researchers and practitioners focus on two core tasks: identifying performance-sensitive options (e.g., buffer sizes vs. log paths) and extracting dependencies between them (e.g., Option A's effect depends on Option B).
Historically, analysis has split into two camps: those leveraging Natural Language Processing (NLP) on manuals and those using static analysis on source code. This study investigates which modality is more reliable and how they complement each other to build better auto-tuning and testing tools.
Methodology and Dataset
The study encompasses 10 diverse, widely-used software systems, ranging from web servers like Nginx to distributed databases like MySQL and HDFS. The scale of the analysis is unprecedented, covering nearly 1,700 options and over 22 million lines of code.
The research methodology involved a two-phase study:
- Human Analysis: Expert engineers audited manuals and source code using keyword screening and taint analysis to trace configuration variables into performance-heavy operations like I/O or memory allocation.
- Ground Truth Validation: To prove an option was actually performance-sensitive, the authors ran over 17,000 performance tests (consuming 1,500+ CPU hours). An option was labeled "sensitive" only if changing it caused a performance deviation of more than 5%.
- Tool Benchmarking: Human results were compared against state-of-the-art automated tools, including SafeTune, GPTuner, DiagConfig, and CDep.
Modality Comparison: Manual vs. Code
A primary finding is that performance sensitivity is relatively rare; only 21% of all configuration options across the studied systems significantly impact performance. When comparing modalities, the study found that manuals and code offer distinct advantages.
Manuals are "inclusive," capturing developer intent and resulting in fewer missed sensitive options (lower False Negatives). Conversely, source code is "structural," reflecting the actual implementation and reducing "ghost" options that are documented but have no real performance impact (lower False Positives).
As shown in Table 2, while both modalities identify a significant portion of sensitive options, neither is perfect. Manuals identified 778 options with a 34% false positive rate, while code identified 672 options with a lower 28% false positive rate. For dependency extraction, code analysis identified 73 valid dependencies, while manuals only caught 53.
Key Insights and Findings
The research highlights several critical insights for future tool development:
- The Fusion Mandate: The highest accuracy is achieved by fusing both modalities. Manuals provide the "why" (intent), while code provides the "how" (reality). Manuals fail when descriptions are vague, while code analysis fails when developers use non-standard execution patterns.
- Dependency Complexity: A surprising 58% of performance dependencies involve at least one option that is not performance-sensitive on its own. Tools focusing only on "important" knobs will miss over half of these critical interactions.
- Code Superiority in Complexity: For complex dependency chains involving three or more options, source code analysis is far superior. Manuals often simplify these technical interactions to avoid overwhelming the user.
Conclusion
Current automated tools for configuration performance analysis are not yet "practically useful" (defined as an F1 score > 0.7) and remain generally incomparable to expert human analysis. The path forward lies in "modality fusion"—developing interactive tools that combine the strengths of documentation and source code while allowing human experts to resolve contradictions between what the manual says and what the code does.
The complete dataset and ground truth measurements are available on GitHub.
Summary updated