From 5b34319212285ab8d388de128ed449801041059d Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Wed, 13 Nov 2019 05:02:06 +0800 Subject: [PATCH] pidstat: add page (#3529) --- pages/linux/pidstat.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/linux/pidstat.md diff --git a/pages/linux/pidstat.md b/pages/linux/pidstat.md new file mode 100644 index 0000000000..cb656b8e30 --- /dev/null +++ b/pages/linux/pidstat.md @@ -0,0 +1,23 @@ +# pidstat + +> Show system resource usage, including CPU, memory, IO etc. + +- 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`