[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[c439b8a] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[02095ae] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-procps" role="wrap">
|
---|
| 9 | <?dbhtml filename="procps.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Procps-&procps-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-procps">
|
---|
| 14 | <primary sortas="a-Procps">Procps</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Procps package contains programs for monitoring
|
---|
| 21 | processes.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Procps</title>
|
---|
| 27 |
|
---|
[69358a8] | 28 | <para os="p3">This patch adds support for Internationalization:</para>
|
---|
| 29 |
|
---|
| 30 | <screen os="p4"><userinput>patch -Np1 -i ../&procps-i18n-patch;</userinput></screen>
|
---|
| 31 |
|
---|
[02095ae] | 32 | <para os="a">Compile the package:</para>
|
---|
| 33 |
|
---|
[3423c60] | 34 | <screen os="b"><userinput>make CPPFLAGS= lib64=lib m64=</userinput></screen>
|
---|
[02095ae] | 35 |
|
---|
[124ebe0] | 36 | <para os="c">Install the package:</para>
|
---|
[02095ae] | 37 |
|
---|
[3423c60] | 38 | <screen os="d"><userinput>make DESTDIR=${CLFS} lib64=lib m64= ldconfig= \
|
---|
[c5968b4] | 39 | install="install -D" install</userinput></screen>
|
---|
[02095ae] | 40 |
|
---|
[3cbc8f4] | 41 | <variablelist os="e">
|
---|
[a3ac3a2] | 42 | <title>The meaning of the make options:</title>
|
---|
| 43 | <varlistentry>
|
---|
[c5968b4] | 44 | <term><parameter>CPPFLAGS=</parameter></term>
|
---|
[a3ac3a2] | 45 | <listitem>
|
---|
| 46 | <para>By default, procps tries to include the host system
|
---|
| 47 | ncurses headers, so we have to disable that.</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | </varlistentry>
|
---|
[3cbc8f4] | 50 |
|
---|
| 51 | <varlistentry>
|
---|
| 52 | <term><parameter>lib64=lib</parameter></term>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>By default, procps will attempt to install into
|
---|
| 55 | <filename class="directory">/lib64</filename> if it
|
---|
| 56 | exists, even if the package is not built 64-bit. This option
|
---|
| 57 | forces procps to install its libraries into
|
---|
| 58 | <filename class="directory">/lib</filename> instead.</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </varlistentry>
|
---|
| 61 | </variablelist>
|
---|
| 62 |
|
---|
[02095ae] | 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | <sect2 id="contents-procps" role="content">
|
---|
| 66 | <title>Contents of Procps</title>
|
---|
| 67 |
|
---|
| 68 | <segmentedlist>
|
---|
| 69 | <segtitle>Installed programs</segtitle>
|
---|
| 70 | <segtitle>Installed library</segtitle>
|
---|
| 71 |
|
---|
| 72 | <seglistitem>
|
---|
[82b662d] | 73 | <seg>free, kill, pgrep, pkill, pmap, ps, pwdx, skill, slabtop, snice, sysctl,
|
---|
| 74 | tload, top, uptime, vmstat, w, and watch</seg>
|
---|
[02095ae] | 75 | <seg>libproc.so</seg>
|
---|
| 76 | </seglistitem>
|
---|
| 77 | </segmentedlist>
|
---|
| 78 |
|
---|
| 79 | <variablelist>
|
---|
| 80 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 81 | <?dbfo list-presentation="list"?>
|
---|
| 82 | <?dbhtml list-presentation="table"?>
|
---|
| 83 |
|
---|
| 84 | <varlistentry id="free">
|
---|
| 85 | <term><command>free</command></term>
|
---|
| 86 | <listitem>
|
---|
| 87 | <para>Reports the amount of free and used memory (both physical and
|
---|
| 88 | swap memory) in the system</para>
|
---|
| 89 | <indexterm zone="ch-system-procps free">
|
---|
| 90 | <primary sortas="b-free">free</primary>
|
---|
| 91 | </indexterm>
|
---|
| 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
| 94 |
|
---|
| 95 | <varlistentry id="kill">
|
---|
| 96 | <term><command>kill</command></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>Sends signals to processes</para>
|
---|
| 99 | <indexterm zone="ch-system-procps kill">
|
---|
| 100 | <primary sortas="b-kill">kill</primary>
|
---|
| 101 | </indexterm>
|
---|
| 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="pgrep">
|
---|
| 106 | <term><command>pgrep</command></term>
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>Looks up processes based on their name and other attributes</para>
|
---|
| 109 | <indexterm zone="ch-system-procps pgrep">
|
---|
| 110 | <primary sortas="b-pgrep">pgrep</primary>
|
---|
| 111 | </indexterm>
|
---|
| 112 | </listitem>
|
---|
| 113 | </varlistentry>
|
---|
| 114 |
|
---|
| 115 | <varlistentry id="pkill">
|
---|
| 116 | <term><command>pkill</command></term>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>Signals processes based on their name and other attributes</para>
|
---|
| 119 | <indexterm zone="ch-system-procps pkill">
|
---|
| 120 | <primary sortas="b-pkill">pkill</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
| 125 | <varlistentry id="pmap">
|
---|
| 126 | <term><command>pmap</command></term>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>Reports the memory map of the given process</para>
|
---|
| 129 | <indexterm zone="ch-system-procps pmap">
|
---|
| 130 | <primary sortas="b-pmap">pmap</primary>
|
---|
| 131 | </indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
| 134 |
|
---|
| 135 | <varlistentry id="ps">
|
---|
| 136 | <term><command>ps</command></term>
|
---|
| 137 | <listitem>
|
---|
| 138 | <para>Lists the current running processes</para>
|
---|
| 139 | <indexterm zone="ch-system-procps ps">
|
---|
| 140 | <primary sortas="b-ps">ps</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
| 144 |
|
---|
[82b662d] | 145 | <varlistentry id="pwdx">
|
---|
| 146 | <term><command>pwdx</command></term>
|
---|
| 147 | <listitem>
|
---|
| 148 | <para>Reports the current working directory of a process</para>
|
---|
| 149 | <indexterm zone="ch-system-procps pwdx">
|
---|
| 150 | <primary sortas="b-pwdx">pwdx</primary>
|
---|
| 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
[02095ae] | 155 | <varlistentry id="skill">
|
---|
| 156 | <term><command>skill</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>Sends signals to processes matching the given criteria</para>
|
---|
| 159 | <indexterm zone="ch-system-procps skill">
|
---|
| 160 | <primary sortas="b-skill">skill</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 |
|
---|
[82b662d] | 165 | <varlistentry id="slabtop">
|
---|
| 166 | <term><command>slabtop</command></term>
|
---|
| 167 | <listitem>
|
---|
[823185c] | 168 | <para>Displays detailed kernel slab cache information in real time</para>
|
---|
[82b662d] | 169 | <indexterm zone="ch-system-procps slabtop">
|
---|
| 170 | <primary sortas="b-slabtop">slabtop</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
[02095ae] | 175 | <varlistentry id="snice">
|
---|
| 176 | <term><command>snice</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>Changes the scheduling priority of processes matching the given
|
---|
| 179 | criteria</para>
|
---|
| 180 | <indexterm zone="ch-system-procps snice">
|
---|
| 181 | <primary sortas="b-snice">snice</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="sysctl">
|
---|
| 187 | <term><command>sysctl</command></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>Modifies kernel parameters at run time</para>
|
---|
| 190 | <indexterm zone="ch-system-procps sysctl">
|
---|
| 191 | <primary sortas="b-sysctl">sysctl</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="tload">
|
---|
| 197 | <term><command>tload</command></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>Prints a graph of the current system load average</para>
|
---|
| 200 | <indexterm zone="ch-system-procps tload">
|
---|
| 201 | <primary sortas="b-tload">tload</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="top">
|
---|
| 207 | <term><command>top</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>Displays a list of the most CPU intensive processes; it
|
---|
| 210 | provides an ongoing look at processor activity in real time</para>
|
---|
| 211 | <indexterm zone="ch-system-procps top">
|
---|
| 212 | <primary sortas="b-top">top</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="uptime">
|
---|
| 218 | <term><command>uptime</command></term>
|
---|
| 219 | <listitem>
|
---|
| 220 | <para>Reports how long the system has been running, how many users are
|
---|
| 221 | logged on, and the system load averages</para>
|
---|
| 222 | <indexterm zone="ch-system-procps uptime">
|
---|
| 223 | <primary sortas="b-uptime">uptime</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
| 228 | <varlistentry id="vmstat">
|
---|
| 229 | <term><command>vmstat</command></term>
|
---|
| 230 | <listitem>
|
---|
| 231 | <para>Reports virtual memory statistics, giving information about
|
---|
| 232 | processes, memory, paging, block Input/Output (IO), traps, and CPU
|
---|
| 233 | activity</para>
|
---|
| 234 | <indexterm zone="ch-system-procps vmstat">
|
---|
| 235 | <primary sortas="b-vmstat">vmstat</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
| 239 |
|
---|
| 240 | <varlistentry id="w">
|
---|
| 241 | <term><command>w</command></term>
|
---|
| 242 | <listitem>
|
---|
| 243 | <para>Shows which users are currently logged on, where, and since
|
---|
| 244 | when</para>
|
---|
| 245 | <indexterm zone="ch-system-procps w">
|
---|
| 246 | <primary sortas="b-w">w</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="watch">
|
---|
| 252 | <term><command>watch</command></term>
|
---|
| 253 | <listitem>
|
---|
| 254 | <para>Runs a given command repeatedly, displaying the first
|
---|
| 255 | screen-full of its output; this allows a user to watch the output
|
---|
| 256 | change over time</para>
|
---|
| 257 | <indexterm zone="ch-system-procps watch">
|
---|
| 258 | <primary sortas="b-watch">watch</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
| 263 | <varlistentry id="libproc">
|
---|
| 264 | <term><filename class="libraryfile">libproc</filename></term>
|
---|
| 265 | <listitem>
|
---|
| 266 | <para>Contains the functions used by most programs in this
|
---|
| 267 | package</para>
|
---|
| 268 | <indexterm zone="ch-system-procps libproc">
|
---|
| 269 | <primary sortas="c-libproc">libproc</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | </variablelist>
|
---|
| 275 |
|
---|
| 276 | </sect2>
|
---|
| 277 |
|
---|
| 278 | </sect1>
|
---|