| name | smem |
| description | Use this skill when the user wants to report memory usage, analyze process memory consumption, or compare RSS/PSS/USS metrics. |
smem Plugin
Memory reporting tool that provides unique insights into process memory usage including RSS, PSS (Proportional Set Size), and USS (Unique Set Size).
Commands
Version
smem self version — Print smem version
Utility
smem _ _ — Passthrough to smem CLI
Usage Examples
- "Show memory usage per process"
- "Report memory with PSS and USS metrics"
- "Top memory-consuming processes"
- "System-wide memory summary"
Installation
pip install smem
Or via apt:
sudo apt-get install smem
Examples
smem _ _
smem _ _ -p -s uss
smem _ _ -t -s pss -r 10
smem _ _ -w
smem _ _ -u
smem _ _ -P firefox
smem _ _ -p -P 1234 -s uss
smem self version
smem _ _ --help
Key Features
- RSS — Resident Set Size (total physical memory)
- PSS — Proportional Set Size (shared pages divided proportionally)
- USS — Unique Set Size (unshared memory, counts each page once)
- Per-user — Aggregate memory by user
- Per-process — Show memory per individual process
- System-wide — Summary of total memory usage
- Filtering — Filter by PID or process name
- Bar charts — Visual memory usage display with
--bar
- Auto-refresh — Real-time monitoring with
--autorefresh