Skip to content

Resource sizing

Axocoatl does not include a capacity planner. Size the host from the number of concurrent sandbox containers, the model runtime, Workspace copies, and the repository’s own build behavior.

benches/resource_footprint.rs provides a repeatable, no-network measurement of the idle in-process actor control plane. Run it from the exact commit and on the host you intend to characterize:

Terminal window
cargo bench --bench resource_footprint -- \
--output /tmp/axocoatl-resource-footprint.json
cargo bench --bench resource_footprint -- \
--validate /tmp/axocoatl-resource-footprint.json

Keep the raw JSON local. It records host, process, toolchain, and source-state metadata, and the measurements are specific to that machine. Review that metadata and require a clean source tree before publishing any conclusion.

This harness measures a minimum idle actor floor, not end-to-end product sizing. It excludes the full daemon, provider clients and model inference, tool and MCP execution, Workspace and Session data, repository isolation, terminals and Preview processes, sandbox containers, and virtual machines. Measure complete Sessions and Ways separately for the repository and model workload you plan to run.

When the host supports them, each local Podman Session container is started with these maxima:

ResourceLimit
Memory2 GiB
CPU2 cores
PIDs512

They are maximums, not preallocated reservations. Each needs its cgroup controller, and rootless Podman has the ones your system delegates to your user. When one is missing, the default require_resource_limits: false starts the container without that cap (the others still apply), logs a warning, and records it in the Session and in a run’s notes and receipt; axocoatl doctor prints how to delegate it. Set the flag to true when failing closed is safer than running without a limit: no Session, browser, service-forwarder, egress or managed SearXNG container then starts without every cap.

One ordinary local Session uses one container. Explore several ways creates an independent --no-hardlinks Git clone and a dedicated container for each Attempt. At peak, the potential container demand grows with the number of concurrent Ways, in addition to the main Session and any other Sessions.

For example, three running Ways can expose up to roughly three times the fixed Attempt-container maxima, but actual memory and CPU depend on the builds and commands. The local Ollama process runs outside these containers and needs its own model memory.

Account for:

  • Podman images and writable layers;
  • Session- and Attempt-owned root node_modules volumes for Node projects (axo-ses-<id>-node-modules). Closing a Session keeps its volume so Reopen reuses the installed dependencies; deleting the Session removes it. Close removes the volumes a Session’s runtime fills again when it starts (axo-egr-, axo-egi- and axo-svc- sockets and the axo-ca- trust files), so a closed Session leaves only its dependency volume. If Podman cannot remove one because another container still uses it, the Close still succeeds and the daemon log names the volume. Volumes like these that Sessions closed by Axocoatl 1.2, a daemon that stopped before Close, or a removed data root left behind are removed when the daemon next starts: it removes only its own (each carries the runtime authority label of the data root whose daemon made it), the runtime volumes of a Session that is closed, deleted or unknown and the dependency volume of one that is deleted or unknown. It keeps an open Session’s runtime volumes and an open or closed Session’s dependency volume, and never touches another daemon’s. A data root moved to another path (the same directory, renamed) has another runtime authority; from 1.5.0 the daemon keeps the one of the path it had while a volume of its Sessions carries it, and treats those volumes as its own when they are named after one of its Sessions. The SearXNG container a daemon killed at the old path left is removed once it has exited, or while no daemon runs at that path. A copy (to another volume, or a backup restored at another path) keeps none: its original may still run, and its Sessions are the copy’s too. axocoatl doctor counts the volumes that carry the authority of the data root it was copied from. When you deleted that one (a move by copying), run axocoatl session record-location --original-deleted while Axocoatl is stopped, and the next start removes them as a moved root’s (it leaves them, and exits with status 1, while a daemon runs at that data root’s path). A dependency volume made before 1.3.0 has no label and is removed only when its Session is one this data root created and deleted. A closed Session’s dependency volume stays until you delete the Session, including a loadout run’s. axocoatl doctor shows how many it removed and kept;
  • every Workspace repository and its build artifacts;
  • .axo-variants/ clones and manifests during unresolved Attempts;
  • the full Axocoatl data root, attachments, and retained native Ways decisions;
  • local model weights and embedding downloads;
  • backups.

Git clones can share object storage in some layouts, but build outputs and untracked files can still multiply. Finish Attempt cleanup and confirm .axo-variants/ state before assuming the space has been reclaimed. Native Ways decision evidence has separate explicit storage limits and deletion controls in History; runtime cleanup does not reclaim that retained evidence.

No daemon removes the Session volumes of a data directory you deleted, as none runs there. Each carries that directory’s runtime authority in the io.axocoatl.runtime-authority label: the SHA-256 of its full path, with symbolic links resolved; on macOS, of that path in Unicode NFD and in lower case. Compute it, list what carries it, and remove those volumes:

Terminal window
# macOS
perl -CSA -MUnicode::Normalize -MDigest::SHA=sha256_hex -e '$p = lc NFD($ARGV[0]); utf8::encode($p); print sha256_hex($p), "\n"' "/Users/me/old/axocoatl/data"
# Linux
printf %s "/home/me/old/axocoatl/data" | sha256sum
podman volume ls --filter label=io.axocoatl.runtime-authority=DIGEST
podman volume rm NAME

Do this only for a data directory that is gone. A copy of it that still runs uses the same Session names; for that case use axocoatl session record-location --original-deleted instead, as above.

Exposed ports are selected when the Session is created. Local Podman allocates dynamic loopback host mappings and retries the complete mapping when a rootless proxy race collides. If the requested set still cannot be allocated, environment preparation fails with retained evidence; Axocoatl does not silently drop one Preview port. Keep one known logical container port per development server when possible and verify it in Preview.

network: none disables outbound access and port publication. Bridge mode allows both, subject to the host firewall and process binding.

  1. Measure one representative Session running its heaviest repository check.
  2. Measure the model process separately.
  3. Repeat with the maximum intended number of Ways.
  4. Observe host memory pressure, CPU saturation, PID use, disk growth, and check duration.
  5. Lower concurrency or separate the model workload if the host approaches a failure boundary.

Next: Troubleshooting →