Tide: Reclaiming Phased Memory in Agent MicroVMs
Intake entry · 2026-10-05 · awesome-ai-field-notes
- URL: https://arxiv.org/abs/2609.40082
- PDF: https://arxiv.org/pdf/2609.40082
- Source: paper · Yiyang Wu, Chengfan Liao, Jinyu Gu · 原文发布 2026-09-30
- Category: infra · arXiv/来源分类: cs.OS
- Tags: agent-infra, memory-management, microvm, os, arxiv
- Quality Score: 4
中文摘要
面向云上 agent MicroVM 的主动内存回收技术 Tide。agent harness 等模型时近乎空闲、调工具时内存上涨且大小只有运行时才知道,宿主机靠访问频率和占用量推断回收目标,会选错页、定错容量或部分回收透明大页导致拆页。Tide 的洞察是 harness 自己知道每个阶段的内存意图(哪块内存、何时用、内容是否要保留):guest 通过用户态 arena API 表达独占意图,guest 内核分配器把这类分配聚成 huge-page 对齐的 extent,hypervisor 扩展按上报直接回收宿主侧 backing,guest 容量保持不变。在录制的 agent 轨迹上超过现有回收机制且开销低。9 月 30 日提交,cs.OS。
关键要点
- 问题:agent MicroVM 负载分阶段(等模型时空闲、工具运行时突涨),基于频率/占用的回收会选错页或拆散透明大页。
- 机制一:用户态 arena API 表达独占内存意图(哪块、何时、内容是否保留)。
- 机制二:guest 内核分配器把独占分配聚成 huge-page 对齐 extent;hypervisor 扩展按上报直接回收宿主 backing。
- guest 容量不变;录制 agent 轨迹上优于现有机制且开销低。
- Tide 让 agent harness 上报分阶段内存意图,MicroVM 宿主侧直接精准回收
English Summary (arXiv abstract)
Cloud agents run each task in an isolated MicroVM. The trouble is the harness loop inside that guest: the harness is nearly idle while it waits on the model, then usage rises on a tool whose size is known only at run time, which complicates memory management from the host. Existing approaches infer reclaim targets from access frequency and memory footprint while the guest allocator places the idle harness and the short-lived tool on the same pages. Therefore, reclamation either selects the wrong pages, fixes on an incorrect capacity, or partially reclaims a huge page, splitting its transparent huge page. This paper proposes Tide, a proactive memory reclamation technique for agent MicroVMs. Our key insight is that the harness already knows each phase's memory intent (which memory, when, and whether its contents must survive), so the guest can report that intent as an exclusive guest-physical region for the host to reclaim directly. To realize this insight, we introduce an abstraction called arena and a set of user-space APIs for managing memory with exclusive intent; a guest-kernel allocator that groups exclusive allocations into huge-page-aligned extents; and a hypervisor extension that resolves those extents to host backing and applies the reported action, leaving guest capacity unchanged. Experiments on recorded agent trajectories show that Tide outperforms state-of-the-art mechanisms while incurring low overhead.
One-liner
Tide 让 agent harness 上报分阶段内存意图,MicroVM 宿主侧直接精准回收
原文摘录
Our key insight is that the harness already knows each phase's memory intent (which memory, when, and whether its contents must survive), so the guest can report that intent as an exclusive guest-physical region for the host to reclaim directly.
注:本文件为 daily-intake-evening cron 内容落盘(2026-10-05);opencli arxiv paper 拉取元数据与摘要生成;中文导读与要点锚定原文摘要,未补充其之外的实验细节。