Back
24/65
Lesson 24
8 min
SRPS: System Protection
Keep your workstation responsive under heavy agent load
Ready to level up?
Mark complete to track your learning progress.
Keep your workstation responsive under heavy agent load
Mark complete to track your learning progress.
Keep your workstation responsive under heavy AI agent load.
SRPS (System Resource Protection Script) installs ananicy-cpp with 1700+ rules to automatically deprioritize background processes, plus sysmoni TUI for real-time monitoring. When AI agents run heavy builds, SRPS keeps your terminal responsive.
Think of it as automatic resource management: compilers, bundlers, and test runners get deprioritized so your interactive sessions stay snappy.
Pre-configured for compilers, bundlers, browsers, IDEs
Real-time CPU/memory/IO monitoring with per-process nice values
Kernel optimizations for responsiveness under memory pressure
Install once, benefits forever - no tuning needed
System Resource Monitoring Center
Select a scenario and toggle SRPS to see real-time resource protection in action
SRPS installs the ananicy-cpp daemon and sysmoni monitoring tool in one command.
# Install SRPS with all components$ curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/system_resource_protection_script/main/install.sh | bash -s -- --install# Verify daemon is running$ systemctl status ananicy-cpp> Active: active (running)
The sysmoni TUI shows real-time CPU and memory usage per process, along with each process's nice value, so you can see what SRPS has throttled.
# Launch the monitoring TUI$ sysmoni# See per-process CPU/memory/IO/FD with nice values (throttled highlighted)# q to quit, arrows to navigate, s to cycle sort, / to filter, f to freeze
SRPS automatically deprioritizes resource-intensive processes while keeping interactive sessions responsive:
You can add rules for any process that SRPS does not know about.
# Example: add rule for a custom heavy process$ echo '{"name": "my-heavy-process", "nice": 19, "sched": "idle", "ioclass": "idle"}' | \sudo tee /etc/ananicy.d/10-local/my-heavy-process.rules# Reload rules (handles a stale ananicy mutex)$ srps-reload-rules
If SRPS is not working as expected, check these common issues:
# Check if daemon is running$ systemctl status ananicy-cpp# View recent logs$ journalctl -u ananicy-cpp -n 50# Show the rules that actually apply$ sudo ananicy-cpp dump rules# Uninstall if needed$ curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/system_resource_protection_script/main/install.sh | bash -s -- --uninstall