top: update man document to support the LXC containers

[ in addition to the primary 'lxc' business, i found ]
[ numerous apostrophes used instead of that back-tic ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2015-06-13 00:00:00 -05:00 committed by Craig Small
parent 2ba7aa8b7d
commit d8aee1a809

113
top/top.1
View File

@ -68,7 +68,7 @@
. .
.\" Document ///////////////////////////////////////////////////////////// .\" Document /////////////////////////////////////////////////////////////
.\" ---------------------------------------------------------------------- .\" ----------------------------------------------------------------------
.TH TOP 1 "Feb 2015" "procps-ng" "User Commands" .TH TOP 1 "June 2015" "procps-ng" "User Commands"
.\" ---------------------------------------------------------------------- .\" ----------------------------------------------------------------------
.\" ---------------------------------------------------------------------- .\" ----------------------------------------------------------------------
@ -150,7 +150,7 @@ The remaining Table of Contents
.SS Operation .SS Operation
.\" ---------------------------------------------------------------------- .\" ----------------------------------------------------------------------
When operating \*(We, the two most important keys are the help (h or ?) When operating \*(We, the two most important keys are the help (h or ?)
key and quit ('q') key. key and quit (`q') key.
Alternatively, you could simply use the traditional interrupt key (^C) Alternatively, you could simply use the traditional interrupt key (^C)
when you're done. when you're done.
@ -272,7 +272,7 @@ The command-line syntax for \*(We consists of:
\*(CL \*(CL
The typically mandatory switch ('\-') and even whitespace are completely The typically mandatory switch (`\-') and even whitespace are completely
optional. optional.
.TP 5 .TP 5
@ -376,7 +376,7 @@ Display only processes with a user id or user name matching that given.
The `\-u' option matches on \fI effective\fR user whereas the `\-U' option The `\-u' option matches on \fI effective\fR user whereas the `\-U' option
matches on\fI any\fR user (real, effective, saved, or filesystem). matches on\fI any\fR user (real, effective, saved, or filesystem).
Prepending an exclamation point ('!') to the user id or name instructs top Prepending an exclamation point (`!') to the user id or name instructs top
to display only processes with users not matching the one provided. to display only processes with users not matching the one provided.
The `p', `u' and `U' \*(COs are mutually exclusive. The `p', `u' and `U' \*(COs are mutually exclusive.
@ -635,11 +635,16 @@ These flags are officially documented in <linux/sched.h>.
The\fI effective\fR group ID. The\fI effective\fR group ID.
.TP 4 .TP 4
10.\fB GROUP \*(Em Group Name \fR 10.\fB LXC \*(Em Lxc Container Name \fR
The name of the lxc container within which a task is running.
If a process is not running inside a container, a dash (`\-') will be shown.
.TP 4
11.\fB GROUP \*(Em Group Name \fR
The\fI effective\fR group name. The\fI effective\fR group name.
.TP 4 .TP 4
11.\fB NI \*(Em Nice Value \fR 12.\fB NI \*(Em Nice Value \fR
The nice value of the task. The nice value of the task.
A negative nice value means higher priority, whereas a positive nice value A negative nice value means higher priority, whereas a positive nice value
means lower priority. means lower priority.
@ -647,7 +652,7 @@ Zero in this field simply means priority will not be adjusted in determining
a task's dispatch-ability. a task's dispatch-ability.
.TP 4 .TP 4
12.\fB P \*(Em Last used \*(PU (SMP) \fR 13.\fB P \*(Em Last used \*(PU (SMP) \fR
A number representing the last used processor. A number representing the last used processor.
In a true SMP environment this will likely change frequently since the kernel In a true SMP environment this will likely change frequently since the kernel
intentionally uses weak affinity. intentionally uses weak affinity.
@ -656,7 +661,7 @@ processes to change \*(PUs more often (because of the extra demand for
\*(Pu time). \*(Pu time).
.TP 4 .TP 4
13.\fB PGRP \*(Em Process Group Id \fR 14.\fB PGRP \*(Em Process Group Id \fR
Every process is member of a unique process group which is used for Every process is member of a unique process group which is used for
distribution of signals and by terminals to arbitrate requests for their distribution of signals and by terminals to arbitrate requests for their
input and output. input and output.
@ -666,7 +671,7 @@ By convention, this value equals the process ID (\*(Xa PID) of the first
member of a process group, called the process group leader. member of a process group, called the process group leader.
.TP 4 .TP 4
14.\fB PID \*(Em Process Id \fR 15.\fB PID \*(Em Process Id \fR
The task's unique process ID, which periodically wraps, though never The task's unique process ID, which periodically wraps, though never
restarting at zero. restarting at zero.
In kernel terms, it is a dispatchable entity defined by a task_struct. In kernel terms, it is a dispatchable entity defined by a task_struct.
@ -677,11 +682,11 @@ a thread group ID for the thread group leader (\*(Xa TGID);
and a TTY process group ID for the process group leader (\*(Xa TPGID). and a TTY process group ID for the process group leader (\*(Xa TPGID).
.TP 4 .TP 4
15.\fB PPID \*(Em Parent Process Id \fR 16.\fB PPID \*(Em Parent Process Id \fR
The process ID (pid) of a task's parent. The process ID (pid) of a task's parent.
.TP 4 .TP 4
16.\fB PR \*(Em Priority \fR 17.\fB PR \*(Em Priority \fR
The scheduling priority of the task. The scheduling priority of the task.
If you see `rt' in this field, it means the task is running If you see `rt' in this field, it means the task is running
under real time scheduling priority. under real time scheduling priority.
@ -691,19 +696,19 @@ the operating itself was not preemptible.
And while the 2.6 kernel can be made mostly preemptible, it is not always so. And while the 2.6 kernel can be made mostly preemptible, it is not always so.
.TP 4 .TP 4
17.\fB RES \*(Em Resident Memory Size (KiB) \fR 18.\fB RES \*(Em Resident Memory Size (KiB) \fR
The non-swapped \*(MP a task is using. The non-swapped \*(MP a task is using.
.TP 4 .TP 4
18.\fB RUID \*(Em Real User Id \fR 19.\fB RUID \*(Em Real User Id \fR
The\fI real\fR user ID. The\fI real\fR user ID.
.TP 4 .TP 4
19.\fB RUSER \*(Em Real User Name \fR 20.\fB RUSER \*(Em Real User Name \fR
The\fI real\fR user name. The\fI real\fR user name.
.TP 4 .TP 4
20.\fB S \*(Em Process Status \fR 21.\fB S \*(Em Process Status \fR
The status of the task which can be one of: The status of the task which can be one of:
\fBD\fR = uninterruptible sleep \fBD\fR = uninterruptible sleep
\fBR\fR = running \fBR\fR = running
@ -718,14 +723,14 @@ Even without a true SMP machine, you may see numerous tasks in this state
depending on \*(We's delay interval and nice value. depending on \*(We's delay interval and nice value.
.TP 4 .TP 4
21.\fB SHR \*(Em Shared Memory Size (KiB) \fR 22.\fB SHR \*(Em Shared Memory Size (KiB) \fR
The amount of \*(MS available to a task, not all of which is The amount of \*(MS available to a task, not all of which is
typically resident. typically resident.
It simply reflects memory that could be potentially shared with It simply reflects memory that could be potentially shared with
other processes. other processes.
.TP 4 .TP 4
22.\fB SID \*(Em Session Id \fR 23.\fB SID \*(Em Session Id \fR
A session is a collection of process groups (\*(Xa PGRP), A session is a collection of process groups (\*(Xa PGRP),
usually established by the login shell. usually established by the login shell.
A newly forked process joins the session of its creator. A newly forked process joins the session of its creator.
@ -734,11 +739,11 @@ member of the session, called the session leader, which is usually the
login shell. login shell.
.TP 4 .TP 4
23.\fB SUID \*(Em Saved User Id \fR 24.\fB SUID \*(Em Saved User Id \fR
The\fI saved\fR user ID. The\fI saved\fR user ID.
.TP 4 .TP 4
24.\fB SUPGIDS \*(Em Supplementary Group IDs \fR 25.\fB SUPGIDS \*(Em Supplementary Group IDs \fR
The IDs of any supplementary group(s) established at login or The IDs of any supplementary group(s) established at login or
inherited from a task's parent. inherited from a task's parent.
They are displayed in a comma delimited list. They are displayed in a comma delimited list.
@ -751,7 +756,7 @@ Even so, such variable width fields could still suffer truncation.
any truncated data. any truncated data.
.TP 4 .TP 4
25.\fB SUPGRPS \*(Em Supplementary Group Names \fR 26.\fB SUPGRPS \*(Em Supplementary Group Names \fR
The names of any supplementary group(s) established at login or The names of any supplementary group(s) established at login or
inherited from a task's parent. inherited from a task's parent.
They are displayed in a comma delimited list. They are displayed in a comma delimited list.
@ -764,21 +769,21 @@ Even so, such variable width fields could still suffer truncation.
any truncated data. any truncated data.
.TP 4 .TP 4
26.\fB SUSER \*(Em Saved User Name \fR 27.\fB SUSER \*(Em Saved User Name \fR
The\fI saved\fR user name. The\fI saved\fR user name.
.TP 4 .TP 4
27.\fB SWAP \*(Em Swapped Size (KiB) \fR 28.\fB SWAP \*(Em Swapped Size (KiB) \fR
The non-resident portion of a task's address space. The non-resident portion of a task's address space.
.TP 4 .TP 4
28.\fB TGID \*(Em Thread Group Id \fR 29.\fB TGID \*(Em Thread Group Id \fR
The ID of the thread group to which a task belongs. The ID of the thread group to which a task belongs.
It is the PID of the thread group leader. It is the PID of the thread group leader.
In kernel terms, it represents those tasks that share an mm_struct. In kernel terms, it represents those tasks that share an mm_struct.
.TP 4 .TP 4
29.\fB TIME \*(Em \*(PU Time \fR 30.\fB TIME \*(Em \*(PU Time \fR
Total \*(PU time the task has used since it started. Total \*(PU time the task has used since it started.
When Cumulative mode is \*O, each process is listed with the \*(Pu When Cumulative mode is \*O, each process is listed with the \*(Pu
time that it and its dead children have used. time that it and its dead children have used.
@ -786,19 +791,19 @@ You toggle Cumulative mode with `S', which is both a \*(CO and an \*(CI.
\*(XC `S' \*(CI for additional information regarding this mode. \*(XC `S' \*(CI for additional information regarding this mode.
.TP 4 .TP 4
30.\fB TIME+ \*(Em \*(PU Time, hundredths \fR 31.\fB TIME+ \*(Em \*(PU Time, hundredths \fR
The same as TIME, but reflecting more granularity through hundredths The same as TIME, but reflecting more granularity through hundredths
of a second. of a second.
.TP 4 .TP 4
31.\fB TPGID \*(Em Tty Process Group Id \fR 32.\fB TPGID \*(Em Tty Process Group Id \fR
The process group ID of the foreground process for the connected tty, The process group ID of the foreground process for the connected tty,
or \-1 if a process is not connected to a terminal. or \-1 if a process is not connected to a terminal.
By convention, this value equals the process ID (\*(Xa PID) of the By convention, this value equals the process ID (\*(Xa PID) of the
process group leader (\*(Xa PGRP). process group leader (\*(Xa PGRP).
.TP 4 .TP 4
32.\fB TTY \*(Em Controlling Tty \fR 33.\fB TTY \*(Em Controlling Tty \fR
The name of the controlling terminal. The name of the controlling terminal.
This is usually the device (serial port, pty, etc.) from which the This is usually the device (serial port, pty, etc.) from which the
process was started, and which it uses for input or output. process was started, and which it uses for input or output.
@ -806,30 +811,30 @@ However, a task need not be associated with a terminal, in which case
you'll see `?' displayed. you'll see `?' displayed.
.TP 4 .TP 4
33.\fB UID \*(Em User Id \fR 34.\fB UID \*(Em User Id \fR
The\fI effective\fR user ID of the task's owner. The\fI effective\fR user ID of the task's owner.
.TP 4 .TP 4
34.\fB USED \*(Em Memory in Use (KiB) \fR 35.\fB USED \*(Em Memory in Use (KiB) \fR
This field represents the non-swapped \*(MP a task has used (RES) plus This field represents the non-swapped \*(MP a task has used (RES) plus
the non-resident portion of its address space (SWAP). the non-resident portion of its address space (SWAP).
.TP 4 .TP 4
35.\fB USER \*(Em User Name \fR 36.\fB USER \*(Em User Name \fR
The\fI effective\fR user name of the task's owner. The\fI effective\fR user name of the task's owner.
.TP 4 .TP 4
36.\fB VIRT \*(Em Virtual Memory Size (KiB) \fR 37.\fB VIRT \*(Em Virtual Memory Size (KiB) \fR
The total amount of \*(MV used by the task. The total amount of \*(MV used by the task.
It includes all code, data and shared libraries plus pages that have been It includes all code, data and shared libraries plus pages that have been
swapped out and pages that have been mapped but not used. swapped out and pages that have been mapped but not used.
.TP 4 .TP 4
37.\fB WCHAN \*(Em Sleeping in Function \fR 38.\fB WCHAN \*(Em Sleeping in Function \fR
Depending on the availability of the kernel link map (System.map), this Depending on the availability of the kernel link map (System.map), this
field will show the name or the address of the kernel function in which the field will show the name or the address of the kernel function in which the
task is currently sleeping. task is currently sleeping.
Running tasks will display a dash ('\-') in this column. Running tasks will display a dash (`\-') in this column.
By displaying this field, \*(We's own working set could be increased by over By displaying this field, \*(We's own working set could be increased by over
700Kb, depending on the kernel version. 700Kb, depending on the kernel version.
@ -837,14 +842,14 @@ Should that occur, your only means of reducing that overhead will be to stop
and restart \*(We. and restart \*(We.
.TP 4 .TP 4
38.\fB nDRT \*(Em Dirty Pages Count \fR 39.\fB nDRT \*(Em Dirty Pages Count \fR
The number of pages that have been modified since they were last The number of pages that have been modified since they were last
written to \*(AS. written to \*(AS.
Dirty pages must be written to \*(AS before the corresponding physical Dirty pages must be written to \*(AS before the corresponding physical
memory location can be used for some other virtual page. memory location can be used for some other virtual page.
.TP 4 .TP 4
39.\fB nMaj \*(Em Major Page Fault Count \fR 40.\fB nMaj \*(Em Major Page Fault Count \fR
The number of\fB major\fR page faults that have occurred for a task. The number of\fB major\fR page faults that have occurred for a task.
A page fault occurs when a process attempts to read from or write to a A page fault occurs when a process attempts to read from or write to a
virtual page that is not currently present in its address space. virtual page that is not currently present in its address space.
@ -852,7 +857,7 @@ A major page fault is when \*(AS access is involved in making that
page available. page available.
.TP 4 .TP 4
40.\fB nMin \*(Em Minor Page Fault count \fR 41.\fB nMin \*(Em Minor Page Fault count \fR
The number of\fB minor\fR page faults that have occurred for a task. The number of\fB minor\fR page faults that have occurred for a task.
A page fault occurs when a process attempts to read from or write to a A page fault occurs when a process attempts to read from or write to a
virtual page that is not currently present in its address space. virtual page that is not currently present in its address space.
@ -860,50 +865,50 @@ A minor page fault does not involve \*(AS access in making that
page available. page available.
.TP 4 .TP 4
41.\fB nTH \*(Em Number of Threads \fR 42.\fB nTH \*(Em Number of Threads \fR
The number of threads associated with a process. The number of threads associated with a process.
.TP 4 .TP 4
42.\fB nsIPC \*(Em IPC namespace \fR 43.\fB nsIPC \*(Em IPC namespace \fR
The Inode of the namespace used to isolate interprocess communication (IPC) The Inode of the namespace used to isolate interprocess communication (IPC)
resources such as System V IPC objects and POSIX message queues. resources such as System V IPC objects and POSIX message queues.
.TP 4 .TP 4
43.\fB nsMNT \*(Em MNT namespace \fR 44.\fB nsMNT \*(Em MNT namespace \fR
The Inode of the namespace used to isolate filesystem mount points thus The Inode of the namespace used to isolate filesystem mount points thus
offering different views of the filesystem hierarchy. offering different views of the filesystem hierarchy.
.TP 4 .TP 4
44.\fB nsNET \*(Em NET namespace \fR 45.\fB nsNET \*(Em NET namespace \fR
The Inode of the namespace used to isolate resources such as network devices, The Inode of the namespace used to isolate resources such as network devices,
IP addresses, IP routing, port numbers, etc. IP addresses, IP routing, port numbers, etc.
.TP 4 .TP 4
45.\fB nsPID \*(Em PID namespace \fR 46.\fB nsPID \*(Em PID namespace \fR
The Inode of the namespace used to isolate process ID numbers The Inode of the namespace used to isolate process ID numbers
meaning they need not remain unique. meaning they need not remain unique.
Thus, each such namespace could have its own `init' (PID #1) to Thus, each such namespace could have its own `init/systemd' (PID #1) to
manage various initialization tasks and reap orphaned child processes. manage various initialization tasks and reap orphaned child processes.
.TP 4 .TP 4
46.\fB nsUSER \*(Em USER namespace \fR 47.\fB nsUSER \*(Em USER namespace \fR
The Inode of the namespace used to isolate the user and group ID numbers. The Inode of the namespace used to isolate the user and group ID numbers.
Thus, a process could have a normal unprivileged user ID outside a user Thus, a process could have a normal unprivileged user ID outside a user
namespace while having a user ID of 0, with full root privileges, inside namespace while having a user ID of 0, with full root privileges, inside
that namespace. that namespace.
.TP 4 .TP 4
47.\fB nsUTS \*(Em UTS namespace \fR 48.\fB nsUTS \*(Em UTS namespace \fR
The Inode of the namespace used to isolate hostname and NIS domain name. The Inode of the namespace used to isolate hostname and NIS domain name.
UTS simply means "UNIX Time-sharing System". UTS simply means "UNIX Time-sharing System".
.TP 4 .TP 4
48.\fB vMj \*(Em Major Page Fault Count Delta\fR 49.\fB vMj \*(Em Major Page Fault Count Delta\fR
The number of\fB major\fR page faults that have occurred since the The number of\fB major\fR page faults that have occurred since the
last update (see nMaj). last update (see nMaj).
.TP 4 .TP 4
49.\fB vMn \*(Em Minor Page Fault Count Delta\fR 50.\fB vMn \*(Em Minor Page Fault Count Delta\fR
The number of\fB minor\fR page faults that have occurred since the The number of\fB minor\fR page faults that have occurred since the
last update (see nMin). last update (see nMin).
@ -1174,11 +1179,11 @@ This \*(CI can be used to alter the widths of the following fields:
.nf .nf
\fI field default field default field default \fR \fI field default field default field default \fR
GID 5 GROUP 8 WCHAN 10 GID 5 GROUP 8 WCHAN 10
RUID 5 RUSER 8 nsIPC 10 RUID 5 LXC 8 nsIPC 10
SUID 5 SUSER 8 nsMNT 10 SUID 5 RUSER 8 nsMNT 10
UID 5 USER 8 nsNET 10 UID 5 SUSER 8 nsNET 10
TTY 8 nsPID 10 TTY 8 nsPID 10
nsUSER 10 USER 8 nsUSER 10
nsUTS 10 nsUTS 10
.fi .fi
@ -1356,7 +1361,7 @@ global `B' (bold enable) toggle.
\ \ \ \fBb\fR\ \ :\fIBold/Reverse\fR toggle \fR \ \ \ \fBb\fR\ \ :\fIBold/Reverse\fR toggle \fR
This command will impact how the `x' and `y' toggles are displayed. This command will impact how the `x' and `y' toggles are displayed.
It may also impact the \*(SA when a bar graph has been selected for \*(Pu It may also impact the \*(SA when a bar graph has been selected for \*(Pu
states or memory usage via the 't' or 'm' toggles. states or memory usage via the `t' or `m' toggles.
.TP 7 .TP 7
\ \ \ \fBx\fR\ \ :\fIColumn-Highlight\fR toggle \fR \ \ \ \fBx\fR\ \ :\fIColumn-Highlight\fR toggle \fR
@ -1439,7 +1444,7 @@ matches on\fB any\fR user (real, effective, saved, or filesystem).
Thereafter, in that \*(TW only matching users will be shown, or possibly Thereafter, in that \*(TW only matching users will be shown, or possibly
no processes will be shown. no processes will be shown.
Prepending an exclamation point ('!') to the user id or name instructs top Prepending an exclamation point (`!') to the user id or name instructs top
to display only processes with users not matching the one provided. to display only processes with users not matching the one provided.
Different \*(TWs can be used to filter different users. Different \*(TWs can be used to filter different users.
@ -2258,8 +2263,8 @@ Depending on where you applied `i', sometimes several \*(TDs are bouncing and
sometimes it's like an accordion, as \*(We tries his best to allocate space. sometimes it's like an accordion, as \*(We tries his best to allocate space.
.IP \(bu 3 .IP \(bu 3
Set each window's summary lines differently: one with no memory ('m'); another Set each window's summary lines differently: one with no memory (`m'); another
with no states ('t'); maybe one with nothing at all, just the message line. with no states (`t'); maybe one with nothing at all, just the message line.
Then hold down `a' or `w' and watch a variation on bouncing windows \*(Em Then hold down `a' or `w' and watch a variation on bouncing windows \*(Em
hopping windows. hopping windows.