aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-03-17 21:55:49 +0100
committerjohannst <johannes.stoelp@gmail.com>2020-03-17 21:55:49 +0100
commitad75a8cc1a37b0aa9c9a52182aad727a4980e0b0 (patch)
tree966b70af0a36963e4ba1ab45d30d5b8e28c2b993 /src
parent9d196827ce5e5f342af4be4ffd3e25dbf9cb66bb (diff)
downloadnotes-ad75a8cc1a37b0aa9c9a52182aad727a4980e0b0.tar.gz
notes-ad75a8cc1a37b0aa9c9a52182aad727a4980e0b0.zip
updated pidstat
Diffstat (limited to 'src')
-rw-r--r--src/pidstat.md37
1 files changed, 27 insertions, 10 deletions
diff --git a/src/pidstat.md b/src/pidstat.md
index c17a2e6..8fb1106 100644
--- a/src/pidstat.md
+++ b/src/pidstat.md
@@ -1,13 +1,30 @@
# pidstat(1)
-Trace minor/major page faults.
-```markdown
-pidstat -r -p <pid> [interval]
- minor_pagefault: happens when the page needed is already in memory but not
- allocated to the faulting process, in that case the kernel
- only has to create a new page-table entry pointing to the
- shared physical page
- major_pagefault: happends when the page needed is NOT in memory, the kernel
- has to create a new page-table entry and populate the
- physical page
+```markdown
+pidstat [opt] [interval] [cont]
+ -U [user] show username instead UID, optionally only show for user
+ -r memory statistics
+ -d I/O statistics
+```
+
+# Page fault and memory utilization
+```markdown
+pidstat -r -p <pid> [interval] [count]
+```
+
+```markdown
+minor_pagefault: Happens when the page needed is already in memory but not
+ allocated to the faulting process, in that case the kernel
+ only has to create a new page-table entry pointing to the
+ shared physical page (not required to load a memory page from
+ disk).
+
+major_pagefault: Happens when the page needed is NOT in memory, the kernel
+ has to create a new page-table entry and populate the
+ physical page (required to load a memory page from disk).
+```
+
+# I/O statistics
+```markdown
+pidstat -d -p <pid> [interval] [count]
```