Unlocking the Secrets of Software Configuration Landscapes-Ruggedness, Accessibility, Escapability, and Transferability

Ke Li, Peili Mao, Tao Chen · DOI

TL;DR

Researchers have finally mapped the "black box" of software configuration, evaluating 86 million data points across systems like LLVM and Apache. They discovered that while these performance landscapes are rugged and filled with local traps, the best configurations are surprisingly accessible because they sit atop massive "basins of attraction" that pull optimization algorithms toward them.

What Problem Does This Paper Address?

Modern software is a labyrinth of "knobs"—configuration options that control everything from memory usage to execution speed. The Linux kernel, for instance, has over 15,000 options. Finding the "perfect" setting is an NP-hard problem because the relationship between these settings and actual performance is a black box; we usually don't know why a specific combination works, only that it does.

Until now, we lacked a high-fidelity map of this territory. Most researchers only looked at tiny slices of the configuration space. This paper addresses the "dark hole of knowledge" regarding the topography of software configuration: Is the landscape a smooth hill (easy to climb) or a jagged mountain range (easy to get lost in)? Understanding this "fitness landscape" is crucial for building better autotuning tools and optimizers.

Methods

The authors employ Fitness Landscape Analysis (FLA), a concept borrowed from evolutionary biology. They treat the configuration space as a high-dimensional map where "height" represents performance (e.g., throughput or execution time).

Key technical approaches include:

  • Graph-based Modeling: They represent the landscape as a directed graph where nodes are configurations and edges point toward better-performing neighbors.
  • Local Optima Networks (LON): To simplify the massive data, they compress the landscape into a network of "peaks" (local optima) and the "basins" (sets of configurations that lead to those peaks).
  • Ruggedness Metrics: They use autocorrelation and fitness-distance correlation to quantify how "jagged" the landscape is.
  • Perturbation Analysis: They tested "k-kicks"—changing multiple configuration options at once—to see how easily an optimizer can escape a sub-optimal trap.

Datasets

The study is one of the largest of its kind, involving 86.92 million evaluations across 32 different workloads. They focused on three ubiquitous real-world systems:

  1. LLVM Compiler: 20 options, measuring execution time.
  2. Apache Web Server: 18 options, measuring requests handled per second.
  3. SQLite Database: 16 options, measuring write speed.

The authors have made this massive dataset publicly available, providing a much-needed benchmark for the software engineering community.

Key Insights and Ideas

  • Rugged but Navigable: The landscapes are "rugged" (comparable to the complex NK-landscapes in biology), meaning they are littered with thousands of local traps. However, they aren't "deceptive"—generally, as you get closer to the global optimum, the fitness improves.
  • The "Big Basin" Phenomenon: This is the most striking finding. While there are many peaks, the best peaks have significantly larger "basins of attraction." In LLVM, the top 0.1% of local optima have basins that encompass over half of the entire configuration space. If you start a search randomly, you are statistically "pulled" toward the best results.
  • Escapability: Most inferior peaks are "shallow." A simple 2-step perturbation (changing just two options) is usually enough to escape a mediocre local optimum and head toward a better one.
  • Structural Transferability: Landscapes for the same system under different workloads (e.g., two different database tasks in SQLite) share a similar "skeleton." This suggests that an optimizer's "experience" on one task can be directly applied to speed up the next.

Key Results

  • Accessibility: In many scenarios, simple local search algorithms had a 50% to 90% chance of hitting a top-tier configuration on the very first try due to the dominant size of high-quality basins.
  • Optimization Speedup: By "warm-starting" optimizers (Genetic Algorithms and Particle Swarm Optimization) using data from similar workloads, the researchers reduced the number of evaluations needed to find the best configuration by 20% to 60%.
  • Algorithm Performance: Standard meta-heuristics (GA and PSO) were able to consistently locate configurations in the top 0.02% of the landscape within just 2,000 evaluations—a tiny fraction of the total space.

Limitations and Future Work

While the study is massive, it is limited by the "curse of dimensionality." To evaluate the landscapes exhaustively, the authors had to limit the number of configuration options to 16–20. Real-world systems often have hundreds or thousands of options.

The authors suggest that future work should:

  • Scale to "White-Box" Analysis: Combine these landscape insights with source code analysis to understand which code structures create these rugged peaks.
  • Advanced Transfer Learning: Develop more sophisticated ways to "map" the knowledge from one software system's landscape to an entirely different system.
  • Dynamic Landscapes: Explore how these landscapes change in real-time as system workloads shift dynamically.

Summary updated

BibTeX
@misc{li2022unlocking,
  author = {Ke Li and Peili Mao and Tao Chen},
  title = {{Unlocking the Secrets of Software Configuration Landscapes-Ruggedness, Accessibility, Escapability, and Transferability}},
  year = {2022},
  eprint = {2201.01429},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.01429},
}
Figure