Skip to main content
QUICK REVIEW

[Paper Review] Predictable Software -- A Shortcut to Dependable Computing ?

George Candea|ArXiv.org|Mar 11, 2004
Software System Performance and ReliabilityComputer Science13 references5 citations
TL;DR

This paper proposes improving software dependability not by rewriting flawed code, but by enhancing predictability through environmental control and failure containment mechanisms—fuses, guards, and resource cops—that keep programs within their expected operational boundaries. By enforcing input/output invariants and resource limits, the approach transforms unpredictable software into fail-stop, predictable components, offering a cheaper, faster alternative to traditional fault tolerance.

ABSTRACT

Many dependability techniques expect certain behaviors from the underlying subsystems and fail in chaotic ways if these expectations are not met. Under expected circumstances, however, software tends to work quite well. This paper suggests that, instead of fixing elusive bugs or rewriting software, we improve the predictability of conditions faced by our programs. This approach might be a cheaper and faster way to improve dependability of software. After identifying some of the common triggers of unpredictability, the paper describes three engineering principles that hold promise in combating unpredictability, suggests a way to benchmark predictability, and outlines a brief research agenda.

Motivation & Objective

  • To address the root cause of dependability failures in software, which often stem from unpredictable behavior under unexpected stressors rather than intrinsic bugs.
  • To reduce the cost and complexity of achieving dependable systems by focusing on environmental predictability rather than fixing every latent software defect.
  • To provide a systematic framework for making software behave predictably under both known and unknown stress conditions.
  • To enable existing software to be integrated into complex systems with higher confidence in their failure behavior.
  • To establish a foundation for benchmarking predictability and guiding incremental retrofitting of dependability mechanisms.

Proposed method

  • Introduce 'fuses' to detect and abort execution when inputs or resource usage exceed predefined safe thresholds.
  • Deploy 'output guards' to validate module outputs against formalized invariants, ensuring compliance with expected behavior.
  • Implement 'resource cops' to monitor and constrain CPU, memory, and network usage, preventing resource exhaustion.
  • Use a 'system macrocompiler' to automatically interpose fuses, guards, and cops on software components using aspect-oriented techniques.
  • Leverage dynamic invariant inference tools (e.g., Daikon) to learn and enforce invariants from observed program behavior.
  • Apply metrics such as experimental variance to quantify predictability and guide cost-effective retrofitting of predictability mechanisms.

Experimental results

Research questions

  • RQ1Can improving environmental predictability reduce the incidence and impact of cascading failures in complex software systems?
  • RQ2To what extent can fuses, guards, and resource cops be automatically applied to legacy software without source code modifications?
  • RQ3How can invariants for input and output behavior be learned or expressed in a way that is both precise and scalable for real-world systems?
  • RQ4What metrics best capture the predictability of software behavior under stress, and how can they guide targeted dependability improvements?
  • RQ5Can a macrocompiler-based approach enable compositional reasoning about system-level dependability from component-level predictability guarantees?

Key findings

  • Unpredictable behavior in software is primarily triggered by unexpected inputs (size, content, and arrival rate), misbehaving module outputs, and resource exhaustion.
  • Buffer overflows and malformed inputs—such as those exploited in SQL Slammer and DNS cache poisoning—demonstrate that enforcing input size and format constraints can prevent catastrophic failures.
  • Failure waves propagate through systems when one module’s erratic output or resource consumption disrupts downstream modules, leading to cascading failures that obscure root causes.
  • The CNN.com outage in 2001 illustrates that even systems with load balancers and dynamic provisioning can fail under rapidly increasing request rates due to lack of admission control.
  • Fuses, guards, and resource cops can transform black-box software into fail-stop modules by constraining behavior within expected bounds, enabling predictable failure modes.
  • Predictability metrics such as experimental variance can guide the incremental retrofitting of dependability mechanisms, prioritizing components where predictability improvements yield the highest dependability gains.

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.