2025-03-14 21:59:59 -06:00
|
|
|
# pidstat
|
|
|
|
|
|
|
|
|
|
> Show system resource usage, including CPU, memory, IO etc.
|
|
|
|
|
> More information: <https://manned.org/pidstat>.
|
|
|
|
|
|
|
|
|
|
- Show CPU statistics at a 2 second interval for 10 times:
|
|
|
|
|
|
|
|
|
|
`pidstat {{2}} {{10}}`
|
|
|
|
|
|
|
|
|
|
- Show page faults and memory utilization:
|
|
|
|
|
|
|
|
|
|
`pidstat -r`
|
|
|
|
|
|
|
|
|
|
- Show input/output usage per process ID:
|
|
|
|
|
|
|
|
|
|
`pidstat -d`
|
|
|
|
|
|
|
|
|
|
- Show information on a specific PID:
|
|
|
|
|
|
2026-07-08 16:22:34 -06:00
|
|
|
`pidstat -p {{pid}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Show memory statistics for all processes whose command name include "fox" or "bird":
|
|
|
|
|
|
|
|
|
|
`pidstat -C "{{fox|bird}}" -r -p ALL`
|