mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 20:47:03 +00:00
Update cheatsheets
This commit is contained in:
29
linux/pidstat
Normal file
29
linux/pidstat
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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:
|
||||
|
||||
`pidstat -p {{PID}}`
|
||||
|
||||
- Show memory statistics for all processes whose command name include "fox" or "bird":
|
||||
|
||||
`pidstat -C "{{fox|bird}}" -r -p ALL`
|
||||
Reference in New Issue
Block a user