aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pidstat.md
blob: b57f2316fa987a76787a8ed5821e4b792d806661 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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]
```