[Paper Review] A Comparison of 10 Sampling Algorithms for Configurable Systems
This paper evaluates 10 sampling algorithms for configurable C systems to compare their fault-detection capability and sample set size under varying assumptions. It finds that simple algorithms like most-enabled-disabled offer the best efficiency, while constraint-aware analysis drastically increases overhead and often renders algorithms infeasible in practice.
Almost every software system provides configuration options to tailor the system to the target platform and application scenario. Often, this configurability renders the analysis of every individual system configuration infeasible. To address this problem, researchers have proposed a diverse set of sampling algorithms. We present a comparative study of 10 state-of-the-art sampling algorithms regarding their fault-detection capability and size of sample sets. The former is important to improve software quality and the latter to reduce the time of analysis. In a nutshell, we found that sampling algorithms with larger sample sets are able to detect higher numbers of faults, but simple algorithms with small sample sets, such as most-enabled-disabled, are the most efficient in most contexts. Furthermore, we observed that the limiting assumptions made in previous work influence the number of detected faults, the size of sample sets, and the ranking of algorithms. Finally, we have identified a number of technical challenges when trying to avoid the limiting assumptions, which questions the practicality of certain sampling algorithms.
Motivation & Objective
- To evaluate and compare the fault-detection capability and sample set size of 10 state-of-the-art sampling algorithms for configurable systems.
- To investigate how limiting assumptions—such as ignoring constraints, header files, build-system information, and using per-file analysis—affect algorithm performance.
- To identify practical trade-offs between analysis effort (sample set size) and fault detection effectiveness in real-world configurable systems.
- To assess the feasibility and impact of incorporating global analysis, configuration options from header files, and build-system metadata on sampling algorithms.
Proposed method
- Evaluated 10 sampling algorithms: 5 t-wise variants, statement-coverage, random, one-disabled, one-enabled, and most-enabled-disabled on 24 open-source C projects with 135 known configuration-related faults.
- Conducted two studies: one under favorable assumptions (ignoring constraints, header files, build-system info, per-file analysis), and a second with realistic assumptions including constraints, global analysis, and header file inclusion.
- Used a corpus of 135 known configuration-related faults from systems like Linux Kernel, Gcc, BusyBox, and Apache, reported in prior studies.
- Measured fault-detection rates as a function of sample set size, comparing algorithms across different assumptions and configurations.
- Analyzed the impact of constraint handling, global scope, and build-system information on sample set size and fault detection.
- Identified and evaluated novel algorithm combinations that balance sample size and fault detection capability.
Experimental results
Research questions
- RQ1How do different sampling algorithms compare in terms of fault-detection capability and sample set size under idealized assumptions?
- RQ2How do assumptions such as ignoring constraints, header files, and build-system information affect the performance and feasibility of sampling algorithms?
- RQ3To what extent does global analysis or inclusion of configuration options from header files improve fault detection, and what is the cost in terms of sample set size?
- RQ4Which algorithm combinations offer the best trade-off between sample set size and fault-detection capability in practice?
- RQ5How do realistic system characteristics (e.g., constraints, build systems) impact the practicality of sampling algorithms?
Key findings
- All sampling algorithms detected at least 66% of the 135 known configuration-related faults, with most detecting over 80%.
- Algorithms with larger sample sets detected more faults, but simple algorithms like most-enabled-disabled achieved high fault detection with minimal sample size, making them the most efficient in most contexts.
- Including constraints among configuration options significantly increased analysis time and often made algorithms like three-wise and four-wise infeasible due to combinatorial explosion.
- Global analysis and inclusion of configuration options from header files increased sample set sizes substantially and rendered most algorithms impractical for real-world use.
- Build-system information had a minor impact on sample set size but introduced complex analysis challenges.
- Novel algorithm combinations were identified that provide a useful balance between sample set size and fault-detection capability, offering practical alternatives to standard approaches.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.