Saturation: How Your Software Will Fail at Scale

Lobsters Hottest News

Summary

This article discusses the phenomenon of software systems failing due to resource saturation as they scale, drawing an analogy with the limits of biological systems, and introduces the impact of physical resource (CPU, memory, disk, network) saturation and virtual limits on system reliability.

<p><a href="https://lobste.rs/s/opbpro/saturation_how_your_software_will_fail_at">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 07/30/26, 07:54 PM

### TL;DR As software systems grow in scale, they fail due to resource saturation, similar to the limits of biological systems. Understanding saturation helps build more reliable systems. --- ## Introduction: Lamport’s Prophecy In a 2003 lecture at the University of Kiel, Germany, titled *The Future of Computing: Logic or Biology?*, Turing Award winner Leslie Lamport outlined two paths for thinking about software systems: - **The logical (mathematical) path**: Describing systems with mathematics—for example, the one-dimensional wave equation, or initial conditions and actions in TLA+ specification language. - **The biological path**: Treating software like a biological system, acknowledging its complexity exceeds human understanding. Lamport said: > “When people who can’t think logically design large systems, those systems become incomprehensible, and we begin to treat them as biological systems. Since biological systems are too complex to understand, it seems natural that computer programs are too complex to understand. We should not accept this... Otherwise, the future of computing will belong to biology, not logic. We will continue to use computer programs we don’t understand, trying to coax them into doing what we want. We will not live in a rational computing world, but in a world of homeopathy and faith healing.” Unfortunately, today’s software industry has indeed taken the biological path. As an SRE (Site Reliability Engineer), I deal with failing systems daily. And what truly fails is not static source code, but running systems—they are **complex adaptive systems**, similar to biological systems, and therefore fail in similar ways. --- ## From the Heart to Systems: The Concept of Saturation Biological systems have limits. For example, the Frank-Starling law of the heart: the volume of blood entering the ventricle during diastole (preload) has a roughly linear relationship with the volume pumped out (stroke volume), until a point where the heart can no longer output more work—it reaches its limit and fails. Similarly, every system we deal with has limits. When a system reaches its limit, bad things can happen. We use the term “saturation” to describe this state. The term is already used in the industry: performance engineer Brendan Gregg uses saturation to diagnose performance issues; resilience engineering researcher David Woods emphasizes that resilience requires managing the risk of saturation, because saturation is the root cause of collapse in complex adaptive systems. --- ## System Capability Boundary Imagine your system as a point in high-dimensional space—here “system” does not mean software or hardware alone, but a **sociotechnical system**, including the people who write, verify, deploy, and operate the software, as well as all the tools (deployment tools, testing tools, IDS, agents, etc.). This point is surrounded by a **capability boundary** (Woods’ term). As long as the system stays within the boundary, everything is fine: the system is healthy, users are satisfied. But the system is subjected to various pressures that push it around within the boundary: - Traffic spikes (but we scaled up, so ok) - Temporary network issues (we have retries, so ok) - Introducing a bug (caught in staging or quickly rolled back, so ok) When the system moves too far, beyond the capability boundary, **saturation** occurs—the system is pushed beyond what it can handle. --- ## Physical Resource Saturation Software ultimately runs on physical hardware. “The cloud abstracts a lot of computing, but somewhere, probably in Northern Virginia, there’s a data center running that software.” ### CPU Saturation On modern multi-core chips, if there are more runnable tasks than cores, some tasks will be stuck in a runnable state, waiting for execution. At that point, CPU is saturated, causing timeouts and user dissatisfaction. For example, Jane Street mentioned in a lightning talk that a performance change triggered CPU saturation. ### Memory Saturation Running out of memory is what I worry about most. In Linux, `malloc` always succeeds (returns virtual memory), but actual physical memory may run out, triggering the OOM killer—the kernel randomly kills a process, usually the one using the most memory. So we continuously monitor memory usage. Garbage collection (GC, stop-the-world type, like Java’s G1GC) can turn memory saturation into CPU saturation: under memory pressure, all application threads block, waiting for GC threads to free memory, then continue execution, resulting in CPU saturation. ### Disk Saturation Even SSDs have limited capacity. Example: a service throws a harmless error, but the error log contains a full Java stack trace; massive logging fills the device, eventually causing system problems. More insidious is the “No space left on device” error—plenty of storage space remains, but the file system’s inodes are exhausted (file systems like ext fix the number of inodes at creation time; creating too many small files exhausts inodes). ### Network Bandwidth Saturation The bandwidth of a network interface card or link is also a physical resource. Once saturated, you cannot push more data through. --- ## Virtual Limits Virtual limits are intentionally designed safety measures, similar to circuit breakers in a house: they prevent current from exceeding the wire’s capacity and causing a fire. Without a circuit breaker, excessive current could burn the house down. Software systems also have similar virtual limits, such as connection pool limits, thread pool size limits, etc., which serve as protection. --- ## Summary Lamport feared we would take the biological path, but in fact we are already on it. Understanding saturation—the state where a system is pushed beyond its capability boundary—is key to building reliable systems. Physical resources (CPU, memory, disk, network) and virtual limits can all become saturation points. By proactively monitoring and managing these saturation risks, we can keep software systems stable and running as they scale. --- Source: Saturation: How Your Software Will Fail at Scale - YouTube (https://www.youtube.com/watch?v=PHYCRubnmSM)

Similar Articles

How far can we push computing?

MIT Technology Review

MIT Technology Review explainer on how brute-force data center scaling is hitting ceilings as classic scaling laws (Moore's, Dennard's, Koomey's, Kryder's, Keck's) slow, and how fundamental physical limits of computing still leave room for progress. Draws on Feynman's 1959 'There's Plenty of Room at the Bottom' lecture to frame the next frontier below today's engineered limits.

slow → fast computers

YouTube AI Channels

The article introduces core concepts from the book "Systems Performance" regarding latency, throughput, cache hierarchies, etc., and references latency numbers from experts like Jeff Dean, emphasizing the importance of hands-on practice for performance engineering.

The End of Rationing

Hacker News Top

一篇观点文章论述 Claude Code 之后软件经济学的逆转:构建软件的边际成本趋近于零,而运行成本因 AI 进入关键路径而大幅上升,过去由工程资源稀缺塑造的产品设计范式(MVP、精益创业等)已经失效,但行业尚未跟上这一变化。

Your harddrive is probably full

Lobsters Hottest

The article observes that hard drives tend to be full regardless of size, drawing analogies to other areas like software optimization, technical debt, and personal scheduling, and suggests imposing artificial constraints to manage resources effectively.