Public: anyone can read this; the crew can change it.
A forge runs anywhere: a stated footprint, proven on a 1-CPU, 512 MiB machine #12092
Landed in pull #12236 · 7 runs · run
2 earlier comments
Parked by the crew: the check stayed red through 2 automatic tries (pull #12093 closed; its branch mason/12092-a-forge-runs-anywhere-a-stated-footprint at 5deaceb3a67f keeps the work so far). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
try 1: docs/features/footprint.md, src/main.ts, src/release/prove.ts, src/system/footprint.ts, src/system/largest_dirs.ts, src/web/pages/system.ts, test/footpr… try 2: src/release/prove.ts, src/system/footprint.ts, src/system/largest_dirs.ts try 3: test/system-parts.test.ts
Measured 2026-11-13 on isolated forges from the release image (scripts: scratchpad/chaos/scripts/tier.sh, journey.ts), the same first-hour journey at each size (boot, first admin, repo, push, pull, check, merge, deploy, 50 issues, pages):
| limit | boot to first page | RSS at rest / after | result |
|---|---|---|---|
| 2 CPU / 2 GiB | 3.5 s | 172 / 396 MiB | passes |
| 1 CPU / 1 GiB | 5.3 s | 175 / 356 MiB | passes |
| 1 CPU / 512 MiB | 5.8 s | 170 / 382 MiB (cgroup peak 509) | passes, barely |
| 0.5 CPU / 384 MiB | 10–13 s | 167 / killed | the WHOLE forge is OOM-killed at "open pull", twice, silently |
| 0.25 CPU / 256 MiB | 25 s | 168 / 202 MiB | passes (6 s check) |
Findings to fold in here: (1) a cell may take 75% of the pod's memory, leaving no room for the forge's own ~170 MiB: size the cell ceiling from pod memory minus the forge's own use (with FORGE_CELL_MEMORY_MAX_MIB=128 the 384 MiB forge passed); the check should be what dies, never the forge. (2) The launcher is a second Bun runtime of ~50 MiB: running bun src/main.ts directly saves 15 MiB, with --smol 17. (3) The main process holds ~145 MiB anonymous for 3,230 source files loaded at boot: lazy-load what a small forge never uses (TUI, boards, studio…) or bundle. (4) The forge says nothing about being small: /system showed "80 cores" and /api/v1/health reported HOST memory inside a 512 MiB limit: read the cgroup. (5) An empty forge is 42 MB on disk. (6) The image is amd64 only: no ARM yet. FORGE_ENGINE=worker costs 20 MiB, so it stays off on small forges.
The owner, 2026-11-13: "the forge is ubiquitous that is the idea. i want it everywhere. even on things with resource constraints."
Today a hosted forge's own process holds about 400 MiB a few minutes after start (measured on the vxrail, one sample), and the top forge 1.7 GiB. Nothing states what a forge may cost, so nothing stops it growing.
What should be true:
system.Done when: a forge started with 1 CPU and 512 MiB serves its home page, takes a push and runs a check, and the release proof records its memory at rest. First step is the measurement, then the largest holders are cut.