Blogs / Why an Agent That Mostly Waits Is Costly to Run

Why an Agent That Mostly Waits Is Costly to Run

What NVIDIA's post says about how agents spend their time, what state has to continue and the two options platform teams are left with.

  • Learning
  • 1 min read

For: Learners new to running AI agents.

How an agent spends its time

AI agents spend most of their time idle, waiting on a human prompt, a tool result or a model response.[1]

Agents follow a different pattern: they wake up and take one step, running a shell command, editing a file, calling a test suite or calling an LLM.[1]

Then they wait, sometimes for milliseconds and sometimes for minutes, before the next step.[1]

What has to continue between steps

The agent’s state (its filesystem, its processes, its working directory) has to continue between steps.[1]

Running one Pod per session holds memory for sessions that aren’t doing anything, and deleting Pods between turns pays a multi-second cold start every time and loses the agent’s state.[1]

The two costly options

This leaves platform teams with two suboptimal choices: either keep one Pod warm per agent and pay for compute that is idle almost all the time, or create Pods on demand and pay a cold start penalty on every step.[1]

One warm Pod peragentpays for compute that isidlePods created ondemandpays a cold start on everystep
What does each option cost?

Sources

  1. Agent Substrate: Advancing Kubernetes for Agents at Scale (developer.nvidia.com · checked )

More articles