[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[3f3931b0] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-procps" role="wrap">
|
---|
[ec9f9d4] | 9 | <?dbhtml filename="procps-ng.html"?>
|
---|
[3f3931b0] | 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
[ec9f9d4] | 12 | <productname>procps-ng</productname>
|
---|
| 13 | <productnumber>&procps-ng-version;</productnumber>
|
---|
| 14 | <address>&procps-ng-url;</address>
|
---|
[e747759] | 15 | </sect1info>
|
---|
| 16 |
|
---|
[63d6655] | 17 | <title>Procps-ng-&procps-ng-version;</title>
|
---|
[3f3931b0] | 18 |
|
---|
| 19 | <indexterm zone="ch-system-procps">
|
---|
[ec9f9d4] | 20 | <primary sortas="a-Procps">Procps-ng</primary>
|
---|
[3f3931b0] | 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[673b0d8] | 25 |
|
---|
[ec9f9d4] | 26 | <para>The Procps-ng package contains programs for monitoring processes.</para>
|
---|
[6370fa6] | 27 |
|
---|
[0b52f7ba] | 28 | <!-- TODO This note will probably not be needed at the next revision. -->
|
---|
[164d38e] | 29 | <note>
|
---|
| 30 | <para>This package extracts to the directory
|
---|
| 31 | <filename class="directory">procps-3.3.17</filename>,
|
---|
| 32 | not the expected
|
---|
| 33 | <filename class="directory">procps-ng-3.3.17</filename>.</para>
|
---|
| 34 | </note>
|
---|
[0b52f7ba] | 35 |
|
---|
[3f3931b0] | 36 | <segmentedlist>
|
---|
| 37 | <segtitle>&buildtime;</segtitle>
|
---|
| 38 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 39 |
|
---|
[3f3931b0] | 40 | <seglistitem>
|
---|
[fb386e0] | 41 | <seg>&procps-ng-fin-sbu;</seg>
|
---|
| 42 | <seg>&procps-ng-fin-du;</seg>
|
---|
[3f3931b0] | 43 | </seglistitem>
|
---|
| 44 | </segmentedlist>
|
---|
[673b0d8] | 45 |
|
---|
[3f3931b0] | 46 | </sect2>
|
---|
| 47 |
|
---|
| 48 | <sect2 role="installation">
|
---|
[ec9f9d4] | 49 | <title>Installation of Procps-ng</title>
|
---|
[3f3931b0] | 50 |
|
---|
[0d84af1] | 51 | <para>Prepare procps-ng for compilation:</para>
|
---|
[62b134d] | 52 |
|
---|
[1118b17] | 53 | <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
|
---|
[79dc83f] | 54 | --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
|
---|
[d0da965a] | 55 | --disable-static \
|
---|
[ec9f9d4] | 56 | --disable-kill</userinput></screen>
|
---|
[62b134d] | 57 |
|
---|
[1118b17] | 58 | <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 59 | --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
|
---|
| 60 | --disable-static \
|
---|
| 61 | --disable-kill \
|
---|
| 62 | --with-systemd</userinput></screen>
|
---|
| 63 |
|
---|
[ec9f9d4] | 64 | <variablelist>
|
---|
[6a156bab] | 65 | <title>The meaning of the configure option:</title>
|
---|
[3e80156] | 66 |
|
---|
[ec9f9d4] | 67 | <varlistentry>
|
---|
| 68 | <term><parameter>--disable-kill</parameter></term>
|
---|
| 69 | <listitem>
|
---|
[f0800aa] | 70 | <para>This switch disables building the <command>kill</command>
|
---|
| 71 | command that will be installed by the Util-linux package.</para>
|
---|
[ec9f9d4] | 72 | </listitem>
|
---|
| 73 | </varlistentry>
|
---|
| 74 | </variablelist>
|
---|
[2ca8941] | 75 |
|
---|
[58c4a18] | 76 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 77 |
|
---|
[0445a3d] | 78 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[ba82c18] | 79 | <!--
|
---|
[2ca8941] | 80 | <para>The test suite needs some custom modifications for LFS.
|
---|
[67ce2a2] | 81 | Remove a test that fails when scripting does not use a tty device and
|
---|
| 82 | fix two others.
|
---|
[8445b68] | 83 | To run the test suite, run the following commands:</para>
|
---|
[ec9f9d4] | 84 |
|
---|
[f873610] | 85 | <screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
|
---|
[67ce2a2] | 86 | sed -i '/set tty/d' testsuite/pkill.test/pkill.exp
|
---|
| 87 | rm testsuite/pgrep.test/pgrep.exp
|
---|
[d45e041] | 88 | make check</userinput></screen>
|
---|
[ba82c18] | 89 | -->
|
---|
| 90 | <para> To run the test suite, run:</para>
|
---|
| 91 |
|
---|
| 92 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
[2ca8941] | 93 |
|
---|
[1e639b2] | 94 | <para>Five tests related to pkill are known to fail due to a problem
|
---|
[164d38e] | 95 | with tests that were not updated.</para>
|
---|
[0b52f7ba] | 96 |
|
---|
[58c4a18] | 97 | <para>Install the package:</para>
|
---|
[73aedd1d] | 98 |
|
---|
[0445a3d] | 99 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 100 |
|
---|
[3f3931b0] | 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 id="contents-procps" role="content">
|
---|
[ec9f9d4] | 104 | <title>Contents of Procps-ng</title>
|
---|
[3f3931b0] | 105 |
|
---|
| 106 | <segmentedlist>
|
---|
| 107 | <segtitle>Installed programs</segtitle>
|
---|
| 108 | <segtitle>Installed library</segtitle>
|
---|
[f41fa81] | 109 | <segtitle>Installed directories</segtitle>
|
---|
[3f3931b0] | 110 |
|
---|
| 111 | <seglistitem>
|
---|
[9132fe4] | 112 | <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
|
---|
[f41fa81] | 113 | sysctl, tload, top, uptime, vmstat, w, and watch</seg>
|
---|
[ec9f9d4] | 114 | <seg>libprocps.so</seg>
|
---|
[7bb9fda] | 115 | <seg>/usr/include/proc and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
|
---|
[3f3931b0] | 116 | </seglistitem>
|
---|
| 117 | </segmentedlist>
|
---|
| 118 |
|
---|
| 119 | <variablelist>
|
---|
| 120 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 121 | <?dbfo list-presentation="list"?>
|
---|
| 122 | <?dbhtml list-presentation="table"?>
|
---|
| 123 |
|
---|
| 124 | <varlistentry id="free">
|
---|
| 125 | <term><command>free</command></term>
|
---|
| 126 | <listitem>
|
---|
| 127 | <para>Reports the amount of free and used memory (both physical and
|
---|
| 128 | swap memory) in the system</para>
|
---|
| 129 | <indexterm zone="ch-system-procps free">
|
---|
| 130 | <primary sortas="b-free">free</primary>
|
---|
| 131 | </indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
| 134 |
|
---|
| 135 | <varlistentry id="pgrep">
|
---|
| 136 | <term><command>pgrep</command></term>
|
---|
| 137 | <listitem>
|
---|
| 138 | <para>Looks up processes based on their name and other attributes</para>
|
---|
| 139 | <indexterm zone="ch-system-procps pgrep">
|
---|
| 140 | <primary sortas="b-pgrep">pgrep</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
| 144 |
|
---|
[9132fe4] | 145 | <varlistentry id="pidof">
|
---|
| 146 | <term><command>pidof</command></term>
|
---|
| 147 | <listitem>
|
---|
[1d6f204] | 148 | <para>Reports the PIDs of the given programs</para>
|
---|
[9132fe4] | 149 | <indexterm zone="ch-system-procps pidof">
|
---|
| 150 | <primary sortas="b-pidof">pidof</primary>
|
---|
| 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
[3f3931b0] | 155 | <varlistentry id="pkill">
|
---|
| 156 | <term><command>pkill</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>Signals processes based on their name and other attributes</para>
|
---|
| 159 | <indexterm zone="ch-system-procps pkill">
|
---|
| 160 | <primary sortas="b-pkill">pkill</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 |
|
---|
| 165 | <varlistentry id="pmap">
|
---|
| 166 | <term><command>pmap</command></term>
|
---|
| 167 | <listitem>
|
---|
| 168 | <para>Reports the memory map of the given process</para>
|
---|
| 169 | <indexterm zone="ch-system-procps pmap">
|
---|
| 170 | <primary sortas="b-pmap">pmap</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="ps">
|
---|
| 176 | <term><command>ps</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>Lists the current running processes</para>
|
---|
| 179 | <indexterm zone="ch-system-procps ps">
|
---|
| 180 | <primary sortas="b-ps">ps</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
[f9a430a] | 185 | <varlistentry id="pwait">
|
---|
| 186 | <term><command>pwait</command></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>Waits for a process to finish before executing.</para>
|
---|
| 189 | <indexterm zone="ch-system-procps pwait">
|
---|
| 190 | <primary sortas="b-pwait">pwait</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
[2791a8e] | 195 | <varlistentry id="pwdx">
|
---|
| 196 | <term><command>pwdx</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>Reports the current working directory of a process</para>
|
---|
| 199 | <indexterm zone="ch-system-procps pwdx">
|
---|
| 200 | <primary sortas="b-pwdx">pwdx</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
[8bc46a5] | 205 | <varlistentry id="slabtop">
|
---|
| 206 | <term><command>slabtop</command></term>
|
---|
| 207 | <listitem>
|
---|
[0d84af1] | 208 | <para>Displays detailed kernel slab cache information in real time</para>
|
---|
[8bc46a5] | 209 | <indexterm zone="ch-system-procps slabtop">
|
---|
| 210 | <primary sortas="b-slabtop">slabtop</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
[3f3931b0] | 215 | <varlistentry id="sysctl">
|
---|
| 216 | <term><command>sysctl</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>Modifies kernel parameters at run time</para>
|
---|
| 219 | <indexterm zone="ch-system-procps sysctl">
|
---|
| 220 | <primary sortas="b-sysctl">sysctl</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="tload">
|
---|
| 226 | <term><command>tload</command></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>Prints a graph of the current system load average</para>
|
---|
| 229 | <indexterm zone="ch-system-procps tload">
|
---|
| 230 | <primary sortas="b-tload">tload</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | <varlistentry id="top">
|
---|
| 236 | <term><command>top</command></term>
|
---|
| 237 | <listitem>
|
---|
| 238 | <para>Displays a list of the most CPU intensive processes; it
|
---|
| 239 | provides an ongoing look at processor activity in real time</para>
|
---|
| 240 | <indexterm zone="ch-system-procps top">
|
---|
| 241 | <primary sortas="b-top">top</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="uptime">
|
---|
| 247 | <term><command>uptime</command></term>
|
---|
| 248 | <listitem>
|
---|
| 249 | <para>Reports how long the system has been running, how many users are
|
---|
| 250 | logged on, and the system load averages</para>
|
---|
| 251 | <indexterm zone="ch-system-procps uptime">
|
---|
| 252 | <primary sortas="b-uptime">uptime</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
| 257 | <varlistentry id="vmstat">
|
---|
| 258 | <term><command>vmstat</command></term>
|
---|
| 259 | <listitem>
|
---|
| 260 | <para>Reports virtual memory statistics, giving information about
|
---|
| 261 | processes, memory, paging, block Input/Output (IO), traps, and CPU
|
---|
| 262 | activity</para>
|
---|
| 263 | <indexterm zone="ch-system-procps vmstat">
|
---|
| 264 | <primary sortas="b-vmstat">vmstat</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="w">
|
---|
| 270 | <term><command>w</command></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>Shows which users are currently logged on, where, and since
|
---|
| 273 | when</para>
|
---|
| 274 | <indexterm zone="ch-system-procps w">
|
---|
| 275 | <primary sortas="b-w">w</primary>
|
---|
| 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
| 280 | <varlistentry id="watch">
|
---|
| 281 | <term><command>watch</command></term>
|
---|
| 282 | <listitem>
|
---|
| 283 | <para>Runs a given command repeatedly, displaying the first
|
---|
| 284 | screen-full of its output; this allows a user to watch the output
|
---|
| 285 | change over time</para>
|
---|
| 286 | <indexterm zone="ch-system-procps watch">
|
---|
| 287 | <primary sortas="b-watch">watch</primary>
|
---|
| 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
| 291 |
|
---|
[ec9f9d4] | 292 | <varlistentry id="libprocps">
|
---|
[9132fe4] | 293 | <term><filename class="libraryfile">libprocps</filename></term>
|
---|
[3f3931b0] | 294 | <listitem>
|
---|
| 295 | <para>Contains the functions used by most programs in this
|
---|
| 296 | package</para>
|
---|
[ec9f9d4] | 297 | <indexterm zone="ch-system-procps libprocps">
|
---|
| 298 | <primary sortas="c-libprocps">libprocps</primary>
|
---|
[3f3931b0] | 299 | </indexterm>
|
---|
| 300 | </listitem>
|
---|
| 301 | </varlistentry>
|
---|
| 302 |
|
---|
| 303 | </variablelist>
|
---|
| 304 |
|
---|
| 305 | </sect2>
|
---|
[673b0d8] | 306 |
|
---|
| 307 | </sect1>
|
---|