Paper deep dive
From LLM Inference to Agentic Workloads: Characterization and Implications for Serving Systems
Chaokun Chang, Yukun Zhou, Kaihua Fu, Dakai An, Tianyu Feng, Hanfeng Lu, Sheng Yao, Pu Guo, Yinghao Yu, Yizhou Shan, Bo Li, Binhang Yuan, Wei Wang
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 92%
Last extracted: 8/18/2026, 5:39:15 AM
Summary
This paper introduces AgentSysBench, a benchmark suite and measurement toolkit designed to characterize the system-level behavior of agentic workloads, which differ significantly from conventional LLM inference. The study identifies six key properties of agentic workloads: heavyweight stateful execution, heterogeneous resource affinity, shifting bottlenecks, long idle-but-live intervals, control-plane tax, and cross-request redundancy. Through controlled experiments and production traces, the authors demonstrate that non-LLM components often dominate latency and cost. They propose four design explorationsâtask-aware serving, communication-aware placement, state offloading, and tool-result cachingâthat yield significant performance improvements, highlighting the need for serving systems tailored to agentic characteristics.
Entities (20)
Relation Signals (17)
Yizhou Shan â affiliatedwith â ByteDance
confidence 95% · Yizhou Shan 3 , ... 3 Bytedance
Yinghao Yu â affiliatedwith â Alibaba Group
confidence 95% · Yinghao Yu 2 , ... 2 Alibaba Group
Chaokun Chang â affiliatedwith â Hong Kong University of Science and Technology
confidence 95% · Chaokun Chang 1,â ... 1 Hong Kong University of Science and Technology
AgentSysBench â includes â Codex
confidence 95% · Table 1. Compact overview of the AgentSysBench suite. Domain Application: Codex
AgentSysBench â includes â WebAgent
confidence 95% · Table 1. Compact overview of the AgentSysBench suite. Domain Application: WebAgent
AgentSysBench â includes â GUIAgent
confidence 95% · Table 1. Compact overview of the AgentSysBench suite. Domain Application: GUIAgent
AgentSysBench â includes â Claude Code
confidence 95% · Table 1. Compact overview of the AgentSysBench suite. Domain Application: Claude Code
AgentSysBench â includes â Openclaw
confidence 95% · Table 1. Compact overview of the AgentSysBench suite. Domain Application: Openclaw
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Agentic applications are shifting AI serving from isolated model inference to long-running workloads in which LLMs coordinate tools, environments, and persistent state. However, the system behavior of these workloads---where latency, cost, and bottlenecks arise---remains poorly characterized, leaving serving systems to rely on assumptions built for conventional inference. We present AgentSysBench, a benchmark suite and measurement toolkit with ten representative agentic applications and unified systems-level instrumentation. Across controlled deployments and production traces, we identify six properties that distinguish agentic workloads from conventional LLM serving: (1) execution is heavyweight and stateful, with non-LLM components dominating latency in 5 of 10 applications and sandbox working-set memory peaking at 28 GB per session; (2) applications compose components with heterogeneous resource affinity---GPU-bound inference, memory-bound retrieval, CPU-bound sandboxes---whose task latencies diverge by up to 32x; (3) bottlenecks shift across requests, models, and deployments; (4) production sessions hold state idle for minutes to hours between active steps; (5) a control-plane tax---auxiliary LLM calls and context overhead from tool schemas and observations---crowds out productive compute and context; and (6) production traces from three applications reveal heavy cross-request redundancy in search queries and web fetches, exposing a large caching opportunity. Four design explorations demonstrate that these findings are actionable: task-aware serving reduces latency by 29--40%, communication-aware placement by up to 4.5x, state offloading reduces memory usage by 4.6x, and tool-result caching removes 35.2% of redundant search calls and saves 19.3% of aggregate search latency.
Tags
Links
- Source: https://arxiv.org/abs/2608.15127v1
- Canonical: https://arxiv.org/abs/2608.15127v1
Trouble viewing inline? Open PDF directly â
Full Text
94,344 characters extracted from source content.
Expand or collapse full text
From LLM Inference to Agentic Workloads: Characterization and Implications for Serving Systems Chaokun Chang 1,â , Yukun Zhou 1,â , Kaihua Fu 1 , Dakai An 1 , Tianyu Feng 1 , Hanfeng Lu 1 , Sheng Yao 1 , Pu Guo 1 , Yinghao Yu 2 , Yizhou Shan 3 , Bo Li 1 , Binhang Yuan 1 , Wei Wang 1 1 Hong Kong University of Science and Technology 2 Alibaba Group, 3 Bytedance â Equal contribution. Abstract Agentic applications are shifting AI serving from isolated model inference to long-running workloads in which LLMs coordinate tools, environments, and persistent state. How- ever, the system behavior of these workloadsâwhere latency, cost, and bottlenecks ariseâremains poorly characterized, leaving serving systems to rely on assumptions built for con- ventional inference. We present AgentSysBench, a bench- mark suite and measurement toolkit with ten representa- tive agentic applications and unified systems-level instru- mentation. Across controlled deployments and production traces, we identify six properties that distinguish agentic workloads from conventional LLM serving: (1) execution is heavyweight and stateful, with non-LLM components dominating latency in 5 of 10 applications and sandbox working-set memory peaking at 28 GB per session; (2) appli- cations compose components with heterogeneous resource affinityâGPU-bound inference, memory-bound retrieval, CPU-bound sandboxesâwhose task latencies diverge by up to 32Ă; (3) bottlenecks shift across requests, models, and deployments; (4) production sessions hold state idle for min- utes to hours between active steps; (5) a control-plane taxâ auxiliary LLM calls and context overhead from tool schemas and observationsâcrowds out productive compute and con- text; and (6) production traces from three applications re- veal heavy cross-request redundancy in search queries and web fetches, exposing a large caching opportunity. Four de- sign explorations demonstrate that these findings are ac- tionable: task-aware serving reduces latency by 29â40%, communication-aware placement by up to 4.5Ă, state offload- ing reduces memory usage by 4.6Ă, and tool-result caching removes 35.2% of redundant search calls and saves 19.3% of aggregate search latency. 1 Introduction AI serving is shifting from isolated LLM inference to long- lived, tool-using sessions that act on a userâs behalf. Modern agentic applications use large language models (LLMs) not just to generate text but to invoke tools, inspect external environments, update persistent state, and iterate over inter- mediate results [30,45]. A single user request may trigger retrieval, code execution, browser or GUI interaction, API calls, and dozens of model invocations before producing a final answer, as in deployed coding, research, and assistant agents [3,5,27,35]. We refer to the resulting workloadsâ distributions of such session-level executionsâas agentic workloads: they combine model inference, tool execution, environment interaction, and state management under LLM- driven control (§2.1). Yet the systems behavior of these workloads remains poorly characterized: no study instruments a broad set of agentic applications under a unified serving stack and com- plements controlled findings with production-trace behavior (§2.2). System developers thus cannot answer basic questionsâ what fraction of end-to-end latency falls in tools versus mod- els, how session state grows, whether bottlenecks shift across requests and deployments, and how much work is productive versus control-plane overhead. As a result, serving systems for agentic workloads are often designed using assumptions inherited from conventional LLM inference [19,47], even though agents exercise a much broader and more heteroge- neous execution stack. Prior work leaves three gaps. First, recent agentic serving systems study only a few applications, often one to three, under incompatible tool, environment, model, and orches- tration assumptions [20,22,33,39]. These studies provide valuable point solutions, but their workloads are difficult to compare across systems and do not reveal which properties are fundamental versus application-specific. Second, capabil- ity benchmarks such as SWE-bench [17], AgentBench [21], WebArena [48], and OSWorld [43] measure task completion but record little systems-level information: latency break- downs, resource profiles, state footprints, tool-call behav- ior, or cross-request redundancy. Third, recent measurement studies of agentic execution [18,31,40,46] report useful observations on traces, CPU-side overhead, and reasoning cost, but each runs on a single fixed serving stack and does not treat hardware allocation, component placement, or pro- duction conditions as variables. To fill these gaps, we present AgentSysBench, a bench- mark suite and measurement toolkit with three features. First, it assembles ten representative agentic applications (Table 1) spanning the execution patterns that shape sys- tems behaviorâpredefined versus LLM-driven control flow, arXiv:2608.15127v1 [cs.OS] 15 Aug 2026 Table 1. Compact overview of the AgentSysBench suite. DomainApplicationDomainApplication QARAG [12]AI searchDeepResearch [3] Multimodal processing HuggingGPT [35]Software engineering Mini-SWE [2] Terminal useCodex [27]Browser useWebAgent [32] Computer useGUIAgent [43]Tool-rich assistants Claude Code [5] Office workOpenclaw [42]AutoResearchPi-AutoR [6] diverse tool/environment interaction, and long-running state- ful execution (§2.3). Second, it provides a unified harness that instruments LLM calls, tool invocations, and state opera- tions, recording latency, resource usage, data movement, live state footprint, token behavior, and cost. Third, it offers a modular serving stack that deploys LLMs, embedding mod- els, vector databases, sandboxes, browser/GUI environments, search services, and tool servers separately or co-located, enabling controlled study of provisioning, placement, and state management (§3). Using AgentSysBench, we characterize workloads by com- bining controlled experimentsâwhich isolate application, model, request, and deployment under unified instrumentationâ with production traces that reveal phenomena synthetic work- loads miss. Our study covers 4,641 benchmark requests, 64,924 LLM calls, 118,274 tool calls in controlled experiments, and 178,799 production sessions in a single day. Across both views, one theme recurs: model inference is no longer the sole cost center. A large, often dominant share of latency, memory, and cost arises in tools, environments, and long- lived session state, and the dominant cost shifts across re- quests, models, and deployments. Efficient agentic serving therefore requires coordinated management of models, tools, state, and communication, not model-centric optimization alone. We substantiate this theme through six key findings, among which the first three are from the controlled experi- ments: (1) Heavyweight execution with non-LLM dominance. Agent execution is long-running and stateful, issuing many LLM, tool, and environment calls while accumulating live ses- sion stateâprompts, tool outputs, KV cache, and artifactsâfor the whole request. In 5 of 10 applications, tools and envi- ronments dominate or co-dominate latency, so model-only optimization leaves much execution time untouched. Impli- cation: the serving stack must accelerate tool-heavy stages and manage session state, not just model inference (§4). (2) Cross-stack heterogeneity. A single application com- poses components with divergent resource profiles: GPU- bound LLMs, memory-bound vector databases, CPU-bound sandboxes, and network-bound services. Even tasks sharing one component differ by up to 32Ăin latency, causing se- vere head-of-line blocking under a single queue. Implication: provisioning and scheduling must be heterogeneity-aware, matching each taskâs resource profile rather than assuming uniform cost (§5). (3) Shifting bottlenecks. The dominant component shifts across requests, models, tools, and deployments. Even a sim- ple RAG pipeline shifts its bottleneck between embedding and vector-database operations as inputs change. Implication: application-level averages mask this variance; serving needs online, per-request adaptation, not static profiling (§6). Our production traces add three further findings that are difficult to uncover with controlled benchmarks alone. (4) Long idle-but-live intervals. Production sessions often wait minutes to hours between steps while holding conver- sational, tool, and environment stateâneither finished nor consuming compute. Treating them as live wastes memory and disk; treating them as finished loses resumable state. Implication: serving systems must distinguish âdoneâ from âwaitingâ to reclaim resources while preserving resumability, which we exploit for state offloading (§8.3). (5) LLM control-plane tax. Beyond productive work that deciding the next action and producing outputs, tokens are spent on tool schemas, raw observations, and safety checks. This control-plane tax grows over multi-step sessions and fills context, raising latency and cost. Implication: serving systems need context-budget-aware tool interfaces and ob- servation compression to recover capacity for useful work. (6) Exploitable cross-request redundancy. Among 373,678 search queries from a production agentic-search application, 27% of unique search queries recur and account for 67.3% of all search API calls. In another production Openclaw-like application issuing 4,389 web fetches, 24% of distinct fetched URLs recur and account for 64% of fetch invocations. This redundancy is invisible in single-task benchmarks. Impli- cation: query- and object-level caching can eliminate most redundant external calls, cutting latency and cost (§8.4). These findings lead to actionable optimizations. To show this, we conduct four design explorations that yield signifi- cant performance gains: task-disaggregated serving (29â40% lower latency), agent-aware co-location (up to 4.5Ă), state offloading (4.6Ăless memory), and tool-result caching (35.2% fewer redundant search calls and 19.3% less aggregate search latency). These gains come from simple, characterization- guided mechanisms rather than a full system optimizationâ evidence that current workload-oblivious serving leaves sub- stantial efficiency unclaimed. We will release AgentSysBench as open source so the community can build the next generation of agent-serving systems with a workload-informed design. 2 Background and Motivation Conventional LLM serving treats a token-generation request as the unit of work, but an agentic application turns one user request into a long-running execution that interleaves LLM 2 Coding Agent Task System Behavior Result LLMSandbox Agentic Workload Serving System ReasoningAction GPU-Server SGLang Sandbox-Server Docker Req latency Resource Usage Exec Breakdown Figure 1. Agentic workload, serving system, and system behavior illustrated with a coding agent. calls, tool invocations, environment interactions, and state updates. Serving such applications therefore requires under- standing the full execution induced by a request. This section defines agentic workloads (§2.1), explains why characteriz- ing them requires jointly controlling the workload and the serving system (§2.2), and derives the design requirements for our benchmark suite (§2.3). 2.1 Agentic Applications and Workloads We use agentic application to denote the user-visible AI appli- cation, and agentic execution to denote the runtime process induced by one user request or session. Unlike a chatbot re- quest, which the serving system can treat as a single stateless inference call, an agentic execution interleaves LLM calls, tool invocations, environment interactions, and state opera- tions under runtime control decisions. Its structure forms an execution graph with chains, branches, loops, and parallel sub-tasks; each request realizes one path through this graph, and the events recorded along that path form an execution trace. Figure 1 (left) shows a coding agent as a running ex- ample: an orchestrator drives a ReasoningâAction (ReAct) loop, repeatedly dispatching to an LLM for reasoning and to a sandbox for action until a result is produced. For a systems study, the relevant object is not a single exe- cution but a distribution of executions, which we call an agen- tic workload and summarize by four factors,í=âší ,í,í,íâ©. The request distributioní captures application scenario, task difficulty, and payload size. The tool and environment setí (e.g., sandboxes, browsers, and vector databases) determines I/O behavior, state footprint, failure modes, and non-LLM bottlenecks. The model choices and inference policiesí determine latency, cost, token volume, context length, and cache behavior. The orchestration structureí(e.g., a prede- fined pipeline, a ReAct loop, or a plannerâexecutor design) shapes dynamicity, parallelism, and state retention. Together, these factors determine execution length, resource demand, and cost; §3 uses them to select representative applications. 2.2 The Gaps Need for a systems benchmark suite. Serving systems for agentic applications are still designed largely with assump- tions inherited from conventional LLM inference [19,47]. A primary reason is that the systems community lacks a characterization of the workloads these applications induce. Obtaining such a characterization is harder than profiling model inference: agentic behavior cannot be characterized from the workload alone, because the observed outcome also depends on how the workload is served. We model the serving system así=âší»,í¶,íŽâ©, whereí»denotes hard- ware resources, including GPUs, CPUs, DRAM, storage, and network bandwidth;í¶denotes component-serving mecha- nisms, i.e., how each componentâthe LLM engine, embed- ding or reranking service, vector database, sandbox manager, browser or GUI environment, and coordinatorâis served; andíŽdenotes deployment architecture, i.e., whether compo- nents are co-located, separately containerized, or served by remote cloud services. Figure 1 (bottom) shows a concrete instance: an SGLang LLM engine (í¶) on a GPU server (í») and a Docker sandbox (í¶) on a physically separate server (í»), communicating over the network (íŽ). A measured outcome is therefore an interactioní=Ί(í,í)(Figure 1, right): the same application can appear LLM-dominated with a slow model, tool-dominated with a slow sandbox, state-dominated with a large live context, or network-dominated with remote placement. If the serving stack is underspecified, a study may attribute to the workload a bottleneck actually caused by hardware allocation, serving policy, or placement; if the workload is underspecified, an optimization may be tuned to one configuration with no evidence that it generalizes. Prior work falls short. Existing work controls only one side of this interaction. Capability benchmarks such as SWE- Bench [17], WebArena [48], OSWorld [43], ToolBench [30], and AgentBench [21] provide realistic tasks and environ- ments but measure task completion on an implicit, uncon- trolled serving stack, recording little systems-level informationâ latency breakdowns, resource usage, state footprints, or to- ken accountingâso they cannot explain where serving cost arises. Agent-serving systems [20,22,33,38,39] take the opposite cut: each varies serving mechanisms but evalu- ates them on one to three workflows under incompatible assumptions about requests, tools, models, and orchestra- tion, so their observations cannot be compared across studies or shown to generalize beyond the evaluated applications. Recent measurement studies [18,31,40,46] come closest, instrumenting ReAct-style traces, tool costs, CPU-side or- chestration overheads, and dynamic reasoning costs, but each runs on a single fixed serving stack rather than treating the stack as a variable; a reported bottleneck may therefore be specific to that stackâs model engine, tool implementation, hardware allocation, or placement policy. 3 Controlled study is insufficient. Even a jointly controlled study is incomplete, because some workload behavior emerges only in production. Controlled experiments impose synthetic arrival processes and run tasks to completion in isolation, so they cannot surface realistic request arrivals and user think time, long-lived sessions that hold state while idle, or redun- dancy across requests from different users. Our production traces show that these phenomena are consequential: ses- sions wait minutes to hours between steps while holding live state, and a majority of external search calls repeat queries issued by earlier requests (§7). A characterization built only from controlled benchmarks would miss the behaviors that drive memory occupancy and external-call cost at scale. 2.3 Design Requirements for the Benchmark Suite We believe a rigorous characterization must satisfy four needs: select applications through an explicit workload model rather than an ad hoc collection; jointly specify and control the workloadíand the serving systemí; instrument com- plete executions at the granularity of individual LLM calls, tool invocations, and state operations; and complement con- trolled findings with production traces. These needs translate into four requirements for the benchmark suite. R1: Workload representativeness. The suite must cover diverse combinations ofí ,í,í, andírather than a nar- row selection of prompts or task labels. Narrow coverage confines observations to application-specific phenomena; coverage across request distributions, tool environments, model choices, and orchestration structures is necessary to identify which properties are fundamental to agentic serving. R2: Controllable serving-system factors. The suite must let experiments vary hardware allocation (í»), component- serving mechanisms (í¶), and deployment architecture (íŽ) under controlled conditions. Without this capability, an ob- served bottleneck cannot be attributed to the workload or the serving infrastructure, and an optimization cannot be evaluated across deployment configurations. R3: Unified component-level instrumentation. Mea- surements across applications and deployments must be directly comparable, and instrumentation must reach indi- vidual LLM calls, tool invocations, and state operationsânot only end-to-end outcomesâsince attributing cost requires per-component visibility into latency, resource usage, data movement, token behavior, and state footprint. R4: Production complementarity. The suite must pair con- trolled benchmarks with traces collected from production deployments, exposing the request arrivals, session lifetimes, and cross-request redundancy that controlled experiments cannot reproduce. The production study complements rather than directly validates the controlled experiments by reveal- ing additional deployment-only behavior. AgentSysBench is designed to meet all four requirements: §3 describes the application collection (R1), modular serving stack (R2), and measurement toolkit (R3), and §7 presents the production-trace study that addresses R4. 3 Benchmarking Suite This section describes how AgentSysBench turns the work- load and serving-system models from §2.1 and §2.2 into a runnable benchmark suite. AgentSysBench maps work- load factorsí=âší ,í,í,íâ©to a representative application collection (R1), exposes serving-system factorsí=âší»,í¶,íŽâ© through a modular serving stack (R2), and records compara- ble traces and resource time series across applications (R3). We then describe how new workloads can be added and list the default settings used in our characterization study. 3.1 Application Collection AgentSysBench addresses workload representativeness (R1) by selecting applications that exercise distinct systems-relevant regions ofí= (í ,í,í,í). Table 2 summarizes the suite. The goal is not to statistically sample all agents, but to pre- serve realistic task semantics while covering properties that shape latency, resource demand, state footprint, and cost. The common workload model lets later observations be attributed to workload structure rather than ad hoc implementations. For request distributioní , AgentSysBench uses deliber- ately different task regimes rather than a flat domain list. Short document-QA requests exercise small payloads and fre- quent queries, browser and GUI tasks introduce minute-scale interaction, and AutoML/research jobs stretch execution over longer horizons with larger artifacts. Together, these cases cover scenario, payload-size, and duration variance. For tools and environmentsí, the suite selects applica- tions whose non-LLM components stress different resources and failure modes. Retrieval and AI-search workloads ex- ercise embedding, reranking, vector databases, and exter- nal search; coding and terminal workloads stress shell and filesystem execution; browser, GUI, and MCP-based work- loads add stateful user interfaces, remote services, and network- facing I/O. These examples cover tool-driven I/O behavior, state footprint, non-LLM bottlenecks, and cost profiles. For orchestrationíand model choicesí, AgentSysBench covers both control-flow and inference-policy variance. RAG represents a largely predetermined pipeline, interactive agents expose ReAct loops, and DeepResearch combines parallel exe- cution, planning, branching, and loop-based refinement. The suite also spans compact text models, stronger coding/tool- use models, multimodal models for browser and GUI inter- action, and tiered DeepResearch inference. These choices expose differences in execution length, state evolution, la- tency, context pressure, token behavior, and monetary cost. 4 Table 2. Systems-oriented overview of the benchmarking suite in AgentSysBench. ApplicationDomainDatasetsKey Tools/EnvsMajor Orch.Model RAG [12]Retrieval QAWQA [44], MS-MARCO [24]VecDB, embedPipelineQwen2.5-7B HuggingGPT [35]MultimodalTaskBench [36]Specialized modelsPlan-ExecDS-V4-Pro OpenDR [3]AI SearchYDC [37], GAIA [23], HLE [28]Search, VecDB, embed Parallel, Plan-Exec,Qwen3.7-Max; Branching, LoopDS-V4-Pro, V4-Flash Mini-SWE [2]CodingSWEBench Verified [17]FS, shellReActDS-V4-Pro Codex [27]TerminalTerminal Bench [34]FS, shellReActDS-V4-Pro WebAgent [7]BrowserWebArena Verified [32]BrowserReActKimi-K2.6 GUIAgent [43]GUIOSWorld [43]DesktopReActKimi-K2.6 Claude Code [5]Tool-rich assistantMCP-Atlas [4]MCP, search, FS, shellReActDS-V4-Pro Openclaw [42]OfficeWildClawBench [9]MCP, search, FS, shellReActDS-V4-Pro Pi-AutoR [6]AutoML/researchMLEBench [26]MCP, search, FS, shellReActDS-V4-Pro 3.2 Serving Stack AgentSysBench exposes serving-system factors (R2) through a modular serving stack with explicit boundaries between ar- rivals, orchestration, tools, models, and deployment. At run- time, a generated request flows from the workload generator to an application orchestrator, which issues LLM calls, tool invocations, and environment interactions. AgentSysBench instruments this path at the orchestrator, proxy, sandbox, and container layers, linking each operation to its resource footprint. The workload generator ownsí : it samples tasks from the original datasets, applies an arrival process such as one-by-one, Poisson, or trace-driven arrivals, and submits requests through the orchestratorâs protocol. Each orchestra- tor ownsíand invokes configurable tools and environments (í) and model services (í). This separation lets experiments vary arrivals, models, tools, or orchestration independently when studying factor sensitivity. The guiding invariant is factor isolation: changing one factor should preserve the others whenever possible; a new arrival process reuses the same orchestrator, a new model endpoint preserves the same tool path, and a new tool deployment leaves the request dis- tribution intact. This invariant lets AgentSysBench compare serving choices without confounding them with benchmark- specific glue code. The deployment layer exposesí=âší»,í¶,íŽâ©. AgentSysBench packages runtime components as Docker containers so exper- iments can reproduce hardware allocation (í»), component- serving mechanisms (í¶), and deployment architecture (íŽ) under controlled resource limits and placement choices. For example, a study can replace an SGLang instance with a vLLM instance to isolate the effect of the LLM-serving engine, or move a component from an embedded function call to an isolated online service to study disaggregation. AgentSys- Bench provides a lightweight programming framework for this conversion, requiring only code-level annotations and network configuration to switch between local invocation and remote procedure calls. 3.3 Measurement Toolkit AgentSysBench provides unified, component-level instru- mentation (R3) that turns heterogeneous executions into comparable measurements ofí=Ί(í,í). It records end- to-end latency, per-operation latency, input and output size, token usage, and monetary cost when available, along with component resource usage including CPU, memory, disk, network, and GPU usage. These metrics expose where time, resources, tokens, and cost are spent under a given workload and serving configuration. All instrumentation paths produce a normalized per-operation execution trace. Each record captures the operation type, component, start and end time, input/output size, token us- age, and monetary cost when available. White-box applica- tions whose source code can be modified (RAG, HuggingGPT, DeepResearch, Mini-SWE, WebAgent) emit these records through lightweight annotations. Black-box third-party ap- plications (Codex, GUIAgent, Claude Code, Openclaw, Pi- AutoR) are traced through LLM/tool proxies and sandbox hooks; for sandbox-heavy applications, AgentSysBench uses SSH-based remote sandboxes to intercept actions through their hook methods. Both paths feed the same trace schema, which matters because agents expose different internal inter- faces: some expose Python call sites, while others expose only API traffic, shell actions, or sandbox hooks. By treating these as collection paths for the same logical events, AgentSys- Bench lets downstream analyses compare LLM calls, tool invocations, and environment actions across applications. Containerized deployment lets AgentSysBench attach pro- duction observability tools to each runtime component. cAd- visor [13] collects CPU, memory, disk, and network usage, NVIDIA DCGM Exporter [25] collects GPU utilization and memory usage, and Prometheus [1] stores these metrics as time series. After an experiment completes, AgentSysBenchâs analysis library normalizes traces, extracts metrics, and gen- erates either dedicated figures or customized Grafana [14] dashboards. 5 Visual Library Analysis Library (file) Latency (file) Intermediate DeploymentAgent System Analysis Metric execution latency intermediate state GPU Usage Resource Usage Collect Storage Docker Container Orchestrator In Process Instrumentation Docker Container vLLM/SGLang Docker Container Sandbox Docker Container LLM-Proxy Docker Container VectorDB Docker Container Workload Generator In Process Instrumentation Dispatch Queue LLM Service External Env. cAdvisor DCGM Prometheus Search Engine Code Repo. Latency Collector Intermediate collector Figure 2. Suite Overview. 3.4 Extensibility New orchestration frameworks, tool types, model capabili- ties, and deployment patterns emerge rapidly; to keep the suite current, AgentSysBench supports extensibility by re- quiring new applications to describe themselves in the same workload and serving-system space as the existing suite. To add an application, a user specifies its request distribution, tools and environments, models, orchestration, hardware resources, component-serving mechanisms, and deployment architecture. Because the measurement toolkit already nor- malizes operation traces and resource time series, new appli- cations do not require new metric definitions or attribution logic. Integration is localized to the parts that actually differ. A new workload can reuse existing arrival patterns, con- nect its orchestrator to the tool and model interfaces, and choose annotation-based or proxy-based tracing depending on whether its source code can be modified. The deploy- ment framework then gives the new application the same local-to-remote conversion used by the built-in applications. 3.5 Default Benchmarking Settings Unless otherwise stated, the controlled characterization in Sections §4â§8 uses the following default deployment. Each workflow except RAG runs on one cutting-edge NVIDIA GPU server, with each module placed in one Docker con- tainer and containers communicating through a shared-memory- based virtual network. Mini-SWEAgent uses a self-deployed DeepSeek-V4-Pro served by SGLang v0.5.12, while the other non-RAG workflows use the Alibaba-Bailian API. RAG runs on one x86_64 server with 8Ă 4090D GPUs. For tool deployment, embedding tasks use jina-embeddings- v3, served by TEI [16]. RAG and DeepResearch deploy Mil- vus [41] from its official Docker image. DeepResearch uses the Exa search service. 1 HuggingGPT serves machine learn- ing models via HuggingFace Pipeline [15]. 1 https://ai-sdk.dev/resources/tools/exa. RAG 5 6 Time (s) HGPT DRS Web GUI Claude Codex SWE Claw 10 0 10 1 Time (min) PiAR 2 3 4 Time (h) Figure 3. Distribution of end-to-end latency across requests for all ten AgentSysBench applications. RAGHGPTDRSWebGUIClaudeCodexSWEClawPiAR 0% 50% 100% LLM Sandbox Search Embedding VDB Model MCP Other Figure 4. Decomposition of end-to-end execution time by component type. 4 Heavyweight with Non-LLM Dominance Agentic workloads differ fundamentally from conventional LLM serving along five systems dimensions: end-to-end la- tency, token consumption, live state footprint, data move- ment, and monetary cost. Using AgentSysBench, we show that these workloads are heavyweight and stateful, and that non-LLM componentsâsandboxes, retrieval engines, and en- vironment interactionsâfrequently dominate both latency and cost. Optimizing model inference alone therefore leaves the majority of execution time and operational expense un- touched. 4.1 Long Running and Non-LLM Bottleneck Conventional LLM serving workloads are sub-second, single- turn inference requests. However, agentic workloads involve iterative, multi-step execution loops that interact with exter- nal environments. To understand the latency characteristics of these workloads, we first measure the end-to-end exe- cution latency and analyze where the time is spent across different components. Figure 3 shows the end-to-end latency distribution across all ten applications under sequential execution. As shown by the figure, agentic executions are long-running and heavy- tailed. Unlike chatbot or microservice workloads that com- plete in sub-second to second timescales, agentic requests span seconds to several hours. For example, coding tasks in Mini-SWEfrequently exceed ten minutes, and research tasks in PiAutoResearch can reach several hours. To pinpoint the drivers of this extreme latency, we decom- pose the end-to-end execution time into component-level runtimes. Figure 4 decomposes execution time into LLM inference, sandbox operation, search, databases operations, MCP calls, embedding, general model inference, and orches- tration overhead. As shown in the figure, non-LLM compo- nents dominate the critical path in half of the characterized 6 RAGHGPTDRSWebGUIClaudeCodexSWEClawPiAR 10 1K 100K Tokens CachedUncachedOutput Figure 5. Token consumption breakdown across character- ized applications. applications. For example, the containerized desktop sandbox inGUIAgentaccounts for over 70% of total execution time, while experimental runtimes consume 90% in Pi-AutoR. Implications: These prolonged execution times fundamen- tally change system reliability and optimization require- ments. First, the extended runtime dramatically increases the likelihood of node or network failures during a single request, making simple retry-on-failure strategies prohibitively ex- pensive. Serving systems must therefore provide lightweight, low-overhead fault tolerance to checkpoint and resume agent sessions. Second, because non-LLM components dominate the execution time, model-only optimizations yield dimin- ishing returns. The serving stack must transition to joint optimization to improve end-to-end latency. Takeaway: Agent execution is long-running and non-LLM- dominated. Serving systems must manage tool latency and provide lightweight fault tolerance, not just optimize infer- ence. 4.2 Increasing Token Usage Token consumption remains a primary operational cost dri- ver for agentic applications. However, the structure of to- ken usage in agent workloads differs fundamentally from single-turn LLM serving, characterized by super-linear con- text growth and unique prefix sharing. Figure 5 breaks down the per-session token consumption across our characterized applications. Multi-turn token amplification. Applications employing iterative reasoning loops (e.g., the ReAct pattern inMini-SWE andCodex) accumulate tokens super-linearly across execu- tion steps. Because each consecutive LLM call appends the entire historical conversation, tool execution logs, and sys- tem prompts to the context window, the input size scales quadratically with the turn count. Consequently, ReAct-style agentic workloads consume orders of magnitude more to- kens per session than typical RAG workloads, which operate on fixed, single-turn prompts. Exploiting prefix cache dynamics. As context windows expand and multi-turn loops dominate, LLM inference en- gines must heavily rely on prefix caching to bypass redun- dant prefill computations. Our characterization shows that prefix cache hit rates vary dramatically across workloads, reflecting differences in prompt engineering and application workflows. Applications with static system prompts and append-only execution histories (e.g.,Claude Code) achieve 0510 (a) KV Cache (GB) 0 50 100 Count Mean=2.2 P50=1.5 020 (b) Peak Mem (GB) 0 100 Mean=2.2 P50=0.8 02040 (c) VDB Size (MB) 0 10 20 Mean=10.0 P50=7.4 Figure 6. Distribution of KV-cache performance state (a), ac- tive sandbox working-set memory (b), and persistent vector- database state (c) across representative sessions. cache hit rates of up to 99%. In contrast, applications that frequently restructure, reorder, or dynamically fetch context at each turn (e.g.,DeepResearch) see prefix reuse drop to 1% or lower. Implications: The dominance of cache-hit tokens makes prefix caching an absolute necessity rather than an optional optimization. To support these workloads, serving systems must treat context caches as first-class, long-lived resources. This directly shifts the systems challenge to managing the massive memory footprint of these cached performance statesâa challenge we dissect in detail in §4.3. Takeaway: Token usage grows chronologically with agent complexity, heavily driven by Cache Hit tokens from itera- tive loops. Serving systems must optimize for high-volume context caching and token cost mitigation. 4.3 Substantial States to Manage Unlike traditional stateless inference models, agentic execu- tion models are highly stateful, maintaining large execution contexts across their lifetime. We distinguish cached per- formance state and persistent correctness state from active working-set memory. The first two must be managed across session pauses; the last is a transient resource demand and is not necessarily checkpointable state at a quiescent boundary. Performance state. Performance state consists of cached intermediate artifacts that can be discarded without violat- ing execution correctness, but whose loss incurs significant recomputation latency. The primary example is the LLM KV cache, which must be retained in GPU HBM or host DRAM to avoid re-evaluating long, multi-turn contexts on subsequent steps. As shown in Figure 6(a), as context lengths accumulate over dozens of iterations, a singleClaude Code session running a large model like DeepSeek-V4 can con- sume up to 11 GB of GPU memory for KV cache storage. While evicting this state is semantically safe, because the inference engine can reconstruct the cache by re-prefilling the history on the next call, the steep latency and compute cost of prefill recomputation makes opportunistic eviction a costly trade-off. 7 Persistent correctness state. Persistent correctness state comprises mutable execution data that cannot be lost with- out breaking the programâs execution semantics. In search- intensive applications likeDeepResearch, each session in- stantiates an independent, per-session vector database col- lection containing dynamically retrieved documents and em- bedding indices. Figure 6(c) shows that the median collection size reaches 7.4 MB, with larger sessions exceeding 49 MB. Coding agents such asCodexalso require persistent filesys- tem changes, installed dependencies, and process metadata. Agentic applications may further make external side effects (e.g., sending an email), making the corresponding external- component state part of correctness. Active working-set memory. A live sandbox also con- sumes DRAM while commands execute. As characterized in Figure 6(b), median sandbox peak DRAM usage is about 0.8 GB, whereas the per-session peak reaches 28 GB during compilation and unit tests. This 28 GB value is a working-set peak: transient compiler and test pages are not necessarily persistent correctness state, nor do they all need to remain live or be copied into a quiescent checkpoint. Implications: The co-existence of performance state, per- sistent correctness state, and a large active working set com- plicates resource management. Standard stateless microser- vices tolerate failures through simple, cheap request retries. In contrast, failing or migrating an agentic session requires coordinating state checkpointing across the LLM engine and tool runtimes, while resource provisioning must separately accommodate transient sandbox peaks. Crucially, the wide gap between typical and peak sandbox memory footprints (Figure 6(b)) exposes a key optimization opportunity: quiescent-point snapshotting. Initiating a sand- box checkpoint during periods of peak compilation activ- ity is highly inefficient. Instead, because agentic workflows naturally alternate between active execution steps and idle periods (further analyzed in §7.1), scheduling sandbox check- points during inter-step idle intervals (e.g., when the agent is waiting for LLM generation results) avoids treating a tran- sient working-set peak as the checkpointable live footprint. Symmetrically, the host system can offload or page out the GPU KV cache of an idle session while the agent is waiting for long-running sandboxed tool executions, maximizing active GPU memory utilization. Takeaway: Agent sessions combine evictable KV caches, persistent correctness state, and sandbox working sets that peak at 28 GB. State management should checkpoint persis- tent state at quiescent boundaries and provision transient working-set peaks separately. 4.4 Extensive Data I/O The interactive nature of agentic workflows generates sub- stantial volumes of intermediate data that must be serial- ized and transferred across distributed components. Figure 7 quantifies the average data volume received (left bars) and RAGHGPTDRSWebGUIClaudeCodexSWEClawPiAR 10 2 10 4 I/O (KB) LLMSandboxSearchEmbeddingVDBModelMCP Figure 7. Average and total data volume serialized, trans- mitted, and received per component type. sent (right bars) per component type, alongside the aggregate I/O per execution session. Our analysis shows that a single agentic execution can generate and transfer tens of megabytes of data. This exten- sive I/O is primarily driven by three sources. First, sandboxed environments incur substantial visualization and file synchro- nization overhead. InGUIAgent, the desktop sandbox must capture and transmit high-resolution GUI screen frames at each interaction step, generating the largest per-step data volume in our benchmark. Second, embedding models and vector databases produce substantial volumes of dense re- trieval representations. In ourDeepResearchconfiguration, the embedding service emits 1,024-dimensional FP32 vec- tors. A request transfers over 20 MB of serialized embedding payload, corresponding to roughly 5,000 vectors (about five million scalar embedding elements) before protocol over- head. Third, LLM context accumulation aggregates extensive state. While individual LLM text outputs are relatively com- pact, multi-turn interactions require sending long system instructions, toolsâ responses, and historical observations. In applications likeGUIAgent, this repeated round-trip transfer accumulates to over 10 MB of text data per session. Implications: This I/O is not merely a side effect of stateful- ness; it is a first-class bottleneck. In distributed deployments, serialization, deserialization, and network transmission of embeddings, sandbox observations, and accumulated con- text consume significant bandwidth and CPU cycles. Inter- component network capacity and serialization efficiency therefore constrain achievable concurrency and end-to-end latency, independent of compute provisioning. Takeaway: Data movement reaches tens of MB per session and is driven by sandbox observations, embedding serializa- tion, and context accumulation. This makes network band- width and serialization efficiency emerge as critical, non- negligible bottlenecks for high-concurrency agent-serving architectures. 4.5 Estimated Pay-as-you-go Cost Breakdown The physical characteristics detailed in the previous subsectionsâ long execution runtimes, massive states, and high I/O volumesâ ultimately translate into financial costs. While the system community heavily prioritizes model-centric metrics such as cost-per-million-tokens, we show that the extensive non- LLM infrastructure required by agents fundamentally alters the economics of serving. Figure 8 estimates per-request 8 RAGHGPTDRSWebGUIClaudeCodexSWEClawPiAR 0% 50% 100% LLMSandboxSearchEmbeddingVDBModel Figure 8. Estimated per-request pay-as-you-go cost break- down under public cloud pricing. pay-as-you-go operating cost under public cloud pricing for LLM APIs (cache-read, prefill, decode), sandbox execution (E2B [10]), and web search services (Firecrawl [8]). We find that non-LLM infrastructure charges dominate this estimate in tool-heavy applications. InPi-AutoR, sandbox charges constitute over 99% of the per-request cost, driven by GPU-accelerated containers for scientific simulations. This operating-cost shift is fundamentally driven by re- source idle times during sequential execution. When dedi- cated sandboxes or retrieval environments are allocated to a session, they continue to incur billing charges even when the session is waiting for long GPU-bound model inference steps, leading to low resource utilization and high financial waste. Implications: Cost-aware serving systems must look be- yond token efficiency and orchestrate the full tool-use life- cycle. To operate agentic workloads cost-effectively at scale, serving platforms must deploy active sandbox multiplexing and dynamic resource provisioning. Similar to serverless cold-start optimizations, the serving stack should dynami- cally pause, snapshot, and resume container environments during idle periods, decoupling physical resource billing from the idle times of the agentic loop. Takeaway: Non-LLM infrastructure dominates monetary cost in tool-heavy applications. Cost-aware serving must account for sandbox, retrieval, and environment expenses, not just token pricing. 5 Cross-Stack Heterogeneity Section 4 established that non-LLM components dominate la- tency and cost, implying that the serving stack must optimize the tool- and environment-heavy path rather than model inference alone. Yet this path cannot be treated as a single target. Agentic applications compose LLMs, small models, and diverse tools whose resource demands and runtime char- acteristics differ fundamentally from one another. Without explicit management, this heterogeneity causes resource fragmentation and performance interference. We therefore study how heterogeneity manifests at three levels: compo- nents, tasks, and individual invocations; and how it impacts the resource provisioning and scheduling of the serving sys- tem. P1P2W1W2W3W4S1Emb-DEmb-Q 0 10 20 Avg. Time (s) 3.1 6.3 3.3 2.3 6.8 14.8 5.0 20.5 0.64 LLMNon-LLM Figure 9. Execution time of tasks in the DeepResearch. 10 3 10 4 10 5 Input Tokens 10 1 10 2 10 3 Output Tokens W1W2W3W4S1 10 0 10 1 10 2 10 3 Input Size (KB) 10 2 10 3 10 4 Output Size (KB) Emb-DEmb-QSearch Figure 10. Workload of tasks in the DeepResearch. 5.1 Component-Level Heterogeneity Heterogeneity is most visible across components. A single application spans GPU-bound LLMs, CPU-bound sandboxes (WebArenaâs browser, GUIAgentâs desktop), memory-bound vector databases, and network-bound search services (Deep- Research), and it persists even within the GPU tier: Hug- gingGPT alone coordinates models spanning a 16.8-to-6032- GFLOP range [11,29], each with a distinct memory footprint and latency profile. The components also differ in lifecy- cle â stateful LLMs and long-running sandboxes demand sustained memory and fast local storage, whereas stateless embedding models are ephemeral and elastically scalable. On homogeneous hardware these divergent profiles fragment re- sources, saturating GPUs while CPUs sit idle and precluding any static provisioning plan. This component-level diversity is intuitive; the less obvious and more consequential hetero- geneity emerges within a single component â across tasks (§5.2) and even across invocations of one task (§5.3) â which we examine next. 5.2 Task-Level Heterogeneity Beyond component-level differences, tasks within the same application differ by up to 32Ăin latency even when served by the same component. In DeepResearch, two LLM stagesâ write-search-plan (W2) and write-section (W4)â issue to the same model, yet W4 is 6.43Ăslower (Figure 9). The gap is starker for embeddings: Embed-Doc is 32Ăslower than Embed-Query on the same model. The driver is input/output scale, not the component itself. For LLM tasks like W2 and W4, the execution cost is mainly determined by the number of input tokens to prefill and the number of output tokens to decode. As shown in Fig- ure 10(left), the average input tokens of W4 is 26Ălarger than W2âs, and the average output tokens of W4 is 16Ălarger than W2âs, accounting for the 6.43Ăgap. For embedding tasks, the execution cost is also mainly determined by the payload of 9 12345678910 Trace (Codex) 0 25 50 75 100 125 Delay (s) Trace (Mini-SWE) Figure 11. LLM-invocation latency across iterations for ten Mini-SWE traces. 080160 (a) Output tokens 0.0 0.3 0.6 token(K) 40 80 cached non-cached 080160 (b) Input tokens 0 2 080160 (c) LLM decode time 0.0 2.5 5.0 time(s) 080160 (d) LLM prefill time 0.0 0.2 0.4 time(s) 080160 (e) LLM inference 0.0 2.5 5.0 latency(s) 080160 (f) Sandbox execution 0 3 6 latency(s) pip install 7.3s sed read 0.04s max/min 171Ă token(K) Figure 12. Invocation-level heterogeneity in a single Mini- SWE execution: per-iteration input and output length, de- composed prefill and decode latency, and sandbox latency. Decode latency tracks output length, while prefill latency tracks the newly appended observation rather than the mono- tonically growing (cached) context. texts to embed. As shown in Figure 10(right), Embed-Docâs payload is 325Ă larger than Embed-Queryâs. 5.3 Invocation-Level Heterogeneity Figure 10 exposes a second layer of heterogeneity: the spread within each task is itself largeâper-call workload varies widely not only across task types but also within a single one. This intra-task spread is not merely a consequence of aggregating different executionsâeven within one agent ex- ecution, a task invoked repeatedly differs substantially from one invocation to the next. Figure 11 plots the latency distribution across iterations of ten Mini-SWE traces. As shown in the figure, within a single trace the same LLM task varies by up to 30Ă, indicating remarkable intra-execution invocation-level heterogeneity. Similar to task-level heterogeneity, the invocation-level heterogeneity of LLM tasks is also driven by per-invocation workloadâspecifically, the output it decodes and the input it must prefill. We decompose the latency of LLM invocations into prefilling time and decoding time, and plot the prefilling and decoding time of LLM invocations from a single Mini- SWE execution trace in Figure 12, together with the input length and output length of each invocation. As shown in Figure 12, the output length varies widely within a single trace, contributing directly to the observed fluctuation in decoding latency, and thereby in end-to-end in- vocation latency. Input length increases consistently because iterative agent loops append each action and observation to the conversation history. Prefix caching reuses the KV states of this accumulated context and therefore avoids re- computing the cached tokensâ projections and feed-forward layers [47]. Nevertheless, the cached prefix is not free: each newly appended token must still attend over the preceding cached keys and values. If an invocation hasí¶cached to- kens andíuncached tokens, the remaining attention work grows approximately withí(í¶+í), and the attention ker- nel must read more cached KV state así¶increases. The growing cached prefix therefore raises the global baseline of prefill latency across iterations. Meanwhile, variation iníâ the newly appended, non-cached observationâdrives local fluctuations because these tokens require full model compu- tation and introduce additional attention queries. Thus, total context length explains the global increase in prefill latency, while uncached input length better explains its iteration-to- iteration variation. Besides LLM tasks, sandbox invocation also shows signif- icant invocation-level heterogeneity. We measured the la- tency of the sandbox invocation across iterations in the Mini- SWE execution trace. As shown in Figure 12, the sandbox invocation varies widely within a single trace, with longest latency (pip installcommand) up to 171Ăslower than the shortest (sed command). Invocation-level heterogeneity is not limited to iterative agent-loop applications. Other agentic applications also ex- hibit significant invocation-level heterogeneity due to re- peated calls to the same task within a single execution. For example, in DeepResearch where each agent execution will trigger multiple search queries, the search latency varies unpredictably across invocations: result payload sizes range from small snippets to multi-MB web pages, and network conditions fluctuate when dozens of parallel queries compete for external bandwidth. At the same time, the varying sizes of the web pages returned by search queries introduce vary- ing payloads to the embedding task, thereby contributing to varied embedding latency across invocations within the same execution. 10 0106K128K bkgd. doc. load (token/s) 0 100 200 latency (ms) (a) Embed. query 5.6 40 200 0Ă128K1Ă128K2Ă128K background long-seq 0 5 10 15 TPOT (ms) (b) LLM decode 8.01 11.08 14.39 isolatedshared exec setting 0 20 40 60 80 time (s) (c) Codex sandbox 54 66 Figure 13. Three mechanisms of performance interference: HOL blocking in an embedding service (a), degradation of a short-context LLM request under increasing long-context background load (b), and shared-resource contention among sandbox operations (c). 5.4 Performance Interference The heterogeneity documented above has a direct opera- tional consequence: heavyweight tasks can degrade light- weight tasks that share the same serving resources. This in- terference arises through several related mechanisms. First, a long-running request can cause head-of-line (HOL) blocking when lightweight requests cannot bypass it in a shared queue. Second, heterogeneous requests within the same batch can cause co-batching interference: the batch advances at the pace of the combined workload, so expensive requests increase the iteration time observed by inexpensive ones. Third, con- currently executing tasks can contend for shared physical resources, including CPU time, caches, memory bandwidth, and I/O. These mechanisms are neither exhaustive nor mu- tually exclusive, but they capture three common ways in which cross-stack heterogeneity translates into performance degradation. We isolate each mechanism with a controlled experiment. Queueing interference. We first use the embedding service to demonstrate HOL blocking between tasks with different input sizes. The lightweight embed-query task and heavy- weight embed-doc task share one service instance and one request queue. When served without background document traffic, an embed-query request completes in 5.6 ms on aver- age. As the background embed-doc load increases to 106K and 128K tokens/s, its average latency rises to 40 and 200 ms, respectivelyâslowdowns of 7.1Ăand 35.7Ă. Large document requests occupy the embedding worker for longer intervals, forcing latency-sensitive query requests to wait behind them. Co-batching interference. LLM engines batch active re- quests at each decoding iteration to improve GPU utiliza- tion [19,47]. Each iteration computes one new token for every request in the batch, and its attention kernels read each requestâs KV cache. Long-context requests therefore add substantially more KV-cache traffic and attention work than short-context requests. Because requests in the batch advance through the same decoding iteration, this additional work also increases the time per output token (TPOT) ob- served by short requests. We fix one short-context (10K- token) request as the latency-sensitive victim and vary the number of co-served background requests with 128K-token contexts. When served alone, the short request has a mean TPOT of 8.01 ms. Co-serving it with one long-context re- quest raises TPOT to 11.08 ms, a 38.3% increase; with two long-context requests, TPOT reaches 14.39 ms, a 79.7% in- crease (1.80Ă). The monotonic slowdown shows that increas- ing long-context background load delays even a fixed short- context request through shared decoding iterations. Shared-resource contention. Finally, we replay the install- klee-minimal benchmark task in eight concurrent Codex sandboxes. In the isolated setting, each sandbox is pinned to a disjoint 16-CPU set. In the shared setting, all eight sandboxes are scheduled over the same pool of 128 CPUs. Although both settings use the same total CPU capacity, sharing allows the sandboxes to interfere through CPU scheduling and the shared cache and memory subsystems. Figure 13(c) shows that mean execution time increases from 54 to 66 s, a 1.22Ă slowdown. This experiment establishes shared-resource con- tention; attributing the slowdown to a specific resource such as the last-level cache would additionally require hardware- counter measurements. Together, these experiments show that heterogeneity cre- ates interference at queueing, batching, and physical-resource boundaries, motivating the task-aware serving explored in §8.1. Takeaway: Cross-stack heterogeneity causes HOL blocking, co-batching interference, and shared-resource contention when heterogeneous tasks share serving resources. Serv- ing systems must use task-aware queueing, batching, and isolation policies that account for task size and resource demand. 6 Shifting Bottlenecks A natural follow-up question after establishing that agentic applications are heavyweight and heterogeneous is: where does the bottleneck lie? In conventional LLM serving, the bottleneck is unambiguous: GPU inference dominates end- to-end latency. In agentic serving, this is no longer the case. As established in §2.2, the measured system behaviorí= Ί(í,í)depends on both the workloadí=âší ,í,í,íâ©and the serving systemí=âší»,í¶,íŽâ©. The bottleneckâthe compo- nent dominating end-to-end latencyâis one such observable í that shifts when changing any factor ofí or í . This section presents empirical evidence for this phenom- enon. We first show that bottlenecks shift when workload factors change (§6.1): the request distributioní , the model choiceí, the tool setí, and the orchestration structure í. We then show that bottlenecks also shift when serving- system factors change (§6.2): hardware resourcesí», component- serving mechanismsí¶, and deployment architectureíŽ. To- gether, these results demonstrate that the bottleneck location is not an intrinsic property of an application but an emer- gent outcome of how that application is served under a given workload. 11 MovieBIDBETLWikiMap Request 0% 50% 100% LLMNon-LLM 6412825651210242048 Input doc size (KB) 0% 50% 100% LLMVecDBEmbedOther Figure 14. Effects of request type (left) and input-document size (right). 12345 0% 50% 100% Time ratio LLM (AX) LLM (AX+HTML+SH) Env (AX) Env (AX+HTML+SH) 12345 0 30 60 Input tokens (k) AXAX+HTML+SH Figure 15. Effects of Tool set selection. 6.1 Workload-Driven Shifting Request distribution (í ). Request distribution alone shifts the bottleneck through request type and payload, even when all other factors are held constant. Request type. We run Claude Code on six request cate- gories from MCP-Atlas [4], each solving a different problem with different MCP tools. Figure 14(left) shows the latency breakdown. The bottleneck differs sharply across request types: LLM dominates in Movie, BI, and DB, reaching up to 90% of total time, whereas in ETL, Wiki, and MAP, tool execution dominates (up to 84% of total time), confirming that request type alone shifts the bottleneck. Request payload size. Even within the same task type, payload-size variation shifts the bottleneck. We isolate this effect with RAG, whose execution graph is fully predefined with no LLM-driven branching. We drive it with MS-MARCO documents [24] ranging from 64 to 2,048 KB. Figure 14(right) reports the normalized time breakdown for each document size. As documents grow, theembed_docshare increases while thevdb_storeand LLM shares decrease, shifting the bottleneck from vector-database storage at small inputs to embedding at large inputs. Tool set (í). The tool set determines what observations the agent must process, and thus its LLM cost. We demonstrate this with WebAgent, which observes browser state through three formatsâaccessibility tree, HTML, and screenshotâor combinations thereof: more formats reveal more state but lengthen the prompt sent to the LLM. Running five web- browsing tasks under a single format (accessibility tree only) versus all three, we measure the per-task time breakdown (Figure 15, left) and input tokens (right). With a single format the observation is compact and browser interaction domi- nates; adding all three increases per-step input tokens by 4.8Ă, raising LLM inference from 46.9% to 61.6% of total latency. Flash+FlashPro+FlashPro+Pro 0 2M 4M 6M Token usage Left bar: Input · Right bar: Output PlannerWriterSummarizer Flash+FlashPro+FlashPro+Pro 0h 4h 8h 12h 16h Time (hours) 28% 24% 31% 10% 20% 18% 45% 47% 43% 10.0h 12.7h 14.0h SearchEmbedding PlannerWriterSummarizer Figure 16. Token usage (left) and execution-time breakdown (right) of DeepResearch under three writerâsummarizer con- figurations. The planner uses Qwen3.7-Max in all configura- tions. I T Idx SGOI Y N D G RAG O Dynamic RAG IInput OOutput IdxIndex Document TTranslate Query SVectorDB Search GLLM Generation Retrieval Decision D RAG Figure 17. Orchestrator of RAG and RAG*. Model selection (í). Model choice changes the per-token service time of LLM tasks and can therefore shift the applica- tion bottleneck even when the execution graph and request set remain fixed. We demonstrate this with DeepResearch, which uses separate LLM stages for planning, report writing, and summarization. The planner is fixed to Qwen3.7-Max, while we vary the writer and summarizer between DeepSeek- V4-Flash and DeepSeek-V4-Pro. We evaluate three configura- tions, with the writer listed first: Flash+Flash, Pro+Flash, and Pro+Pro. In isolated single-request measurements, V4-Flash generates 51 output tokens/s, whereas V4-Pro generates 21 output tokens/s, making V4-Flash 2.43Ăfaster in output- token throughput. Figure 16 compares their token usage (left) and absolute execution-time breakdown (right). With Flash+Flash and Pro+Flash, embedding remains the largest contributor, ac- counting for 45% and 47% of total execution time, respec- tively; the aggregate LLM stages account for 38% and 44%. With Pro+Pro, the LLM share rises to 49%, overtaking embed- ding at 43% and becoming the new bottleneck. Correspond- ingly, total execution time increases from 10.0 hours with Flash+Flash to 12.7 hours with Pro+Flash and 14.0 hours with Pro+Pro. The shift is driven primarily by this model-speed gap rather than token volume. Moving from Flash+Flash to Pro+Flash reduces the total token volume, yet the LLM time share in- creases from 38% to 44%. Moving from Pro+Flash to Pro+Pro changes token usage only modestly, while the LLM share increases further to 49%. Thus, token counts alone do not predict the latency breakdown: changing the serving speed of the writer and summarizer is sufficient to move the bot- tleneck from embedding to LLM execution. 12 2468 E2E latency (s) 0.0 0.5 1.0 CDF Dynamic RAGRAG Figure 18. Orchestration effect comparison of RAG and RAG*. 81632486496 cpu cores 150 300 450 sandbox time (s) build-linuxkleecompcert Figure 19. Codex sandbox with varied CPU allocation. Orchestration (í). Given the same task, same set of tools, and the same models, different agent developers often de- sign different orchestration structures. The orchestration structure of an agentic application determines how LLM and tools coordinate to process tasks, and thereby determines the execution graph. We compare RAG (a static pipeline: embedâretrieveâgenerate) with Dynamic RAG (RAG*). Figure 17 shows the structural difference, where RAG* adds an LLM-based retrieval-decision step that skips embedding and retrieval when deemed unnecessary. Under the workload in Table 2, 90% of queries bypass retrieval in RAG*, leaving embedding idle and shifting the bottleneck from embedding to LLM inference; Figure 18 reports the resulting latency distributions. 6.2 System-Driven Shifting The bottleneck of an agentic application is not only deter- mined by the workload factors (í ,í,í,í), but also influ- enced by the serving-system factors (í»,í¶,íŽ). A change in serving configuration, such as varying GPU allocation, changing component-serving mechanisms, or deploying in a co-located versus distributed manner, shifts the bottleneck. Hardware resources (í»). The performance of a sandbox is strongly determined by its allocated resources, especially when the sandbox is compiling or executing code. We select ten TerminalBench tasks that involve expensive code execu- tion under Codex Agent. We vary each sandboxâs allocation over 8, 16, 32, 48, 64, and 96 CPU cores and measure all ten tasks. Figure 19 shows three representative tasks; allocating more cores decreases sandbox execution time and can turn the bottleneck from sandbox execution to LLM inference. Component-serving mechanisms (í¶). How a component is served shapes its task latency and thus the applicationâs latency breakdown. For LLM serving alone, a developer chooses a framework (e.g., vLLM vs. SGLang), an execution architecture (e.g., chunked-prefill vs. prefillâdecode disag- gregation), and parameters such as batch size. To illustrate, we serve GUIAgentâs LLM with SGLang [47] and vary the batch size from 1 to 4. With batch size 1, TPOT is 7 ms and tool execution (desktop interaction) dominates; at batch size 4, decode contention raises TPOT to 30 ms, making LLM inference 4Ăslower and turning it into the bottleneckâa shift caused purely by an engine knob. Deployment architecture (íŽ). The deployment architec- ture governs where components run and how they commu- nicate: each may run on a server tuned to its needs, co-locate with components of complementary resource demands for efficiency, or co-locate with heavily communicating com- ponents to cut network overheadâ each choice yielding a different bottleneck. We detail this in §8.2, comparing co- located and distributed deployments of RAG, with the LLM, embedding service, and vector database placed on separate machines in the distributed case: under co-location, network transfer is negligible and vector-db dominates at 47% of la- tency; under distribution with request concurrency raised to 10, the network congests and transfer grows to 67.5% of total time. Takeaway: The bottleneck in agentic serving shifts when- ever any workload factor (í ,í,í,í) or serving-system factor (í»,í¶,íŽ) changes. Static profiling and fixed resource allocation cannot track these shifts; serving systems must adopt online, per-request adaptation. 7 Production-Trace Analysis The controlled experiments in Sections 4â6 isolate workload and serving-system factors under laboratory conditions. Pro- duction deployments add behavior that isolated benchmarks suppress: user think time and approval, sessions that remain resumable across long pauses, harness-generated context and auxiliary model calls, and repeated tool requests across users. We analyze 24-hour production traces from three deployed applications: (1) a coding agent (35,037 sessions); (2) a search- based QA agent (141,376 sessions); and (3) an Openclaw-like agent (2,386 sessions). These traces expose three properties that controlled bench- marks do not. First, sessions spend far more time idle while retaining state than they spend executing (§7.1). Second, the agent control plane becomes a first-class cost center, con- suming both context capacity and model computation (§7.2). Third, repeated tool requests across sessions create a large, previously hidden caching opportunity (§7.3). 7.1 Long Idle-but-Live Intervals Benchmark executions advance to the next step as soon as the preceding operation completes. Production sessions often pause while waiting for human approval, a subagent result, or a follow-up instruction. Such a session is logically live but may be locally inactive: its sandbox, terminal context, KV cache, and conversation history must remain available for resumption even while the session issues no new LLM or tool work. Figure 20(a) plots, for the 35,037 sessions, the ratio of time attributed to LLM and tool execution to total session lifetime. The median session executes for only 20% of its lifetime, and 70% of sessions execute for less than half of their lifetime. Figure 20(b) shows that idle intervals range 13 0%25%50%75%100% (a) Active compute time ratio 0% 25% 50% 75% 100% CDF p50 = 20% 1s10s1m10m30m1h10h (b) Idle interval length 0% 25% 50% 75% 100% CDF 10s 14% Figure 20. Idle-but-live behavior in production coding-agent sessions. 50K 100K 150K SystemUser instructionAssistantTool observation 50100150200250 Session step 120 Context tokens Figure 21. Composition of the LLM input context over one production session. from secondsâfor example, while waiting for a tool result or human approvalâto hours, including overnight pauses. Most intervals fall between 1 and 10 minutes. Throughout these intervals, the per-session sandbox that holds correctness- critical state remains allocated. Implications: A binary ârunningâ versus âfinishedâ lifecy- cle is insufficient for agentic serving. The harness should expose a third, quiescent âwaitingâ state and, when available, the expected resume trigger or deadline. The serving layer can then manage correctness state and performance state separately: checkpoint or offload sandbox and terminal state to durable tiers, while retaining, migrating, or evicting KV cache according to its expected reuse benefit. Resume predic- tion and prefetch can hide restoration latency. We evaluate one such policy in Section 8.3. Takeaway: Production agents are often waiting, not fin- ished. Treating âwaitingâ as a first-class lifecycle state en- ables aggressive state reclamation without sacrificing resum- ability. 7.2 The Agent Control-Plane Tax A production agent runs inside a harness that implements its application-level control plane: it assembles prompts, man- ages the context window, drives and guards the tool-calling loop, and preserves state across a long-running session. This machinery is necessary for multi-step execution. We use agent control-plane tax to denote the incremental serving cost it introduces beyond goal-directed model and tool exe- cution. The tax has three forms: control-plane state occupies context-window capacity, auxiliary tasks invoke additional LLM work, and the interaction between session idleness (§7.1) and cache lifetime causes repeated prefill. Context-capacity tax. We partition the input assembled for each LLM call into three semantic categories. System messages contain the largely static system prompt, including 0.050.100.200.30 (a) Compaction ratio 0% 25% 50% 75% 100% CDF mean 0.21 p95 0.29 p99 0.30 200K300K400K (c) Input tokens 0% 25% 50% 75% 100% CDF mean 176K p95 202K p99 438K 501003001k (b) Compaction latency (s) 0% 25% 50% 75% 100% CDF mean 156 p95 161 p99 775 3K5K10K (d) Output tokens 0% 25% 50% 75% 100% CDF mean 5K p95 7K p99 9K Latency tail (log s) 501002005001000 mean 156 p95 161 p99 775 Input-token tail (log tokens) 100K200K500K mean 176K p95 202K p99 438K Figure 22. Context compaction: post-/pre-compaction con- text ratio (a), latency (b), input tokens (c), and output tokens (d). The lower log-scale tail summaries show the off-axis p99 values of 775 s and 438K input tokens. the role definition, tool and skill descriptions, memories, and framework directives such as date-time reminders and session settings. User instructions contain the userâs requests, which are typically short but may occur multiple times in one session. History contains the accumulating execution trajectory: the modelâs reasoning, its actions (tool calls), and the resulting observations (tool outputs). Figure 21 tracks this composition in an example produc- tion session that contains multiple user interactions. At the first step, system messages account for 99.7% of the tokens in the assembled input. As the session proceeds, historyâ dominated by tool calls and observationsâ grows rapidly and eventually accounts for 84.3% of the input. At the fi- nal step (step-261), the model emits only 151 tokens for its next action but must first process 166,721 context tokens. Thus, even a short control decision can require a very large prefill. Not every historical token is avoidable; rather, this breakdown quantifies the context capacity and prefill work required to carry the control state forward. Production agents control this growth through context compaction, triggered automatically by the agent harness or manually by the user. Compaction asks the model to sum- marize the current context into a shorter replacement that should preserve the information needed by future steps. We report the post-compaction context length divided by the pre-compaction length; lower ratios indicate greater com- pression. Across the 35,037 sessions, we observe 3,170 compaction events. Figure 22(a) shows that 99% of events reduce the con- text by more than 70%, indicating that a substantial fraction of production context is compressible rather than requiring verbatim replay. Auxiliary-compute tax. Compaction itself is not free. As shown in Figure 22(c,d), one event consumes, on average, 14 020B40B60B Tokens Cache read Cache create Output Temporal input 68.0B 9.8B 503M 219M 020K40K60K Cost ($) 34.0K 61.7K 12.6K 1.1K Cache create · normalcache eviction Figure 23. Token and monetary-cost impact of prefix-cache eviction. 176K input tokens and generates 5K output tokens. When the previous prefix remains cached, most input tokens can avoid recomputation, but producing the compacted summary still requires a long decode. As shown in Figure 22(b), across the 3,170 events, compaction latency averages 156 s, with p95 and p99 latencies of 161 s and 775 s, respectively. The harness also invokes LLMs for auxiliary tasks out- side the main reasoning-and-action loop, including safety guardrails that vet actions and loop detection that identi- fies non-progressing executions. Beyond compaction, these auxiliary tasks collectively add 2,684 LLM calls, 6.5M input tokens, and 50K output tokens across the 35,037 sessions. Cache-reprefill tax. Although each LLM input is large, the harness normally grows it from the previous input, preserv- ing prefix continuity so that the serving engine can reuse the KV cache. Retaining long-context KV state is expensive, however, so production cache entries have a finite time-to- live (TTL)â5 minutes in our deployment. After the TTL expires, the next call must re-prefill the evicted prefix. This fixed TTL is poorly matched to human-paced agent sessions: the 1â10 minute idle intervals observed in §7.1 frequently overlap or exceed it. Across the 35,037 sessions, 59.4% expe- rience at least one eviction event. We break down their total token usage into the four categories reported by the deploy- ment: cache-read, cache-create(tokens whose KV-cache will be cached), temporal-input(tokens whose KV-cache will be discarded), and output. We estimate the corresponding mon- etary cost breakdown using the stated prices for the Claude Opus 4.6 model ($0.5/MToks, $6.25/MToks, $5/MToks, $25/M- Toks, respectively). As shown in Figure 23, cache evictions contribute 55.9% of the total cache-create tokens and ulti- mately account for 31.5% of aggregate monetary cost across these sessions. Implications: The agent control-plane tax is a cross-layer systems problem, not merely a prompt-engineering issue. First, tool interfaces should be agent-native. Rather than reinjecting full schemas and raw outputs on every turn, tools should expose stable schema identifiers, typed and size- bounded observations, incremental deltas, and retrievable handles to full artifacts. The harness can then materialize only the fields needed for the current decision, reducing to- ken volume and prefill while preserving exact state outside the context window. Second, context should be virtualized as tiered state. Structured histories, hierarchical summaries, and 125102050 (a) Search query frequency 0 25 50 75 100 proportion 35% calls from <2-call 73% 20% 4% 2% 1% 0% 125102050 (b) Fetch url frequency 0 25 50 75 100 proportion 36% calls from <2-call 76% 18% 3% 1% 1% 0% query shareurl sharecum. call pct. Figure 24. Cross-session redundancy in search queries and URL fetches. retrieve-on-demand detail can keep cold observations out of the prompt and replace monolithic, near-limit compaction. Third, the harness and model server should coordinate cache policy: fixed-TTL eviction should give way to reuse-aware KV retention, offloading, and prefetch based on the sessionâs waiting state and predicted return. Auxiliary calls should likewise be tagged by purpose so the serving system can ac- count for them separately and, where correctness and safety permit, batch, cache, or route them to lower-cost models. Takeaway: The agent control plane is a first-class cost center: repeated schemas and observations occupy context, auxiliary calls add model work, and idle gaps cause cached prefixes to be re-prefilled. Reducing this tax requires agent- native tool observations, semantic context virtualization, and reuse-aware KV-cache management. 7.3 Exploitable Cross-Request Redundancy Single-request benchmarks cannot reveal reuse across users and sessions. We quantify such reuse at two external-tool boundaries. The search-based QA agent issues a web search before answering each user request. Its 141,376 sessions generate 373,678 search invocations, whose mean, median, and p90 latencies are 1.349 s, 1.258 s, and 1.708 s, respec- tively. Search accounts for a median of 35% and a mean of 52% of session end-to-end latency. The Openclaw-like office- automation agent sometimes fetches the full content of a URL. We analyze the 2,386 sessions that issue at least one fetch, comprising 4,389 fetch invocations with mean, median, and p90 latencies of 2.657 s, 1.482 s, and 4.987 s. Fetching accounts for a median of 2.9% and a mean of 6% of session latency. For each distinct search query and fetched URL, we count its invocations within the 24-hour trace. Figure 24 shows that 27% of distinct search queries recur across sessions, and these recurring queries account for 67.3% of all search invocations. In the Openclaw-like agent, 24% of distinct URLs recur and account for 64% of all fetch invocations. Thus, a minority of distinct tool inputs is responsible for a large fraction of exter- nal calls, repeatedly adding latency and consuming network bandwidth. Implications: Cross-session reuse calls for caching at the shared tool-serving boundary, where reuse can be aggregated across agents rather than hidden inside one session. A first 15 tier can cache exact query-to-result mappings; a second can deduplicate URL fetches and reuse the fetched object (and, when applicable, its parsed representation). This mechanism requires no change to the agentâs control logic. We evaluate a two-tier design in Section 8.4. Takeaway: A minority of distinct queries and URLs gener- ates a large fraction of production tool calls. Freshness- and tenancy-aware shared caches can remove substantial latency and cost that per-session optimization cannot see. 8 Design Explorations The characterization in Sections §4â§7.3 identifies concrete bottlenecks and inefficiencies in agentic serving. We now translate four of these findings into proof-of-concept de- sign explorations, each targeting a specific property: cross- stack heterogeneity motivates task-aware serving (§8.1) and communication-aware placement (§8.2); idle-but-live sessions motivate state offloading (§8.3); and cross-request redun- dancy motivates tool-result caching (§8.4). These are not components of a monolithic system; they are independent, characterization-guided interventions that each demonstrate significant gains over workload-oblivious baselines. 8.1 Task-Aware Serving Section §5 shows that tasks sharing the same component frequently differ by orders of magnitude in input size, la- tency, and resource footprint. Co-serving these heteroge- neous tasks in a single worker pool causes head-of-line blocking and performance interference. Task-disaggregated serving addresses this by deploying each logical task (e.g., embed-query,embed-doc,llm-judge) as an independent service with dedicated resources, enabling performance iso- lation, task-specific optimization, and fine-grained indepen- dent scaling. We evaluate task-disaggregated deployment on Dynamic RAG under low, medium, and high request rates (0.5Ă, 0.7Ă, 0.9Ăof peak throughput). As shown in Figure 25(a), task disaggregated deployment reduces average latency by 40%, 38%, and 29% under the three load levels, respectively, com- pared to a component-sharing baseline with the same GPU count. The improvement stems primarily from mitigating queueing delays and interference between heterogeneous tasks sharing the same embedding and LLM instances. 8.2 Communication-Aware Placement Task disaggregation improves isolation but introduces a placement challenge: naively assigning each task type to a dedicated machine incurs prohibitive network overhead from massive intermediate states (Section §4) and wastes resources due to heterogeneous hardware demands (Sec- tion §5.1). Communication-aware co-location places high- communication tasks (e.g., embedding models and vector databases) on shared servers to minimize data transfer, while pairing tasks with complementary resource profiles (e.g., GPU-bound LLMs and memory-bound vector databases) to improve hardware utilization. We deploy RAG on a multi-node cluster and compare three placement strategies: (1)co-none, each component on a dedicated server; (2)co-vdb-embed, vector database and embedding tasks co-located; (3)co-all, all tasks on one server. Figure 25(b) shows that co-locating vector database and embedding tasks reduces average latency by 2.8Ăand 4.5Ăunder low and high load, respectively. Detailed pro- filing confirms that network communication accounts for 67.5% of execution time in theco-nonebaseline but becomes negligible with co-location. 8.3 State Offloading Section §7.1 shows that production sessions spend the major- ity of their lifetime idle but holding expensive stateâsandbox environments, terminal contexts, KV cache, and conversation history. Eagerly reclaiming this state risks breaking resuma- bility; keeping it allocated wastes memory proportional to the number of paused sessions. Our controlled Mini-SWE experiment is a related proof of concept for inter-component idle intervals, rather than an evaluation driven by the human- paced production pauses in §7.1. During each LLM planning call, the sandbox is inactive and can be offloaded until the next tool step. Figure 12 shows a context-dependent upward trend in the prefill baseline, but total LLM latency remains variable because output length and newly appended input fluctuate across iterations. We therefore do not assume monotonic latency or use context length as a duration predictor. The prototype uses elapsed time of the in-flight planning call as its trigger: once that time exceeds a fixed threshold, it offloads the sandbox and restores it before returning control to the next tool step. As shown in Figure 25(c, d), proactive offloading reduces average and peak memory consumption by 4.6Ăand 2.1Ăre- spectively, with latency increasing within 0.5%. The memory bars report aggregate resident memory across all concur- rently active sandbox processes in this Mini-SWE run, not a per-session peak; they are therefore not directly comparable to the 28 GB per-session working-set peak in Figure 6(b). 8.4 Tool-Result Caching Section §7.3 reveals heavy cross-request redundancy in pro- duction agentic workloads: in a search-based QA application, recurring queries account for a large share of all search API calls, while in an Openclaw-like agent, duplicate URL fetches waste network bandwidth. This redundancy creates a high- leverage caching opportunity that requires no modification to agent logic or tool interfaces. We evaluate a two-tier tool-result cache using the produc- tion traces from Section §7.3. The first tier performs exact query matching: when an incoming search query matches a 16 lowmediumhigh 0 1 2 Latency (s) (a) Disaggregation serving 1.26 1.44 1.64 0.76 0.89 1.16 Comp. disagg.Task disagg. lowhigh 0.0 2.5 5.0 7.5 Latency (s) (b) Co-location deployment 4.19 6.60 1.48 1.47 0.68 0.70 No co-loc.Emb+VDBAll co-loc. Average 0 50 100 150 Time (s) (c) E2E request time 152.2 151.6 w/o offloadw/ offload avg peak 0 20 40 Mem (GB) (d) Sandbox mem. usage 35.3 45.7 7.7 21.0 w/o offloadw/ offload Figure 25. Effectiveness of task-aware serving, communication-aware placement, and state offloading 30s1m10m1h24h Query cache 0.0 0.5 1.0 Peak Mem (GB) 30s1m10m1h24h URL cache 0 50 100 Peak Mem (MB) 0 20 40 Saved (hours) Saved Peak Mem 0.0 0.5 1.0 1.5 Saved (hours) Saved Peak Mem Figure 26. Effectiveness of tool-result caching. previously seen query, the cached result is returned directly. The second tier performs URL-level deduplication: when a web-fetch request targets a URL whose content was already retrieved within a configurable staleness window, the cached page content is reused. Figure 26 shows the results. With a 10-minute TTL, the query cache eliminates 35.2% of re- dundant search calls in the search-based QA agent, saving 27 hours of aggregate search latency (19.3% of the total). Similarly, with a 10-minute TTL, the URL cache eliminates 11.65% of redundant web-fetch calls in the Openclaw-like agent, saving 32 minutes of aggregate fetch latency (16.5% of the total). 9 Conclusion We presented AgentSysBench, a benchmark suite of ten agen- tic applications and a modular serving stack for systems- level study. Controlled experiments and production-trace analysis reveal that agentic workloads are heavyweight, cross-stack heterogeneous, and dynamically shifting, while production sessions further exhibit long idle-but-live inter- vals, an LLM control-plane tax, and heavy cross-request redundancyâproperties invisible to model-centric bench- marks. Four characterization-guided design explorationsâ task-disaggregated serving, communication-aware placement, state offloading, and tool-result cachingâyield 29â40% lower latency, up to a 4.5Ăend-to-end speedup over fully dis- tributed placement, 4.6Ăless memory, and substantial sav- ings in redundant external calls, demonstrating that workload- aware coordination of models, tools, and state is essential for efficient agent serving. AgentSysBench will be released as open source. References [1] [n. d.]. Prometheus. https://prometheus.io. Accessed: 2025-08. [2]SWE agent Team. 2025. Mini-SWE-Agent: The Minimal AI Software Engineering Agent. https://github.com/SWE-agent/mini-swe-agent. [3]LangChain AI. 2024. Open Deep Research: An Experimental Open- Source Research Assistant. https://github.com/langchain-ai/open_de ep_research. [4] Scale AI. 2025. MCP-Atlas: A Large-Scale Benchmark for Tool-Use Competency with Real MCP Servers. arXiv:2602.00933 [cs.AI] [5]Anthropic. 2025. Claude Code: An Agentic Coding Tool. https: //github.com/anthropics/claude-code. [6]David Barcelona. 2025. Pi-Autoresearch: Autonomous Experiment Loop for AI Agents. https://github.com/davebcn87/pi-autoresearch. [7]Thibault Le Sellier De Chezelles et al.2024. The BrowserGym Ecosys- tem for Web Agent Research. arXiv:2412.05467 [cs.AI] [8]Firecrawl Community. 2024. Firecrawl: Web Scraping, Crawling, and Data Extraction Tool for AI Apps. https://github.com/firecrawl/firecra wl [9] Shuangrui Ding, Xuanlang Dai, Long Xing, et al.2026. WildClaw- Bench: A Benchmark for Real-World, Long-Horizon Agent Evaluation. arXiv:2605.10912 [cs.AI] [10]E2B. [n. d.]. E2B â Cloud Sandboxes for AI Agents. https://e2b.dev. Accessed: 2026-06. [11] Falcons.ai. 2023. nsfw_image_detection model. https://huggingface. co/Falconsai/nsfw_image_detection. Accessed: 2025-12. [12] Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, Meng Wang, and Haofen Wang. 2024. Retrieval-Augmented Generation for Large Language Models: A Sur- vey. arXiv:2312.10997 [cs.CL] https://arxiv.org/abs/2312.10997 [13] Google LLC. [n. d.]. cAdvisor. https://github.com/google/cadvisor. Accessed: 2025-08. [14]Grafana Authors. 2025. Grafana: The open observability platform. https: //github.com/grafana/grafana [15]Huggingface. 2025. Hugging Face Pipeline. https://huggingface.co/d ocs/transformers/v4.24.0/main_classes/pipelines [16]Huggingface. 2025. Text Embeddings Inference: A blazing fast inference solution for text embeddings models. https://github.com/huggingface /text-embeddings-inference [17]Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. 2023. Swe-bench: Can language models resolve real-world github issues? arXiv preprint arXiv:2310.06770 (2023). [18]Jinkyu Kim, Byeongjun Shin, Jungwoo Chung, and Minsoo Rhu. 2025. The Cost of Dynamic Reasoning: Demystifying AI Agents and Test- Time Scaling from an AI Infrastructure Perspective. arXiv preprint arXiv:2506.04301 (2025). [19]Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Sto- ica. 2023. Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles. [20] Chaofan Lin, Zhenhua Han, Chengruidong Zhang, Yuqing Yang, Fan Yang, Chen Chen, and Lili Qiu. 2024. Parrot: Efficient Serving of LLM- based Applications with Semantic Variable. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24). USENIX Association, Santa Clara, CA, 929â945. https://w.usenix.org/con 17 ference/osdi24/presentation/lin-chaofan [21]Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, et al.2023. Agentbench: Evaluating llms as agents. arXiv preprint arXiv:2308.03688 (2023). [22]Michael Luo, Xiaoxiang Shi, Colin Cai, Tianjun Zhang, Justin Wong, Yichuan Wang, Chi Wang, Yanping Huang, Zhifeng Chen, Joseph E Gonzalez, et al.2025. Autellix: An efficient serving engine for llm agents as general programs. arXiv preprint arXiv:2502.13965 (2025). [23]GrĂ©goire Mialon, ClĂ©mentine Fourrier, Craig Swift, Thomas Wolf, Yann LeCun, and Thomas Scialom. 2023. GAIA: a benchmark for General AI Assistants. arXiv:2311.12983 [cs.CL] https://arxiv.org/abs/2311.12983 [24]Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. 2016. MS MARCO: A Human Gener- ated MAchine Reading COmprehension Dataset. CoRR abs/1611.09268 (2016). arXiv:1611.09268 http://arxiv.org/abs/1611.09268 [25]Nvidia. [n. d.]. DCGM-exporter. https://github.com/NVIDIA/dcgm- exporter. Accessed: 2025-08. [26]OpenAI. 2024. MLE-bench: Evaluating Machine Learning Agents on Machine Learning Engineering. arXiv:2410.07095 [cs.AI] [27] OpenAI. 2025. Codex: Lightweight Coding Agent That Runs in Your Terminal. https://github.com/openai/codex. [28]Long Phan and etc Alice Gatti. 2025.Humanityâs Last Exam. arXiv:2501.14249 [cs.LG] https://arxiv.org/abs/2501.14249 [29] Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas MĂŒller, Joe Penna, and Robin Rombach. 2023. Sdxl: Improving latent diffusion models for high-resolution image synthesis. arXiv preprint arXiv:2307.01952 (2023). [30] Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, et al.2023. Toolllm: Facilitating large language models to master 16000+ real-world apis. arXiv preprint arXiv:2307.16789 (2023). [31]Ritik Raj, Sandip Kundu, et al.2025. Towards Understanding, Analyz- ing, and Optimizing Agentic AI Execution: A CPU-Centric Perspective. arXiv preprint arXiv:2511.00739 (2025). [32] ServiceNow Research. 2025. WebArena Verified: Reliable Evaluation for Web Agents. arXiv:2407.05291 [cs.AI] [33]Keshav Santhanam, Deepti Raghavan, Muhammad Shahir Rahman, Thejas Venkatesh, Neha Kunjal, Pratiksha Thaker, Philip Levis, and Matei Zaharia. 2024. ALTO: An Efficient Network Orchestrator for Compound AI Systems. In Proceedings of the 4th Workshop on Machine Learning and Systems (Athens, Greece) (EuroMLSys â24). Association for Computing Machinery, New York, NY, USA, 117â125. doi:10.1145/ 3642970.3655844 [34]Alex Shaw, Mike Merrill, et al.2025. Terminal-Bench: Benchmark- ing Agents on Hard, Realistic Tasks in Command Line Interfaces. arXiv:2601.11868 [cs.AI] [35]Yongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu, and Yueting Zhuang. 2023. Hugginggpt: Solving ai tasks with chatgpt and its friends in hugging face. Advances in Neural Information Processing Systems 36 (2023), 38154â38180. [36]Yongliang Shen, Kaitao Song, Xu Tan, Wenqi Zhang, Kan Ren, Siyu Yuan, Weiming Lu, Dongsheng Li, and Yueting Zhuang. 2024. Taskbench: Benchmarking large language models for task automa- tion. Advances in Neural Information Processing Systems 37 (2024), 4540â4574. [37] Su-Sea. 2024. ydc-deep-research-evals: Evaluation Tools and Dataset for Deep Research on Consulting/Business Queries. https://github.c om/Su-Sea/ydc-deep-research-evals. [38]Xin Tan, Yimin Jiang, Yitao Yang, and Hong Xu. 2024. Teola: Towards end-to-end optimization of llm-based applications. arXiv preprint arXiv:2407.00326 (2024). [39]Xin Tan, Yimin Jiang, Yitao Yang, and Hong Xu. 2025. Towards End- to-End Optimization of LLM-based Applications with Ayo. Association for Computing Machinery, New York, NY, USA, 1302â1316. https: //doi.org/10.1145/3676641.3716278 [40] AgentRace Team. 2025. AgentRace: Benchmarking Efficiency in LLM Agent Frameworks. https://agent-race.github.io/AgentRace.pdf. [41]Jianguo Wang, Xiaomeng Yi, Rentong Guo, Hai Jin, Peng Xu, Shengjun Li, Xiangyu Wang, Xiangzhou Guo, Chengming Li, Xiaohai Xu, et al. 2021. Milvus: A Purpose-Built Vector Data Management System. In Proceedings of the 2021 International Conference on Management of Data. 2614â2627. [42]W-AI-Lab. 2025. OpenClaw: An Open-Source Autonomous AI Agent Platform. https://github.com/W-AI-Lab/openclaw-office. [43]Tianbao Xie, Danyang Zhang, Jixuan Chen, Xiaochuan Li, Siheng Zhao, Ruisheng Cao, Toh Jing Hua, Zhoujun Cheng, Dongchan Shin, Fangyu Lei, Yitao Liu, Yiheng Xu, Shuyan Zhou, Silvio Savarese, Caim- ing Xiong, Victor Zhong, and Tao Yu. 2024. OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environ- ments. arXiv:2404.07972 [cs.AI] [44]Yi Yang, Wen-tau Yih, and Christopher Meek. 2015. WikiQA: A Chal- lenge Dataset for Open-Domain Question Answering. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Pro- cessing. Association for Computational Linguistics, Lisbon, Portugal, 2013â2018. doi:10.18653/v1/D15-1237 [45]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. React: Synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR). [46]Yichao Yuan, Ankita Nayak, et al.2025. Agentic AI Workload Charac- teristics. arXiv preprint arXiv:2605.26297 (2025). [47] Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Livia Sun, Jeff Huang, Cody Hao Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E Gonzalez, et al.2024. Sglang: Efficient execution of structured language model programs. Advances in neural information processing systems 37 (2024), 62557â62583. [48]Shuyan Zhou, Frank F Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, et al. 2023. Webarena: A realistic web environment for building autonomous agents. arXiv preprint arXiv:2307.13854 (2023). 18