kagent
Agent Substrate calculator

How fast do your agents wake up, and what do they need?

Agents sleep when nobody uses them, and wake up on the next message. Describe your agents to see how long a wake-up takes, which part takes the time, and the CPU, memory and storage they need.

Agents100
1251005002.5k10k
Agent size1 core · 4 GiB
Snapshot fidelity

kagent's default. The snapshot keeps the files, and the agent process starts again at each wake-up, so your agent's own start time adds to the times shown.

Files in the workspace100 MB
01005002 GB
Disk speed of each node500 MiB/s
New conversations100%
0%20%40%60%80%100%
Average wake-up
0.11s

Every conversation is new.

0.11 s
New conversation
starts from the template
0.26 s
Back within 30 min
from the node's copy
0.71 s
Back later
from object storage
  • Download
  • Wait for the disk
  • Agent start
  • Restore
New conversation
0.11 s
Back within 30 min
0.26 s
Back later
0.71 s

Point at a bar to see each part.

To run 100 agents at once

100
CPU cores
400 GiB
memory
≤ 10 GB
snapshot storage while they sleep

The sum of the agents' limits, with the agents packed evenly and waking up at different times. Agents that sleep use no CPU or memory, only snapshot storage.

What a wake-up is made of

Download

A wake-up after the node dropped its copy fetches the snapshot from object storage and decompresses it. Snapshots of code compress to about a third.

Wait for the disk

Each wake-up writes and reads its snapshot on the node's disk. A slow disk adds time when its work takes longer than the download and the restore.

Agent start

With a Volumes snapshot the agent process starts again. With a Memory snapshot it continues where it stopped. More than 1 core does not make it faster.

Restore

Puts the workspace files, and the process memory if the snapshot keeps it, back in the sandbox. Below 1 core it runs within the agent's CPU limit.

Measured on Agent Substrate v1.0.0-rc2 with gVisor, on one node with 16 vCPUs, with a minimal Go agent that starts in almost no time, and object storage in the same region. The values are medians of the measured wake-ups. Your agent's own start time adds to a wake-up with a Volumes snapshot.