AWS AgentCore Runtime Revamp Cuts Cold Starts and Trims Memory Bills

AWS AgentCore Runtime Revamp Cuts Cold Starts and Trims Memory Bills

AWS announced a refreshed AgentCore runtime that promises faster, more predictable cold starts and memory usage that tracks actual demand rather than the peak allocation. For teams that run dozens of Bedrock agents—some idle most of the day, others handling long‑running jobs—those changes could shift both the bill and the user experience.

What the new runtime actually does

According to the AWS Machine Learning blog, the updated runtime introduces three core mechanisms:

  • On‑demand paging and reclamation – memory is allocated in small chunks and returned to the pool as soon as the session releases it.
  • Snapshot‑based boot – the container is started once, a trimmed snapshot is taken, and every new session restores that snapshot instead of re‑initialising from scratch.
  • Consumption‑based billing with a higher rate but lower GB‑hours – you still pay only for what you consume, but the per‑GB‑hour price is higher while the overall usage drops.

These changes aim at the two pain points AWS observed in production: paying for peak memory long after it’s unused, and cold‑start latency that balloons with image size and concurrency.

Memory management overhaul

The original runtime held a session’s peak memory for its entire lifetime. If an agent spiked to 4 GB for a brief operation and then sat idle, you were billed for that 4 GB for the whole session. The new runtime starts each session with a small resident footprint and pages in additional RAM only when the code touches it. When buffers are released or cached data expires, the platform immediately reclaims that memory.

Feature Original runtime New runtime
Memory held after allocation Peak memory retained until session end Memory reclaimed when idle; on‑demand paging
Billing granularity GB‑hours based on peak GB‑hours based on actual resident memory
Rate per GB‑hour Lower Higher
Typical footprint reduction > 50 % for many agents (as observed by AWS)

In practice this means that a bursty agent that only needs extra RAM for a few seconds will no longer carry that cost for the rest of its idle time.

Cold‑start latency in practice

AWS measured a P75 (75th percentile) cold‑start latency using an empty echo agent that does no model calls. The test ran 5 000 cold invocations per agent across five container image sizes (200 MB → 2 GB) from us‑west‑2 to us‑east‑1. Results:

  • Original runtime – latency grew with image size, from ~5.4 s (200 MB) to nearly 30 s (2 GB).
  • New runtime – latency stayed around 2 s regardless of image size.

Because the echo agent’s own processing took ~34 ms at P75, virtually all the observed time is platform start‑up. For interactive agents where a user waits for the first response, shaving 3–28 seconds off the start can be the difference between a smooth chat experience and a frustrated one.

What changes for you: trade‑offs and a watch‑list

The trade‑off nobody spells out is the shift from a low per‑GB‑hour rate to a higher one. The higher rate is justified by the fact that the runtime only keeps the memory you actually need, so the total GB‑hours usually drop dramatically. However, workloads that always run at near‑peak memory (e.g., a continuously training model) may see a modest cost increase because the higher rate applies to a nearly unchanged usage.

What to watch next

  1. Baseline‑pricing option – AWS plans to add a “reserved memory floor” model for agents that stay warm for long periods. Teams with predictable, always‑on workloads should monitor that rollout and evaluate whether the predictability outweighs the consumption‑based elasticity.
  2. Snapshot size creep – The runtime strips excess caches from the snapshot, but custom agents that load large, mutable caches at start‑up could unintentionally inflate snapshot size, re‑introducing latency variance. Keep an eye on container image bloat and audit what’s persisted into the snapshot.
  3. Region‑to‑region latency – The measurements include a cross‑region round‑trip. If you can colocate your client and AgentCore (same region or VPC peering), the absolute start time will be lower, making the runtime’s advantage even more pronounced.

Quick steps to try it today

  1. Enable the new runtime on a low‑traffic test agent – In the Bedrock console, switch the agent’s compute setting to the “new runtime” and redeploy.
  2. Instrument memory usage – Add a simple logging hook that prints psutil.Process().memory_info().rss at the start and end of each request. Compare the GB‑hours reported in the billing console after a day of typical traffic.
  3. Pre‑warm sessions for interactive bots – Modify the front‑end to call CreateSession as soon as a user opens the chat widget. The session will warm while the user types, effectively hiding the 2‑second start.
  4. Run a cold‑start benchmark – Use the same echo‑agent script AWS used, fire 100 requests from a different region, and record the 75th‑percentile latency. You’ll see the flat ~2 s curve if the snapshot is working.
  5. Evaluate pricing – Pull the hourly GB‑hour usage from the Cost Explorer, apply the new per‑GB‑hour rate (found in the Bedrock pricing page), and compare it to the previous month’s bill. If the cost is lower, keep the new runtime; if not, consider the upcoming baseline‑pricing option.

By swapping a single setting and adding a few monitoring lines, you can immediately see whether the new AgentCore runtime delivers the speed and cost benefits promised by AWS.

Sources

Read next

We count page views without cookies — no identifier, nothing stored on your device. Accept to allow cookies for analytics.