Skip to main content

Show system resource usage, including CPU, memory, IO etc., in Linux.

# To show CPU statistics at a 2 second interval for 10 times:
pidstat <2> <10>

# To show page faults and memory utilization:
pidstat -r

# To show input/output usage per process id:
pidstat -d

# To show information on a specific PID:
pidstat -p <PID>

# To show memory statistics for all processes whose command name include "fox" or "bird":
pidstat -C "<fox|bird>" -r -p ALL