system-performance-remediation

Solid

Use when restoring machine responsiveness from high CPU, memory, IO, cache, or runaway process pressure.

API & Backend 389 stars 40 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 86/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

<!-- TOC: Quick Reference | VM Tuning & Cache Bloat | systemd-oomd Protection | Kill Hierarchy | Diagnosis | Swap & zram | Disk Cleanup | Zellij/Tmux Cleanup | Orphans | Agent Swarm Fix | Fleet Triage | Emergency | References --> # System Performance Remediation > **Core Principle:** First, do no harm. Kill OBVIOUSLY useless processes before touching anything potentially useful. > **The Whack-a-Mole Anti-Pattern:** > Killing child processes (cargo builds, tests) is POINTLESS if confused parent agents respawn them. > **Kill the confused agents, not their children.** --- ## Quick Reference — Copy-Paste Commands ```bash # === INSTANT DIAGNOSIS === uptime && nproc && cat /proc/pressure/cpu | head -1 # === ONE-LINER STATUS (includes swap + memory pressure) === echo "Load: $(uptime | awk -F'load average:' '{print $2}') / $(nproc) cores | Mem: $(free -h | awk '/Mem:/{print $3"/"$2}') | Swap: $(free -h | awk '/Swap:/{print $3"/"$2}') | Zombies: $(ps -eo stat | grep -c '^Z' || echo 0) | MemP: $(awk -F= '/some/{print $2}' /proc/pressure/memory | cut -d' ' -f1)%" # === VM TUNING CHECK (catches cache bloat before it kills sessions) === sysctl vm.vfs_cache_pressure vm.min_free_kbytes && cat /proc/pressure/memory # === FIND STUCK PROCESSES === ps -eo pid,etimes,pcpu,args --sort=-etimes | grep -E 'bun test|cargo test|vercel|git add' | awk '$2 > 3600' # === FIND STALE GEMINI AGENTS (24+ hours) === ps -eo pid,etimes,pcpu,rss,args | grep 'bun.*gemini' | grep -v grep | awk '$2 > 86400...

Details

Author
boshu2
Repository
boshu2/agentops
Created
7 months ago
Last Updated
today
Language
Go
License
NOASSERTION

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category