This commit is contained in:
Hisham Muhammad 2014-06-04 16:49:33 -03:00
commit 0e8a02367e
2 changed files with 100 additions and 48 deletions

31
.gitignore vendored Normal file
View File

@ -0,0 +1,31 @@
# the binary:
htop
# all object files
*.o
.deps/
Makefile
Makefile.in
aclocal.m4
autom4te.cache/
compile
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
depcomp
htop.1
install-sh
libtool
ltmain.sh
m4/libtool.m4
m4/ltoptions.m4
m4/ltversion.m4
m4/lt~obsolete.m4
missing
stamp-h1

117
htop.1.in
View File

@ -1,4 +1,4 @@
.TH "HTOP" "1" "2011" "@PACKAGE_STRING@" "Utils" .TH "HTOP" "1" "2014" "@PACKAGE_STRING@" "Utils"
.SH "NAME" .SH "NAME"
htop \- interactive process viewer htop \- interactive process viewer
.SH "SYNOPSIS" .SH "SYNOPSIS"
@ -173,6 +173,15 @@ The full command line of the process (i.e program name and arguments).
.B PID .B PID
The process ID. The process ID.
.TP .TP
.B STATE (S)
The state of the process:
\fBS\fR for sleeping (idle)
\fBR\fR for running
\fBD\fR for disk sleep (uninterruptible)
\fBZ\fR for zombie (waiting for parent to read its exit status)
\fBT\fR for traced or suspended (e.g by SIGTSTP)
\fBW\fR for paging
.TP
.B PPID .B PPID
The parent process ID. The parent process ID.
.TP .TP
@ -188,28 +197,17 @@ The controlling terminal of the process.
.B TPGID .B TPGID
The process ID of the foreground process group of the controlling terminal. The process ID of the foreground process group of the controlling terminal.
.TP .TP
.B STATE (S) .B MINFLT
The state of the process: The number of page faults happening in the main memory.
\fBS\fR for sleeping (idle)
\fBR\fR for running
\fBD\fR for disk sleep (uninterruptible)
\fBZ\fR for zombie (waiting for parent to read its exit status)
\fBT\fR for traced or suspended (e.g by SIGTSTP)
\fBW\fR for paging
.TP .TP
.B PROCESSOR (CPU) .B CMINFLT
The ID of the CPU the process last executed on. The number of minor faults for the process's waited-for children (see MINFLT above).
.TP .TP
.B NLWP .B MAJFLT
The number of threads in the process. The number of page faults happening out of the main memory.
.TP .TP
.B NICE (NI) .B CMAJFLT
The nice value of a process, from 19 (low priority) to -20 (high priority). A The number of major faults for the process's waited-for children (see MAJFLT above).
high value means the process is being nice, letting others have a higher
relative priority. Only root can lower the value.
.TP
.B PERCENT_CPU (CPU%)
The percentage of the CPU time that the process is currently using.
.TP .TP
.B UTIME (UTIME+) .B UTIME (UTIME+)
The user CPU time, which is the amount of time the process has spent executing The user CPU time, which is the amount of time the process has spent executing
@ -220,15 +218,11 @@ ticks.
The system CPU time, which is the amount of time the kernel has spent The system CPU time, which is the amount of time the kernel has spent
executing system calls on behalf of the process, measured in clock ticks. executing system calls on behalf of the process, measured in clock ticks.
.TP .TP
.B TIME (TIME+) .B CUTIME (CUTIME+)
The time, measured in clock ticks that the process has spent in user and system
time (see UTIME, STIME above).
.TP
.B CUTIME
The children's user CPU time, which is the amount of time the process's The children's user CPU time, which is the amount of time the process's
waited-for children have spent executing in user mode (see UTIME above). waited-for children have spent executing in user mode (see UTIME above).
.TP .TP
.B CSTIME .B CSTIME (CSTIME+)
The children's system CPU time, which is the amount of time the kernel has spent The children's system CPU time, which is the amount of time the kernel has spent
executing system calls on behalf of all the process's waited-for children (see executing system calls on behalf of all the process's waited-for children (see
STIME above). STIME above).
@ -237,9 +231,16 @@ STIME above).
The kernel's internal priority for the process, usually just its nice value The kernel's internal priority for the process, usually just its nice value
plus twenty. Different for real-time processes. plus twenty. Different for real-time processes.
.TP .TP
.B PERCENT_MEM .B NICE (NI)
The percentage of memory the process is currently using (based on the process's The nice value of a process, from 19 (low priority) to -20 (high priority). A
resident memory size, see M_RESIDENT below). high value means the process is being nice, letting others have a higher
relative priority. Only root can lower the value.
.TP
.B STARTTIME (START)
The time the process was started.
.TP
.B PROCESSOR (CPU)
The ID of the CPU the process last executed on.
.TP .TP
.B M_SIZE (VIRT) .B M_SIZE (VIRT)
Size in memory of the total program size. Size in memory of the total program size.
@ -249,30 +250,53 @@ The resident set size, i.e the size of the text and data sections, plus stack
usage. usage.
.TP .TP
.B M_SHARE (SHR) .B M_SHARE (SHR)
The size of the process's shared pages The size of the process's shared pages.
.TP .TP
.B M_TRS (CODE) .B M_TRS (CODE)
The size of the text segment of the process (i.e the size of the processes The size of the text segment of the process (i.e the size of the processes
executable instructions). executable instructions).
.TP .TP
.B M_LRS (LIB)
The library size of the process.
.TP
.B M_DRS (DATA) .B M_DRS (DATA)
The size of the data segment plus stack usage of the process. The size of the data segment plus stack usage of the process.
.TP .TP
.B M_LRS (LIB)
The library size of the process.
.TP
.B M_DT (DIRTY) .B M_DT (DIRTY)
The size of the dirty pages of the process. The size of the dirty pages of the process.
.TP .TP
.B ST_UID (UID) .B ST_UID (UID)
The user ID of the process owner. The user ID of the process owner.
.TP .TP
.B PERCENT_CPU (CPU%)
The percentage of the CPU time that the process is currently using.
.TP
.B PERCENT_MEM (MEM%)
The percentage of memory the process is currently using (based on the process's
resident memory size, see M_RESIDENT above).
.TP
.B USER .B USER
The username of the process owner, or the user ID if the name can't be The username of the process owner, or the user ID if the name can't be
determined. determined.
.TP .TP
.B STARTTIME .B TIME (TIME+)
The time the process was started. The time, measured in clock ticks that the process has spent in user and system
time (see UTIME, STIME above).
.TP
.B NLWP
The number of threads in the process.
.TP
.B TGID
The thread group ID.
.TP
.B CTID
OpenVZ container ID, a.k.a virtual environment ID.
.TP
.B VPID
OpenVZ process ID.
.TP
.B VXID
VServer process ID.
.TP .TP
.B RCHAR (RD_CHAR) .B RCHAR (RD_CHAR)
The number of bytes the process has read. The number of bytes the process has read.
@ -292,33 +316,30 @@ Bytes of read(2) I/O for the process.
.B WBYTES (IO_WBYTES) .B WBYTES (IO_WBYTES)
Bytes of write(2) I/O for the process. Bytes of write(2) I/O for the process.
.TP .TP
.B CNCLWB (IO_CANCEL)
Bytes of cancelled write(2) I/O.
.TP
.B IO_READ_RATE (IORR) .B IO_READ_RATE (IORR)
The I/O rate of read(2) in bytes per second, for the process. The I/O rate of read(2) in bytes per second, for the process.
.TP .TP
.B IO_WRITE_RATE (IOWR) .B IO_WRITE_RATE (IOWR)
The I/O rate of write(2) in bytes per second, for the process. The I/O rate of write(2) in bytes per second, for the process.
.TP .TP
.B IO_RATE (IO) .B IO_RATE (IORW)
The I/O rate, IO_READ_RATE + IO_WRITE_RATE (see above). The I/O rate, IO_READ_RATE + IO_WRITE_RATE (see above).
.TP .TP
.B CNCLWB (IO_CANCEL)
Bytes of cancelled write(2) I/O.
.TP
.B CGROUP .B CGROUP
Which cgroup the process is in. Which cgroup the process is in.
.TP .TP
.B CTID
OpenVZ container ID, a.k.a virtual environment ID.
.TP
.B VPID
OpenVZ process ID.
.TP
.B VXID
VServer process ID.
.TP
.B OOM .B OOM
OOM killer score. OOM killer score.
.TP .TP
.B IO_PRIORITY (IO)
The I/O scheduling class followed by the priority if the class supports it:
\fBR\fR for Realtime
\fBB\fR for Best-effort
\fBid\fR for Idle
.TP
.B All other flags .B All other flags
Currently unsupported (always displays '-'). Currently unsupported (always displays '-').