diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-08-27 23:05:39 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-08-27 23:05:39 +0200 |
commit | e830fa716bedecbff8c3a572d1d20061342ec4c7 (patch) | |
tree | 03539ff9da6e494a2f652cbcd48d69d635ff8ca5 /src/process/pidstat.md | |
parent | f5178ed1e419cfae7679ae8b4d3130ef48abfbfd (diff) | |
download | notes-e830fa716bedecbff8c3a572d1d20061342ec4c7.tar.gz notes-e830fa716bedecbff8c3a572d1d20061342ec4c7.zip |
mv monitor -> process
Diffstat (limited to 'src/process/pidstat.md')
-rw-r--r-- | src/process/pidstat.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/process/pidstat.md b/src/process/pidstat.md new file mode 100644 index 0000000..b57f231 --- /dev/null +++ b/src/process/pidstat.md @@ -0,0 +1,31 @@ +# pidstat(1) + +```markdown +pidstat [opt] [interval] [cont] + -U [user] show username instead UID, optionally only show for user + -r memory statistics + -d I/O statistics + -h single line per process and no lines with average +``` + +# 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] +``` |