Skip to content
Honesty
On this page
  1. At a glance
  2. Test environment
  3. Multi-agent commit success rate (%)
  4. Multi-agent throughput (commits/s)
  5. Contention breakdown
  6. Server overload, 5-protocol storm & 5-minute soak
  7. Large monorepo (10,002 files) ratio vs stock Git
  8. Monorepo wall-clock & memory details
  9. Chaos & failure injection
  10. What overload testing caught and fixed
  11. Reproduce locally
  12. Next

Stress & resilience

Compatibility tests prove what works on a sunny day. This page documents what happens when arks is pushed past CPU, memory, file-descriptor, disk, and concurrency limits inside resource-capped Docker containers — and how every failure mode uncovered under overload was fixed until all 6 suites passed with zero open findings.

Note

Every number on this page comes directly from committed Docker cgroup receipts against stock Git 2.43.0 (git fsck --full --strict verified after every storm). These measurements document overload behavior and durability — not a blanket “faster than Git” slogan (Performance).

At a glance

  • 100-agent local contention: 100% commit success Coordinated arks worktrees + leases delivered 100/100 commits at 71.0 commits/s with 0 lock errors, compared with 4.0% (12.5 commits/s, 95 lock errors) on shared-worktree stock Git. Available
  • 320-client HTTP overload & Slowloris defense Under 5× concurrency saturation, arks serve evicted 48/48 Slowloris dribbles (408), blocked 16/16 payload/gzip bombs, returned 1,090/1,090 503 Retry-After: 1 responses with 0 unexpected 5xx, and peaked at 10.6 MiB RSS. Available
  • 5-minute mixed soak & chaos survival 46,898 Keep-Alive reads, 1,308 Forge writes, 196 pushes, 196 LFS transfers, 143 SSH requests, SIGKILL ×3, disk-full ENOSPC, low-FD RLIMIT_NOFILE=128, and 10 live SIGHUP reloads completed with 0 lost updates, 0.0 kB RSS growth, and fd_delta = 0. Available

Test environment

Parameter Recorded value
Measured binary arks 1.2.0 release build (overload, monorepo stat-cache, and lock-free Arc<ForgeStore> hardening)
Stock Git oracle git version 2.43.0 (side-by-side baseline + post-storm git fsck --full --strict)
Container cgroup caps --cpus=1.5, --memory=512m (no swap), --ulimit nofile=1024:1024, 16 MiB disk-full tmpfs
Status & timestamp 6/6 suites PASS · 0 open findings (2026-11-29T16:48:22Z)
Evidence bundle receipt.json · telemetry.csv · findings.json · report.md

Multi-agent commit success rate (%)

Barrier-released worker processes (25, 50, and 100 concurrent agents) committing simultaneously to the same repository in Docker. Coordinated arks worktrees + leases sustain 100% commit success while uncoordinated shared worktrees collide on .git/index.lock.

Concurrent agentsStock Git (shared)arks (shared)arks (worktree + lease)
25 workers8.012.0100.0
50 workers4.06.0100.0
100 workers4.011.0100.0

Multi-agent throughput (commits/s)

Effective committed writes per second across 25, 50, and 100 concurrent agents under the 1.5 vCPU / 512 MiB container cap.

Concurrent agentsStock Git (shared)arks (shared)arks (worktree + lease)
25 workers18.2733.0377.02
50 workers15.3618.471.94
100 workers12.4729.4471.0

Contention breakdown

All 9 waves passed git fsck --full --strict with zero orphan .lock or .tmp files:

Agents Mode Succeeded Lock errors Commits/s Median (ms) git fsck
25 Stock Git (shared worktree) 2/25 (8.0%) 20 18.3 61.4 OK
25 arks (shared worktree) 3/25 (12.0%) 13 33.0 73.8 OK
25 arks (worktrees + leases) 25/25 (100%) 0 77.0 300.4 OK
50 Stock Git (shared worktree) 2/50 (4.0%) 46 15.4 72.7 OK
50 arks (shared worktree) 3/50 (6.0%) 42 18.4 117.9 OK
50 arks (worktrees + leases) 50/50 (100%) 0 71.9 587.9 OK
100 Stock Git (shared worktree) 4/100 (4.0%) 95 12.5 133.7 OK
100 arks (shared worktree) 11/100 (11.0%) 65 29.4 152.8 OK
100 arks (worktrees + leases) 100/100 (100%) 0 71.0 993.4 OK

Server overload, 5-protocol storm & 5-minute soak

Three progressive stress suites exercised a single arks serve process under adversarial traffic, mixed multi-protocol writes, and continuous 5-minute endurance load:

