Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs: publish Linux fleet reruns without mock request retention

Steven Enamakel0815572af309
diff --git a/docs/benchmarks/medulla-embed-linux.json b/docs/benchmarks/medulla-embed-linux.json
index 7358a1bc1d..d7f84503fa 100644
--- a/docs/benchmarks/medulla-embed-linux.json
+++ b/docs/benchmarks/medulla-embed-linux.json
@@ -1,235 +1,236 @@
{
- "source_commit": "e2224a22a3171d20fb1f0e936d5fdc3b30961961",
+ "source_commit": "bbd3d83d80fcaaf3b6284c5b7881d080dcd53a34",
"date": "2026-10-10",
"host": "Intel Core i7-14700F; x86_64 Ubuntu Linux 7.0.0-31-generic",
+ "request_recording": false,
"runs": [
{
- "after_turns_rss_kib": 222956,
+ "after_turns_rss_kib": 227952,
"agents": 50,
- "before_boot_rss_kib": 13544,
- "boot_ms": 302.35022,
- "cold_turn_ms": 74.338948,
- "fleet_elapsed_ms": 599.894233,
+ "before_boot_rss_kib": 14488,
+ "boot_ms": 256.195196,
+ "cold_turn_ms": 16.275062,
+ "fleet_elapsed_ms": 447.54206,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 3.76015625,
- "registered_rss_kib": 32504,
- "runtime_rss_kib": 30436,
+ "marginal_after_turns_mib": 3.78296875,
+ "registered_rss_kib": 36464,
+ "runtime_rss_kib": 34264,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 442.656279,
- "turn_p95_ms": 558.987831,
- "turn_p99_ms": 577.114408,
+ "turn_p50_ms": 330.948465,
+ "turn_p95_ms": 398.109413,
+ "turn_p99_ms": 402.916892,
"worker_threads": 2,
- "cgroup_memory_peak": "256131072",
+ "cgroup_memory_peak": "203931648",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
},
{
- "after_turns_rss_kib": 230456,
+ "after_turns_rss_kib": 226972,
"agents": 50,
- "before_boot_rss_kib": 14684,
- "boot_ms": 259.898322,
- "cold_turn_ms": 17.341459999999998,
- "fleet_elapsed_ms": 535.350733,
+ "before_boot_rss_kib": 14396,
+ "boot_ms": 256.484423,
+ "cold_turn_ms": 18.921321000000002,
+ "fleet_elapsed_ms": 420.257983,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 3.83796875,
- "registered_rss_kib": 36184,
- "runtime_rss_kib": 33952,
+ "marginal_after_turns_mib": 3.75734375,
+ "registered_rss_kib": 36856,
+ "runtime_rss_kib": 34596,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 415.089916,
- "turn_p95_ms": 477.391643,
- "turn_p99_ms": 494.830836,
+ "turn_p50_ms": 326.425821,
+ "turn_p95_ms": 359.84249600000004,
+ "turn_p99_ms": 396.121414,
"worker_threads": 2,
- "cgroup_memory_peak": "209993728",
+ "cgroup_memory_peak": "202309632",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
},
{
- "after_turns_rss_kib": 221192,
+ "after_turns_rss_kib": 222156,
"agents": 50,
- "before_boot_rss_kib": 14756,
- "boot_ms": 256.45689,
- "cold_turn_ms": 16.850222000000002,
- "fleet_elapsed_ms": 497.84299300000004,
+ "before_boot_rss_kib": 14532,
+ "boot_ms": 258.358991,
+ "cold_turn_ms": 18.654450999999998,
+ "fleet_elapsed_ms": 410.89376500000003,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 3.659140625,
- "registered_rss_kib": 35980,
- "runtime_rss_kib": 33844,
+ "marginal_after_turns_mib": 3.665390625,
+ "registered_rss_kib": 36640,
+ "runtime_rss_kib": 34488,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 359.819163,
- "turn_p95_ms": 473.740273,
- "turn_p99_ms": 480.653368,
+ "turn_p50_ms": 273.595824,
+ "turn_p95_ms": 326.54888900000003,
+ "turn_p99_ms": 383.942,
"worker_threads": 2,
- "cgroup_memory_peak": "198828032",
+ "cgroup_memory_peak": "198098944",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
},
{
- "after_turns_rss_kib": 380208,
+ "after_turns_rss_kib": 380152,
"agents": 100,
- "before_boot_rss_kib": 14784,
- "boot_ms": 258.699509,
- "cold_turn_ms": 18.28909,
- "fleet_elapsed_ms": 959.732258,
+ "before_boot_rss_kib": 14696,
+ "boot_ms": 261.058476,
+ "cold_turn_ms": 23.715644,
+ "fleet_elapsed_ms": 843.2798409999999,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 3.384140625,
- "registered_rss_kib": 37764,
- "runtime_rss_kib": 33672,
+ "marginal_after_turns_mib": 3.37453125,
+ "registered_rss_kib": 38836,
+ "runtime_rss_kib": 34600,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 753.579677,
- "turn_p95_ms": 834.150036,
- "turn_p99_ms": 864.9725179999999,
+ "turn_p50_ms": 630.060869,
+ "turn_p95_ms": 781.8404089999999,
+ "turn_p99_ms": 807.385043,
"worker_threads": 2,
- "cgroup_memory_peak": "371425280",
+ "cgroup_memory_peak": "368861184",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
},
{
- "after_turns_rss_kib": 384124,
+ "after_turns_rss_kib": 381448,
"agents": 100,
- "before_boot_rss_kib": 14736,
- "boot_ms": 259.450986,
- "cold_turn_ms": 22.879907000000003,
- "fleet_elapsed_ms": 876.001291,
+ "before_boot_rss_kib": 14532,
+ "boot_ms": 260.519274,
+ "cold_turn_ms": 22.652142,
+ "fleet_elapsed_ms": 1063.297785,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 3.419296875,
- "registered_rss_kib": 38144,
- "runtime_rss_kib": 33988,
+ "marginal_after_turns_mib": 3.389453125,
+ "registered_rss_kib": 38588,
+ "runtime_rss_kib": 34368,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 637.160772,
- "turn_p95_ms": 748.4570659999999,
- "turn_p99_ms": 771.86696,
+ "turn_p50_ms": 780.051866,
+ "turn_p95_ms": 929.080972,
+ "turn_p99_ms": 964.185504,
"worker_threads": 2,
- "cgroup_memory_peak": "375803904",
+ "cgroup_memory_peak": "370405376",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
},
{
- "after_turns_rss_kib": 380588,
+ "after_turns_rss_kib": 381500,
"agents": 100,
- "before_boot_rss_kib": 14668,
- "boot_ms": 256.08613,
- "cold_turn_ms": 17.111337000000002,
- "fleet_elapsed_ms": 974.2819109999999,
+ "before_boot_rss_kib": 14408,
+ "boot_ms": 258.39308300000005,
+ "cold_turn_ms": 19.710221999999998,
+ "fleet_elapsed_ms": 953.5413149999999,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 3.3854296875,
- "registered_rss_kib": 38164,
- "runtime_rss_kib": 33920,
+ "marginal_after_turns_mib": 3.3948828125,
+ "registered_rss_kib": 38116,
+ "runtime_rss_kib": 33864,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 733.667637,
- "turn_p95_ms": 878.9274019999999,
- "turn_p99_ms": 905.8316749999999,
+ "turn_p50_ms": 713.8235229999999,
+ "turn_p95_ms": 839.781121,
+ "turn_p99_ms": 865.269359,
"worker_threads": 2,
- "cgroup_memory_peak": "370524160",
+ "cgroup_memory_peak": "370077696",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
},
{
- "after_turns_rss_kib": 1521308,
+ "after_turns_rss_kib": 1511184,
"agents": 500,
- "before_boot_rss_kib": 14596,
- "boot_ms": 259.61459199999996,
- "cold_turn_ms": 17.803175,
- "fleet_elapsed_ms": 5067.754381000001,
+ "before_boot_rss_kib": 14236,
+ "boot_ms": 258.86011599999995,
+ "cold_turn_ms": 22.475146000000002,
+ "fleet_elapsed_ms": 5451.315839,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 2.906046875,
- "registered_rss_kib": 53776,
- "runtime_rss_kib": 33412,
+ "marginal_after_turns_mib": 2.88403125,
+ "registered_rss_kib": 55136,
+ "runtime_rss_kib": 34560,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 4318.977334,
- "turn_p95_ms": 4925.888849999999,
- "turn_p99_ms": 5006.735527,
+ "turn_p50_ms": 4820.459523,
+ "turn_p95_ms": 5284.533808,
+ "turn_p99_ms": 5339.48242,
"worker_threads": 2,
- "cgroup_memory_peak": "1627930624",
+ "cgroup_memory_peak": "1625919488",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
},
{
- "after_turns_rss_kib": 1496992,
+ "after_turns_rss_kib": 1540228,
"agents": 500,
- "before_boot_rss_kib": 14716,
- "boot_ms": 257.994615,
- "cold_turn_ms": 28.108373999999998,
- "fleet_elapsed_ms": 5018.514113,
+ "before_boot_rss_kib": 14452,
+ "boot_ms": 258.009249,
+ "cold_turn_ms": 14.884082,
+ "fleet_elapsed_ms": 4672.801607,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 2.8576796875,
- "registered_rss_kib": 54372,
- "runtime_rss_kib": 33860,
+ "marginal_after_turns_mib": 2.941359375,
+ "registered_rss_kib": 54784,
+ "runtime_rss_kib": 34252,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 4253.114938000001,
- "turn_p95_ms": 4757.166389,
- "turn_p99_ms": 4834.214146,
+ "turn_p50_ms": 4113.175878,
+ "turn_p95_ms": 4447.625557,
+ "turn_p99_ms": 4513.371248,
"worker_threads": 2,
- "cgroup_memory_peak": "1598652416",
+ "cgroup_memory_peak": "1648812032",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
},
{
- "after_turns_rss_kib": 1517088,
+ "after_turns_rss_kib": 1542084,
"agents": 500,
- "before_boot_rss_kib": 14532,
- "boot_ms": 257.593554,
- "cold_turn_ms": 41.288444,
- "fleet_elapsed_ms": 4804.511533999999,
+ "before_boot_rss_kib": 14336,
+ "boot_ms": 257.69439500000004,
+ "cold_turn_ms": 16.925666,
+ "fleet_elapsed_ms": 5055.745514,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 2.8974609375,
- "registered_rss_kib": 54176,
- "runtime_rss_kib": 33588,
+ "marginal_after_turns_mib": 2.94503125,
+ "registered_rss_kib": 54832,
+ "runtime_rss_kib": 34228,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 4032.232026,
- "turn_p95_ms": 4566.384357000001,
- "turn_p99_ms": 4703.506536,
+ "turn_p50_ms": 4430.5079940000005,
+ "turn_p95_ms": 4828.56837,
+ "turn_p99_ms": 4880.706669,
"worker_threads": 2,
- "cgroup_memory_peak": "1626206208",
+ "cgroup_memory_peak": "1650745344",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
}
],
"no_swap_500_agents": {
- "after_turns_rss_kib": 1503036,
+ "after_turns_rss_kib": 1537772,
"agents": 500,
- "before_boot_rss_kib": 13544,
- "boot_ms": 291.090911,
- "cold_turn_ms": 64.148624,
- "fleet_elapsed_ms": 5087.109549,
+ "before_boot_rss_kib": 14476,
+ "boot_ms": 259.344405,
+ "cold_turn_ms": 17.940296,
+ "fleet_elapsed_ms": 5070.406826,
"inference": "loopback-http-mock",
- "marginal_after_turns_mib": 2.875234375,
- "registered_rss_kib": 51472,
- "runtime_rss_kib": 30916,
+ "marginal_after_turns_mib": 2.9364765625,
+ "registered_rss_kib": 54900,
+ "runtime_rss_kib": 34296,
"tool_scope": [
"shell"
],
- "turn_p50_ms": 4365.676439,
- "turn_p95_ms": 4865.638112,
- "turn_p99_ms": 4952.234937,
+ "turn_p50_ms": 4353.5878170000005,
+ "turn_p95_ms": 4753.196036,
+ "turn_p99_ms": 4844.317583000001,
"worker_threads": 2,
- "cgroup_memory_peak": "1663881216",
+ "cgroup_memory_peak": "1647300608",
"cgroup_memory_max": "2147483648",
"cgroup_cpu_max": "200000 100000",
"cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"
diff --git a/gitbooks/developing/performance.md b/gitbooks/developing/performance.md
index 23bdf33975..557e2bf995 100644
--- a/gitbooks/developing/performance.md
+++ b/gitbooks/developing/performance.md
@@ -17,9 +17,9 @@ Everything below was measured on Apple Silicon macOS with a `--release` build an
| N agents | Marginal KiB/agent | Settled MiB | Idle CPU ms/10s | Threads | FDs |
| ---: | ---: | ---: | ---: | ---: | ---: |
-| 50 | 1,985 | 223 | 3 | 71 | 420 |
-| 100 | 1,866 | 356 | 3 | 123 | 820 |
-| 500 | 1,770 | 1,393 | 3 | 211 | 3,220 |
+| 50 | 221.65 MiB | 3.757 MiB | 192.94 MiB | 420 ms | 360 ms |
+| 100 | 372.51 MiB | 3.389 MiB | 352.93 MiB | 954 ms | 840 ms |
+| 500 | 1,504.13 MiB | 2.941 MiB | 1,572.43 MiB | 5,056 ms | 4,829 ms |
500 agents fit in one process at roughly 1.77 MiB marginal cost each. Idle CPU stays flat as N grows, which matters because an agent that is not mid-turn should not spend cycles. Thread count grows by about 0.35 per agent. Watch that line before pushing past 500 in production.
@@ -118,29 +118,30 @@ were measured at each size; the table gives medians. RSS is sampled after every
agent completes one concurrent turn, with all agent handles retained. Marginal
RSS is `(RSS after turns - RSS after Runtime::build) / N`, without allocator
trimming. The cgroup peak includes the HTTP mock and the Python measurement
-wrapper. RSS and cgroup accounting differ because shared file pages may be
+wrapper. Mock request recording is disabled, so retained HTTP request history
+is excluded. RSS and cgroup accounting differ because shared file pages may be
charged outside the new cgroup.
| Concurrent agents | Process RSS after turns | Marginal RSS/agent | Cgroup peak | Fleet wall time | Turn p95 |
| --- | --- | --- | --- | --- | --- |
-| 50 | 217.73 MiB | 3.760 MiB | 200.27 MiB | 535 ms | 477 ms |
-| 100 | 371.67 MiB | 3.385 MiB | 354.22 MiB | 960 ms | 834 ms |
-| 500 | 1,481.53 MiB | 2.897 MiB | 1,550.87 MiB | 5,019 ms | 4,757 ms |
+| 50 | 221.65 MiB | 3.757 MiB | 192.94 MiB | 420 ms | 360 ms |
+| 100 | 372.51 MiB | 3.389 MiB | 352.93 MiB | 954 ms | 840 ms |
+| 500 | 1,504.13 MiB | 2.941 MiB | 1,572.43 MiB | 5,056 ms | 4,829 ms |
The 100- and 500-agent results are within twice the earlier macOS/mock
1.77 MiB figure (3.54 MiB). The 50-agent result misses that target slightly:
-its three runs used 3.659–3.838 MiB per agent. These are different hosts and
+its three runs used 3.665–3.783 MiB per agent. These are different hosts and
harness entry points, so the table is a capacity measurement rather than a
controlled comparison of the platforms.
-Runtime boot took 256–302 ms. The first turn in each fresh process took
-16.9–74.3 ms, before launching the concurrent fleet. Both are within twice the
+Runtime boot took 256–262 ms. The first turn in each fresh process took
+14.9–23.8 ms, before launching the concurrent fleet. Both are within twice the
earlier 476 ms bootstrap and 102 ms first-turn figures. “First turn” includes
session/model/tool initialization, but excludes compiling and loading the
executable; the OS page cache was warm.
A separate 500-agent run with **swap disabled** (`MemorySwapMax=0`) completed
-in 5,087 ms, with 2.875 MiB marginal RSS per agent and a 1,586.80 MiB cgroup
+in 5,070 ms, with 2.936 MiB marginal RSS per agent and a 1,570.99 MiB cgroup
peak. Every run recorded zero `max`, `oom`, and `oom_kill` memory events.
This does not establish capacity for real providers, tool subprocesses, MCP
servers, or 1,000 simultaneously active turns. Measure those workloads before