ToolSched: Resource-Efficient Tool Scheduling for Shared-Host LLM Agents
Shucheng Zou, Yuhao Gu, Long Chen, Zhongchun Zheng, BinZe Xie, Xianwei Zhang
Abstract
Local LLM agents often work on shared hosts. Unlike multi-tenant cloud clusters, these hosts often have tightly bounded memory, CPU, and I/O resources. Concurrent agents frequently suffer from resource contention, leading to failures such as OOM and reduced resource efficiency. Considering that agents' resource demands are bursty and shell command delay is imperceptible to agents, there is a huge scheduling opportunity to arrange when and in what order commands are actually executed. Thus, we present ToolSched, a Shell MCP Server for shared local hosts that serves multiple agents and schedules their operations. ToolSched embeds a resource model into the MCP interface: agents estimate resource demands along with command requests. These hints, together with real-time host resource conditions, determine when commands are actually executed. Internally, ToolSched applies a scheduling algorithm to stagger commands, reducing contention and improving resource utilization. Prediction correction and checkpoint-based recovery mitigate estimation bias and resource errors. Our evaluation on Terminal Bench shows that, compared with unscheduled execution, ToolSched improves resource utilization by 148.4% and end-to-end command throughput by 29.4%, demonstrating its effectiveness and practicality.
Create a lesson
Related papers
Towards Fair Resource Sharing in Agentic LLM Serving
Shared title terminologycs.OSSehyeon Lee, Yuchen Xia, Zhaoyang Hong et al.
AdaSprite: Resource-efficient Online Co-Adaptation for V2I Systems Under Large-scale Data Drifts
Shared title terminologycs.OSLehao Wang, Zhiwen Yu, Sicong Liu et al.
Continuum: Efficient and Robust Multi-Turn LLM Agent Scheduling with KV Cache Time-to-Live
Shared title terminologycs.OSHanchen Li, Runyuan He, Qiuyang Mang et al.
CapBuddy: Efficient Physical Memory Management for Capability-based Resource-controlling Microkernel
Shared title terminologycs.OSZhuang Lu, Guangtao Zhu, Shijun Zhao et al.
AgentLens: Framework-Aware Characterization and Resource Control for Heterogeneous LLM Agents
Shared title terminologycs.OSWentao Hong
ActKV: Efficient LLM Agents through Action-Guided KV Cache Management
Shared title terminologycs.OSZihan Wang, Cheng Tang, Lei Gong et al.