snippetbashTip
pidstat — Show system resource usage, including CPU, memory, IO etc. More information: <https://manned.org/pid
Viewed 0 times
pidstatresourceusagecommandshowcliincludingsystem
linux
Problem
How to use the
pidstat command: Show system resource usage, including CPU, memory, IO etc. More information: <https://manned.org/pidstat>.Solution
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 -rShow input/output usage per process ID:
pidstat -dShow 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 ALLCode Snippets
Show CPU statistics at a 2 second interval for 10 times
pidstat {{2}} {{10}}Show page faults and memory utilization
pidstat -rShow input/output usage per process ID
pidstat -dShow 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 ALLContext
tldr-pages: linux/pidstat
Revisions (0)
No revisions yet.