1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 23:17:58 +01:00
tldr/pages/linux/pidstat.md

25 lines
509 B
Markdown
Raw Normal View History

2019-11-12 22:02:06 +01:00
# pidstat
> Show system resource usage, including CPU, memory, IO etc.
> More information: <https://manned.org/pidstat>.
2019-11-12 22:02:06 +01:00
- 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:
`pidstat -p {{PID}}`
- Show memory statistics for all processes whose command name include "fox" or "bird":
`pidstat -C "{{fox|bird}}" -r -p ALL`