Skip to content

Commit

Permalink
[Man Page]: Add missing entry of -T & -h in man page along with example
Browse files Browse the repository at this point in the history
Signed-off-by: Vaibhav Nagare <[email protected]>
  • Loading branch information
nagarevaibhav committed Apr 26, 2022
1 parent 5f74849 commit 2eb32cd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions man/man8/swapin.8
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
swapin \- Count swapins by process. Uses BCC/eBPF.
.SH SYNOPSIS
.B swapin
.TP
.BR \-h ", " \-\-help\fR
show this help message and exit
.TP
.BR \-T ", " \-\-notime\fR
do not show the timestamp (HH:MM:SS)
.SH DESCRIPTION
This tool counts swapins by process, to show which process is affected by
swapping (if swap devices are in use). This can explain a significant source
Expand Down
21 changes: 21 additions & 0 deletions tools/swapin_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,27 @@ gnome-shell 2239 2496
While tracing, this showed that PID 2239 (gnome-shell) and PID 4536 (chrome)
suffered over ten thousand swapins.

#swapin.py -T
Counting swap ins. Ctrl-C to end.
COMM PID COUNT
b'firefox' 60965 4

COMM PID COUNT
b'IndexedDB #1' 60965 1
b'firefox' 60965 2

COMM PID COUNT
b'StreamTrans #9' 60965 1
b'firefox' 60965 3

COMM PID COUNT

COMM PID COUNT
b'sssd_kcm' 3605 384
[--]

While tracing along with -T flag, it does not show timestamp.



USAGE:
Expand Down

0 comments on commit 2eb32cd

Please sign in to comment.