ai-server-memory-diagnostics
仓库创建 2026年1月20日最近提交 22 天前SkillHot 收录 21 天前
▸ 精选理由
面向 Mac 与本地模型的实用故障排查流程与命令要点。
▸ 风险提示
可能涉及远程/本地执行诊断命令与高权限操作,请谨慎运行。
这个 Skill 做什么
诊断 Mac Studio 上 ai-server 的内存与交换/页面使用问题。
定位 Mac Studio 上 ai-server 的内存与换页问题,不仅看一个“内存占用”数字。用于排查 swap、memory pressure、compressor、llama.cpp 或 Metal/unified memory 导致的模型服务内存异常。特别建议用 vmmap 查看真实物理占用和被换出的可写区域,而不是只信任 ps 报的 RSS。
▸ 展开 SKILL.md 英文原文
Use when investigating swap, memory pressure, compressor usage, llama.cpp memory, Metal/unified memory, or model-server RAM issues on the Mac Studio ai-server.
3
Stars
0
Forks
14
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ton-anywhere/my-favorite-prompts/main/skills/ai-server-memory-diagnostics/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ton-anywhere/my-favorite-prompts/main/skills/ai-server-memory-diagnostics/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# AI Server Memory Diagnostics ## Purpose Diagnose memory pressure on the Mac Studio `ai-server` without trusting misleading single-number summaries. For llama.cpp on macOS, `ps` RSS often understates the real cost; use `vmmap` physical footprint and swapped writable regions. ## Quick Workflow 1. Confirm the remote host and global memory state: ```bash ssh ai-server vm_stat ssh ai-server sysctl vm.swapusage ssh ai-server memory_pressure ``` Key fields: - `vm.swapusage`: total, used, free encrypted swap. - `Pages stored in compressor`: logical pages compressed. - `Pages occupied by compressor`: RAM consumed by compressed pages. - `Swapins` / `Swapouts`: whether swap is active over time.
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有