macOS 内存飙升、Swap 爆盘与 footprint 排查指南
围绕 AI 编程工具在 macOS 上的高内存、Swap 压力与进程归因痛点,整理实测排查指南与工具对比。
- Mac 跑 AI / MCP 爆 Swap 排查:揪出 Codex / Claude Code / MCP 幽灵进程与疯狂写 Swap 的元凶。
- 活动监视器 vs phys_footprint:拆解 RSS、压缩内存与 phys_footprint 差异,看懂 Mac 真实内存压力。
- macOS 内存监控工具对比:客观对比 MemoryGuardian、活动监视器、iStat Menus 与 Stats。