Parent research epic: #39
背景
当前 Antares 为每个 workspace 创建独立 AntaresFuse 和 FUSE session。即使用户态 Dicfuse 对象可共享,每个 workspace 仍承担独立 mount handshake、内核 dentry/attr cache、background warmup 和 teardown。
系统论文需要一个比“共享 daemon/cache”更强的机制:
昂贵的 remote/Dicfuse lower 与 kernel-facing lower mount 按唯一 SnapshotId 复用;workspace 只创建轻量可写 delta view。
Research Invariant
对于 N 个 workspace 和 U 个唯一 SnapshotId:
number_of_remote_lower_instances = O(U)
number_of_snapshot_lower_FUSE_sessions = O(U)
number_of_private_upper_layers = O(N)
必须先完成架构 Bakeoff
Option A — SnapshotMountPool + kernel OverlayFS
- 每个 SnapshotId 建立一个共享只读 Dicfuse mount;
- 每个 workspace 使用相同 lowerdir 和私有 upper/workdir;
- workspace 通过独立 mount namespace 只看到自己的 overlay;
- 复用 lower 的 kernel page/dentry cache。
Option B — Multiplexed FUSE supermount
/private/scorpio-supermount/<workspace-id>/...
- 单一长生命周期 FUSE connection;
- daemon 根据 workspace-id 路由到不同 upper + shared snapshot;
- 对外通过 bind mount/mount namespace 暴露单个子树。
Option C — Current per-workspace FUSE
保留为兼容 fallback 和实验 baseline。
Bakeoff Metrics
- workspace provision/delete P50/P95/P99;
- FUSE connection/session 数;
- lower page/dentry cache 复用;
- daemon CPU/RSS;
- mount namespace 与权限复杂度;
- copy-up/rename/whiteout 语义;
- open-handle 和 refresh 语义;
- kernel/发行版兼容性;
- crash cleanup;
- 跨 workspace 隔离。
Tasks
Functional Acceptance Criteria
Paper Retention Gate
该机制只有满足至少一项才进入论文核心贡献:
- 在 64 workspace warm-snapshot 场景下,P95 provisioning latency 相比当前模式降低至少 5×;
- 或 daemon CPU/RSS/FUSE-session 开销降低至少 3×;
- 或端到端并发 build throughput 提升至少 25%。
若未达到,保留 bakeoff 作为负结果,不围绕此机制构造主 claim。
Relevant Files
src/antares/fuse.rs
src/antares/mod.rs
src/daemon/antares.rs
src/server/
deploy/
Dependencies
Issue 3、Issue 4、Issue 7;Issue 5 的 generation semantics 必须已稳定。
Parent research epic: #39
背景
当前 Antares 为每个 workspace 创建独立
AntaresFuse和 FUSE session。即使用户态 Dicfuse 对象可共享,每个 workspace 仍承担独立 mount handshake、内核 dentry/attr cache、background warmup 和 teardown。系统论文需要一个比“共享 daemon/cache”更强的机制:
Research Invariant
对于
N个 workspace 和U个唯一 SnapshotId:必须先完成架构 Bakeoff
Option A — SnapshotMountPool + kernel OverlayFS
Option B — Multiplexed FUSE supermount
Option C — Current per-workspace FUSE
保留为兼容 fallback 和实验 baseline。
Bakeoff Metrics
Tasks
SnapshotMountPool或等价 abstraction;Functional Acceptance Criteria
Paper Retention Gate
该机制只有满足至少一项才进入论文核心贡献:
若未达到,保留 bakeoff 作为负结果,不围绕此机制构造主 claim。
Relevant Files
Dependencies
Issue 3、Issue 4、Issue 7;Issue 5 的 generation semantics 必须已稳定。