pidstat command and its examples

This command is used to monitor the performance of processes/jobs on a system. Which provides real-time statistics on CPU, memory, and I/O usage and can be used to identify processes that are consuming excessive resources.

  • About pidstat: To report statistics for Linux tasks
  • Comes From: sysstat-X.X.X
  • Configuration Files:
  • Path: /usr/bin/pidstat


1. To report statistics for Linux tasks

# pidstat

2. To display only tasks whose command name includes the string comm

# pidstat -C comm

3. To report I/O statistics

# pidstat -d

4. To display all activities horizontally on a single line

# pidstat -h

5. To display the process command name and all its arguments

# pidstat -l

6. To select tasks (processes) for which statistics are to be reported

# pidstat -p 1234

7. To report page faults and memory usage

# pidstat -r

8. To display statistics for threads associated with selected tasks

# pidstat -t

9. To specifies what has to be monitored by the pidstat command

# pidstat -T

10. To report CPU usage

# pidstat -u

11. To print version info

# pidstat -V

12. To Report task switching activity

# pidstat -w

Related Commands: sar, top, ps, mpstat, iostat, vmstat

Leave a Reply

Your email address will not be published. Required fields are marked *