Regime Concurrent load Observed outcome Resource & integrity bar
HTTP saturation & Slowloris 320 clients against a 64-connection cap: 256 Keep-Alive flooders (×5 reqs), 48 Slowloris partial-header dribbles, 16 oversized raw & gzip-bomb payloads 190 HTTP 200, 1,090/1,090 503 Retry-After: 1 (0 unexpected 5xx), 48/48 Slowloris evicted (408), 16/16 bombs blocked fd_peak=68 (cap+4), threads_peak=66, 10.6 MiB peak RSS, fd_delta=0, /healthz 200
All-in-one 5-protocol Forge storm 340 clients at once: 180 Forge writers (60 issues + 60 comments + 60 releases), 24 Smart-HTTP pushes, 24 LFS 512 KiB PUT/GETs (half colliding OIDs), 16 SSH ls-remote, 96 JSON readers 180/180 Forge writes persisted (0 lost updates), 12/12 disjoint branches + 3 FF pushes, 24/24 LFS SHA-256 verified, 16/16 SSH OK, 96/96 valid JSON fd_peak=172, threads_peak=169, 28.0 MiB peak RSS, fd_delta=0, git fsck OK
5-minute continuous endurance soak 300.3s sustained load: 8 Keep-Alive readers, 2 Forge writers, Smart-HTTP push, Git LFS PUT/GET, SSH ls-remote, and live SIGHUP reload every 30s 46,898/46,898 HTTP 200, 1,308/1,308 Forge writes (0 lost updates), 196 pushes, 196 LFS, 143 SSH, 9 live SIGHUPs (0 errors) p95: 1.52ms → 1.18ms; RSS 13.4 MiB (0.0 kB growth, peak 13.9 MiB), fd_delta=0

Large monorepo (10,002 files) ratio vs stock Git

Wall-clock ratio (arks / Stock Git 2.43.0, lower is faster; 1.0× = parity) on an identical 10,002-file monorepo (100 packages × 100 files + 4,000-line xdiff fixture + 2 MiB binary payload) under a strict --memory=512m cap.

Operation (10,002-file monorepo)arks / Stock Git 2.43.0 (lower is faster)
Initial commit0.18
Clone --bare0.29
Incremental add + commit0.32
Diff (full patch)0.77
Diff --stat0.91
Repack -ad1.1
Initial add .1.27
Status (dirty)1.49
Status (clean)2.24

Monorepo wall-clock & memory details

Both arks and stock Git ran identically generated 10,002-file repositories under --memory=512m (no swap) and passed git fsck --full --strict on both the working repository and bare clone (peak RSS 63.1 MiB, zero OOM kills, zero orphan files):

Operation Stock Git (ms) arks (ms) Ratio (arks/git)
Initial commit 188.3 33.3 0.18×
clone --bare 15.4 4.5 0.29×
Incremental add + commit 313.6 99.2 0.32×
diff (full patch, 4,000-line xdiff) 89.7 68.9 0.77×
diff --stat (50 dirty files) 58.8 53.7 0.91×
repack -ad 1,072.4 1,183.3 1.10×
Initial add . (10,002 files) 2,161.3 2,749.9 1.27×
status --porcelain (50 dirty + 10 untracked) 39.2 58.4 1.49×
status --porcelain (clean) 25.2 56.6 2.24×

Chaos & failure injection

Failure injected Result Verified behavior
Abrupt SIGKILL (-9) ×3 mid-write storm PASS 86/86 acknowledged issues survived across 3 hard kills; valid store.json, git fsck OK, 0 leftover .tmp files
Disk-full ENOSPC (16 MiB tmpfs) PASS arks add and arks commit failed closed with exit 1 (no crash); existing files and .git passed git fsck --full --strict after space recovered
Low file-descriptor cap (RLIMIT_NOFILE=128, 180 sockets) PASS arks serve backed off cleanly on transient EMFILE accept errors, stayed alive, and recovered to /healthz 200
Live SIGHUP reload storm (×10 under 24 active clients) PASS 5,623/5,623 HTTP 200 responses (0 client errors); server survived and /healthz returned 200

What overload testing caught and fixed

Running these suites intentionally exposed six real production edge cases — all six are now fixed, regression-tested, and verified at zero open findings:

Server & crash resilience

  • Transient FD exhaustion (EMFILE): Added rate-limited 25ms accept backoff and fail-closed thread spawning so hitting RLIMIT_NOFILE no longer exits the listener loop.
  • Slowloris header pinning: Added a cumulative header deadline (ARKS_HTTP_HEADER_TIMEOUT_SECS, default 10s) that evicts stalled clients with 408 Request Timeout and cleanly closes the socket.
  • Pre-spawn concurrency race: Replaced non-atomic connection checks with lock-free CAS slot reservation before thread creation, keeping peak threads strictly bounded to cap + 2.
  • Orphan .tmp files after SIGKILL: Added startup and first-load garbage collection for dead-PID temporary store files so abrupt crashes leave zero stray files behind.

Monorepo & sustained-load performance

  • 10k-file monorepo status and diff: Populated full Unix index stat fields (dev/ino/uid/gid), eliminated redundant stat() syscalls, switched untracked directory walks to dirent file_type(), and added a clean-entry fast path in diff — speeding up diff --stat by 4.0× (0.91× Git), full diff by 3.5× (0.77× Git), and status by 2.0×.
  • Lock-free ForgeStore reads: Switched cached store snapshots to shared Arc<ForgeStore> with direct JSON streaming on GET routes, cutting 5-minute soak p95 latency by 4.1× (4.89ms → 1.18ms) and eliminating RSS drift (+7.4 MiB → 0.0 kB).

Reproduce locally

Run the cgroup-isolated Docker stress suite against the published GHCR release image or a local release build:

# Against the published multi-arch release image:
bash verify/stress/run-stress-docker.sh --profile overload --memory 512m

# Against a locally compiled binary:
cargo build -p arks --release
bash verify/stress/run-stress-docker.sh --profile overload --memory 512m --arks-bin target/release/arks

Receipts, telemetry CSVs, and Markdown summaries are written to verify/out/stress-overload/.

Next

Performance Concurrent sessions Operations & deploy Forge security & auth Completeness Limits

Edit this page

Back to top