Skip to content

The systems program

When does a client know that its peer is gone?

A client holds a connection, and its peer goes silent. The algebra computes the time until the client knows, from the rules of each system. The harness then injects the fault, measures the time on one clock, and compares it with the prediction.

The program starts at the TCP stack of Linux. It continues through proxies, databases and Kubernetes.

The results so far

2026-10-13 to 2026-11-17
Cells
541
Hold
507
Fail
0
Measured
29

The cells have 5,954 counted runs and 66 void runs, on 14 pages of results. 5 cells are calibrations. 11 cells that failed held on a re-run.

  1. CalibrationStage 06 hold6 cells · 2026-10-13 · Linux 6.6 · HZ 250
  2. The S1 cellsS112 hold12 cells · 2026-10-13 · Linux 6.6 · HZ 250
  3. Network failuresT0139 hold8 measured47 cells · 2026-10-17 · Linux 6.17 · HZ 1000
  4. Middleboxes and proxiesT03 · T02 · TOX39 hold7 measured46 cells · 2026-10-17 · Linux 6.17 · HZ 1000
  5. Valkey under SentinelT129 hold4 measured13 cells · 2026-10-17 · Linux 6.17 · HZ 1000
  6. HTTP keep-aliveT01 · T0338 hold1 measured39 cells · 2026-10-17 · Linux 6.17 · HZ 1000
  7. MongoDBT01 · T03 · T1158 hold58 cells · 2026-10-18 · Linux 6.17 · HZ 1000
  8. PostgreSQLT01 · T03 · T1075 hold75 cells · 2026-10-19 · Linux 6.17 · HZ 1000
  9. RabbitMQT01 · T1121 hold21 cells · 2026-10-19 · Linux 6.17 · HZ 1000
  10. gRPCT01 · T03 · T0247 hold1 measured48 cells · 2026-10-20 · Linux 6.17 and 7.0 · HZ 1000
  11. Kubernetes in kindT07 · T1826 hold2 measured3 calibration31 cells · 2026-10-18 · Linux 6.17 · HZ 1000
  12. gRPC through IstioT1514 hold2 calibration16 cells · 2026-10-25 · Linux 6.17 · HZ 1000
  13. R3: the compiled queueT01 · T03115 hold6 measured121 cells · 2026-10-17 · Linux 6.17 · HZ 1000
  14. The port rangePR8 hold8 cells · 2026-11-17 · Linux 7.0 · HZ 1000

Linux 6.6 has default settings for each TCP timer. With these settings, the client learns of a black hole or a frozen peer at these times. The model of the lab computes each time from the rules of the kernel.

An idle connection
2 h 11 min 15 s
Keepalive tells it.
A request in flight
15 min 24.6 s
The give-up of the retransmissions tells it.
A frozen process
never
No TCP timer fires.

The lab below computes these times for your settings. Select a harness cell to see the runs that the harness measured. Change a setting to see the new prediction.

When does the client know?
Kernel clock HZ 250
First detector
keepalive
Closed form
11 s
Lands in
10.996 s to 11.352 s
Measured
11.054 s to 11.269 s

Keepalive tells the client after 11 s, at most 352 ms late.

The whole timeline

closed form0 s2 s4 s6 s8 s10 s

Near the prediction

closed form11 s11.1 s11.2 s11.3 s11.4 s

  • Prediction
  • Closed form
  • Counted run
  • Keepalive probes

The runs of this lab are a study of redis 7.4.11 and kernel 6.6. The data comes from lab data file harness-2026-10-08.json of 2026-10-08, on redis 7.4.11 and kernel 6.6. The oldest data of this lab is 46 days old at this build, on 2026-11-23. The age limit of this data is 30 days, from 2026-12-07. The band comes from the current algebra at each build.

The lab shows only the TCP stack. Follow one request through each layer, from the program down to Kubernetes and the NIC. See which layer knows first.

Each card is a finding of a page of results. The page gives the numbers, the runs and the prediction.

  • 01A corpus

    Each fact about a system is a claim. A claim has a unit, the conditions where it is true, its sources and its grade of evidence.

  • 02An algebra

    The algebra reads the state machines and the settings. It gives each timer a closed form, and a band for how late the timer fires.

  • 03A harness

    The harness starts each cell in fresh containers. It injects a fault, measures the result on one clock, and compares the result with the prediction.

  • 04A prober

    The prober is an eBPF program. It records what the kernel does to each socket, to the nanosecond.

The thesis tells why a connection is a chain of state machines. The timers behind their slot show how the prober tells a delay of the VM from a delay of the kernel. The first harness cells stay on their own page.