Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions METHOD.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ Same workload, A/B comparison:

Runs: **baseline** (Tracewick off / kill switch) vs **on** at a pinned `sampleRate` (default for golden runs: `0.1`).

### Work held constant in overhead comparisons

Declare whether each request performs a fixed amount of useful work or stops at
an elapsed-time deadline. A busy loop that stops after 25 ms can perform fewer
iterations when profiling consumes CPU inside that window. Its CPU/request delta
describes that wall-budget workload and can understate the cost of completing the
same useful work.

For a fixed-work synthetic control, calibrate an operation count once without
profiling and freeze it across all arms. Verify the count and deterministic result
in every load response. Retain calibration inputs and all repeats. Give both arms
equal settling and measurement durations; alternate pair order and publish the
spread. CPU/request uses cumulative process counters and completed request counts
from the same observation endpoints. Report generator latency quantiles over each
full measurement separately. A short control does not extend a soak's duration
or validate other workloads.

### B. Tracewick pipeline (spool → drain → Pyroscope)

| Metric | Why |
Expand Down
53 changes: 33 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,38 @@ not a capacity or overhead result.

## Recorded overhead and long-run behavior

**Historical measurements on core/agent 0.1.0, not current-version performance claims.**
These figures show the saved November 6–8 runs and their recorded configurations.
### Development-source overhead · November 22

![Historical overhead A/B: latency and container CPU](reports/overview/overhead.svg)
![Repeated development-source off/on CPU measurements](reports/2026-11-22-development-runtime/paired-overhead.svg)

Each runtime has its own off/on pair at 20 requests/s, depth 48 and sample rate 0.1.
Worker configurations differ; this is not a cross-runtime ranking. Sources:
[FPM](reports/2026-11-06-overhead-depth48-cloud.md),
[RoadRunner](reports/2026-11-07-overhead-rr-agent-depth48-cloud.md),
[Swoole](reports/2026-11-07-overhead-swoole-agent-depth48-cloud.md).
The latest [development runtime preflight](reports/2026-11-22-development-runtime.md)
uses three off/on pairs on pinned core `edb2427` and agent `d464fac`: one RR worker,
10 requests/s, depth 48 and sample rate 0.1. The **right panel holds the operation
count and checksum constant**; paired PHP CPU deltas have a **+0.462% median** and
**+0.363% to +1.929% range**. P99 increases are **0.769–1.933 ms**. The left panel
retains the separate timed-work observations. These measurements do not update
FPM/Swoole results or establish a universal overhead bound. No published RC is tested.

![Historical six-hour container memory observations](reports/overview/soak-memory.svg)
### Completed 72-hour observation · November 19–22

All saved observations from completed six-hour depth-48 soaks are shown, including startup.
Changes between **first-hour and last-hour average** app-container usage were FPM **+3.6 MiB**,
RoadRunner **+3.4 MiB**, and Swoole **+1.9 MiB**.
RoadRunner is the November 8 rerun **after reusing one profiler per worker**; the earlier
per-request-construction run (~+1 GiB / 6h) is not included or retained in these artifacts.
These are **container memory usage**, not PHP process RSS. The small increases do not establish
a process leak, prove leak freedom, or replace the separate 72-hour test. Sources:
[FPM](reports/2026-11-07-soak-fpm-agent-depth48-cloud.md),
[RoadRunner](reports/2026-11-08-soak-rr-agent-depth48-cloud.md),
[Swoole](reports/2026-11-07-soak-swoole-agent-depth48-cloud.md).
![Completed 72-hour RR and Go-agent memory observations](reports/overview/rr-agent-72h-memory.svg)

Each report also has its own figure. See [plot reproduction and provenance](docs/report-plots.md).
The [completed RR and Go-agent soak](reports/2026-11-22-soak-rr-agent-72h.md)
uses earlier core `55eb7bd` and agent `a15f0d3` pins, one worker, depth 48,
sample rate 0.1 and 10 requests/s. The chart shows **hourly means of all 16,166
saved steady observations**. Process RSS and cgroup memory are separate panels.
PHP's first/last-hour mean RSS is **28.308 / 28.316 MiB**; the agent's is
**13.642 / 14.107 MiB**. App/reader cgroup memory grew substantially; the report
includes anonymous/file memory and a later slab snapshot. The result does not
prove general leak freedom or transfer 72-hour coverage to the newer develop pins.

The earlier [FPM/RR/Swoole A/B overview](reports/overview/overhead.svg) and
[six-hour container-memory overview](reports/overview/soak-memory.svg) remain
historical core/agent 0.1.0 evidence from November 6–8. Their workload, host and
worker configurations differ from these newer experiments; they are not a
cross-runtime ranking or current-version performance claims.

See [plot reproduction and provenance](docs/report-plots.md) for both generations.

## Layout

Expand Down Expand Up @@ -149,6 +156,12 @@ The [72-hour RR and Go-agent soak](reports/2026-11-22-soak-rr-agent-72h.md)
records continuous depth-48 operation on the November fixes, with per-process
resources, cgroup metrics, delivery evidence and the preceding observer failure.

The [development runtime preflight](reports/2026-11-22-development-runtime.md)
records current develop sources, repeated fixed-operation CPU measurements,
backend/reader recovery and real Symfony HTTP/CLI/Messenger checks. It separates
runtime results from the unresolved source-1.0 package constraint and from any
future published-RC installation check.

Local run scratch: `reports/_local/`. **Canonical** cloud goldens (cite these — `WORK_STACK_DEPTH=48` on the 8 vCPU stand, except soak):

- [overhead A/B](reports/2026-11-06-overhead-depth48-cloud.md)
Expand Down
27 changes: 24 additions & 3 deletions docs/report-plots.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
The figures visualize existing evidence. Generating them does not run benchmarks, contact the
soak server, change measurements, or make old results evidence about a newer release.

## Historical report figures

Requires Python 3 and optional Matplotlib (3.10.8 used for the committed SVGs):

```bash
Expand Down Expand Up @@ -47,6 +49,25 @@ the median positive sample interval are left blank. CPU is Docker's container pe
(100% corresponds to one CPU), memory is shown in MiB (2^20 bytes). Historical pre-fix plots
carry historical labels and point to their original source/version context.

The README selections are the recorded overhead A/B pairs and completed six-hour container
memory observations. They are deliberately not labelled as current overhead or "no leaks".
New measurements should replace or supplement these panels only after their evidence is reviewed.
## README selections

The README now embeds the November 22 development-source paired CPU figure and
the completed November 19–22 RR/agent 72-hour memory overview. Their pins differ:
the short development campaign uses core `edb2427` / agent `d464fac`, while the
72-hour run uses core `55eb7bd` / agent `a15f0d3`. Neither is a released-RC claim.
The original November 6–8 overview files and their provenance remain historical.

Reproduce the development figure and its evidence hashes using its
[report instructions](../reports/2026-11-22-development-runtime/README.md).
Reproduce the README memory overview from the repository root:

```bash
python3 scripts/plot-readme.py
```

This streams every saved steady observation into 72 hourly arithmetic means.
It plots PHP/RR/agent process RSS separately from app/reader cgroup memory.
It does not plot a few selected endpoints or smooth the hourly means. The
[overview provenance](../reports/overview/rr-agent-72h-memory.json) records source
SHA256 values, counts, derived means, the output hash and Matplotlib version.
The original report retains interval-level figures and the full compressed data.
Loading