pidstat command examples

pidstat command examples

pidstat – Report statistics for Linux tasks.

#pidstat 2 5

Display five reports of CPU statistics for every active task in the system at two second intervals.

#pidstat -r -p 1643 2 5

Display five reports of page faults and memory statistics for PID 1643 at two second intervals.

#pidstat -C "fox|bird" -r -p ALL

Display global page faults and memory statistics for all the processes whose command name includes the string “fox” or “bird”.

#pidstat -T CHILD -r 2 5

Display five reports of page faults statistics at two second intervals for the child processes of all tasks in the system. Only child processes with non-zero statistics values are displayed.

Leave a Reply

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