[7152faa] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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 |
|
---|
[3f3931b0] | 28 | <segmentedlist>
|
---|
| 29 | <segtitle>&buildtime;</segtitle>
|
---|
| 30 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 31 |
|
---|
[3f3931b0] | 32 | <seglistitem>
|
---|
[fb386e0] | 33 | <seg>&procps-ng-fin-sbu;</seg>
|
---|
| 34 | <seg>&procps-ng-fin-du;</seg>
|
---|
[3f3931b0] | 35 | </seglistitem>
|
---|
| 36 | </segmentedlist>
|
---|
[673b0d8] | 37 |
|
---|
[3f3931b0] | 38 | </sect2>
|
---|
| 39 |
|
---|
| 40 | <sect2 role="installation">
|
---|
[ec9f9d4] | 41 | <title>Installation of Procps-ng</title>
|
---|
[3f3931b0] | 42 |
|
---|
[baf93f5] | 43 | <para>Prepare Procps-ng for compilation:</para>
|
---|
[62b134d] | 44 |
|
---|
[89c3f71] | 45 | <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
|
---|
[79dc83f] | 46 | --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
|
---|
[89c3f71] | 47 | --disable-static \
|
---|
[ec9f9d4] | 48 | --disable-kill</userinput></screen>
|
---|
[62b134d] | 49 |
|
---|
[89c3f71] | 50 | <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
|
---|
[1118b17] | 51 | --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
|
---|
[89c3f71] | 52 | --disable-static \
|
---|
| 53 | --disable-kill \
|
---|
[1118b17] | 54 | --with-systemd</userinput></screen>
|
---|
| 55 |
|
---|
[ec9f9d4] | 56 | <variablelist>
|
---|
[6a156bab] | 57 | <title>The meaning of the configure option:</title>
|
---|
[3e80156] | 58 |
|
---|
[ec9f9d4] | 59 | <varlistentry>
|
---|
| 60 | <term><parameter>--disable-kill</parameter></term>
|
---|
| 61 | <listitem>
|
---|
[f0800aa] | 62 | <para>This switch disables building the <command>kill</command>
|
---|
[baf93f5] | 63 | command; it will be installed from the Util-linux package.</para>
|
---|
[ec9f9d4] | 64 | </listitem>
|
---|
| 65 | </varlistentry>
|
---|
| 66 | </variablelist>
|
---|
[2ca8941] | 67 |
|
---|
[58c4a18] | 68 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 69 |
|
---|
[3864d23] | 70 | <screen revision='sysv'><userinput remap="make">make</userinput></screen>
|
---|
| 71 | <screen revision='systemd'><userinput remap="make">make src_w_LDADD='$(LDADD) -lsystemd'</userinput></screen>
|
---|
| 72 |
|
---|
[c2d820a] | 73 | <!-- To editors: "pmap {X,XX} with unreachable process" tests don't work
|
---|
| 74 | as root. They may seem to pass due to some Tcl/Expect/DejaGNU
|
---|
| 75 | internal hazards with some "luck" though. -->
|
---|
| 76 | <para>To run the test suite, run:</para>
|
---|
[ba82c18] | 77 |
|
---|
[a56a4fc] | 78 | <screen><userinput remap="test">chown -R tester .
|
---|
| 79 | su tester -c "PATH=$PATH make check"</userinput></screen>
|
---|
[2ca8941] | 80 |
|
---|
[ed38e9d] | 81 | <para>One test named
|
---|
| 82 | <literal>ps with output flag bsdtime,cputime,etime,etimes</literal>
|
---|
| 83 | is known to fail if the host kernel is not built with
|
---|
[c2d820a] | 84 | <literal>CONFIG_BSD_PROCESS_ACCT</literal> enabled.</para>
|
---|
[28614cdd] | 85 |
|
---|
[58c4a18] | 86 | <para>Install the package:</para>
|
---|
[73aedd1d] | 87 |
|
---|
[0445a3d] | 88 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 89 |
|
---|
[3f3931b0] | 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 id="contents-procps" role="content">
|
---|
[ec9f9d4] | 93 | <title>Contents of Procps-ng</title>
|
---|
[3f3931b0] | 94 |
|
---|
| 95 | <segmentedlist>
|
---|
| 96 | <segtitle>Installed programs</segtitle>
|
---|
| 97 | <segtitle>Installed library</segtitle>
|
---|
[f41fa81] | 98 | <segtitle>Installed directories</segtitle>
|
---|
[3f3931b0] | 99 |
|
---|
| 100 | <seglistitem>
|
---|
[9132fe4] | 101 | <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
|
---|
[f41fa81] | 102 | sysctl, tload, top, uptime, vmstat, w, and watch</seg>
|
---|
[75bab32] | 103 | <seg>libproc-2.so</seg>
|
---|
| 104 | <seg>/usr/include/procps and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
|
---|
[3f3931b0] | 105 | </seglistitem>
|
---|
| 106 | </segmentedlist>
|
---|
| 107 |
|
---|
| 108 | <variablelist>
|
---|
| 109 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 110 | <?dbfo list-presentation="list"?>
|
---|
| 111 | <?dbhtml list-presentation="table"?>
|
---|
| 112 |
|
---|
| 113 | <varlistentry id="free">
|
---|
| 114 | <term><command>free</command></term>
|
---|
| 115 | <listitem>
|
---|
| 116 | <para>Reports the amount of free and used memory (both physical and
|
---|
| 117 | swap memory) in the system</para>
|
---|
| 118 | <indexterm zone="ch-system-procps free">
|
---|
| 119 | <primary sortas="b-free">free</primary>
|
---|
| 120 | </indexterm>
|
---|
| 121 | </listitem>
|
---|
| 122 | </varlistentry>
|
---|
| 123 |
|
---|
| 124 | <varlistentry id="pgrep">
|
---|
| 125 | <term><command>pgrep</command></term>
|
---|
| 126 | <listitem>
|
---|
| 127 | <para>Looks up processes based on their name and other attributes</para>
|
---|
| 128 | <indexterm zone="ch-system-procps pgrep">
|
---|
| 129 | <primary sortas="b-pgrep">pgrep</primary>
|
---|
| 130 | </indexterm>
|
---|
| 131 | </listitem>
|
---|
| 132 | </varlistentry>
|
---|
| 133 |
|
---|
[9132fe4] | 134 | <varlistentry id="pidof">
|
---|
| 135 | <term><command>pidof</command></term>
|
---|
| 136 | <listitem>
|
---|
[1d6f204] | 137 | <para>Reports the PIDs of the given programs</para>
|
---|
[9132fe4] | 138 | <indexterm zone="ch-system-procps pidof">
|
---|
| 139 | <primary sortas="b-pidof">pidof</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
[3f3931b0] | 144 | <varlistentry id="pkill">
|
---|
| 145 | <term><command>pkill</command></term>
|
---|
| 146 | <listitem>
|
---|
| 147 | <para>Signals processes based on their name and other attributes</para>
|
---|
| 148 | <indexterm zone="ch-system-procps pkill">
|
---|
| 149 | <primary sortas="b-pkill">pkill</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 | </listitem>
|
---|
| 152 | </varlistentry>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="pmap">
|
---|
| 155 | <term><command>pmap</command></term>
|
---|
| 156 | <listitem>
|
---|
| 157 | <para>Reports the memory map of the given process</para>
|
---|
| 158 | <indexterm zone="ch-system-procps pmap">
|
---|
| 159 | <primary sortas="b-pmap">pmap</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 | </listitem>
|
---|
| 162 | </varlistentry>
|
---|
| 163 |
|
---|
| 164 | <varlistentry id="ps">
|
---|
| 165 | <term><command>ps</command></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para>Lists the current running processes</para>
|
---|
| 168 | <indexterm zone="ch-system-procps ps">
|
---|
| 169 | <primary sortas="b-ps">ps</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
[baf93f5] | 174 | <!-- <varlistentry id="pwait">
|
---|
[f9a430a] | 175 | <term><command>pwait</command></term>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para>Waits for a process to finish before executing.</para>
|
---|
| 178 | <indexterm zone="ch-system-procps pwait">
|
---|
| 179 | <primary sortas="b-pwait">pwait</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
[baf93f5] | 182 | </varlistentry> This program no longer exists;
|
---|
| 183 | it's already been removed from the Installed programs list. -->
|
---|
[f9a430a] | 184 |
|
---|
[2791a8e] | 185 | <varlistentry id="pwdx">
|
---|
| 186 | <term><command>pwdx</command></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>Reports the current working directory of a process</para>
|
---|
| 189 | <indexterm zone="ch-system-procps pwdx">
|
---|
| 190 | <primary sortas="b-pwdx">pwdx</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
[8bc46a5] | 195 | <varlistentry id="slabtop">
|
---|
| 196 | <term><command>slabtop</command></term>
|
---|
| 197 | <listitem>
|
---|
[0d84af1] | 198 | <para>Displays detailed kernel slab cache information in real time</para>
|
---|
[8bc46a5] | 199 | <indexterm zone="ch-system-procps slabtop">
|
---|
| 200 | <primary sortas="b-slabtop">slabtop</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
[3f3931b0] | 205 | <varlistentry id="sysctl">
|
---|
| 206 | <term><command>sysctl</command></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>Modifies kernel parameters at run time</para>
|
---|
| 209 | <indexterm zone="ch-system-procps sysctl">
|
---|
| 210 | <primary sortas="b-sysctl">sysctl</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="tload">
|
---|
| 216 | <term><command>tload</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>Prints a graph of the current system load average</para>
|
---|
| 219 | <indexterm zone="ch-system-procps tload">
|
---|
| 220 | <primary sortas="b-tload">tload</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="top">
|
---|
| 226 | <term><command>top</command></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>Displays a list of the most CPU intensive processes; it
|
---|
| 229 | provides an ongoing look at processor activity in real time</para>
|
---|
| 230 | <indexterm zone="ch-system-procps top">
|
---|
| 231 | <primary sortas="b-top">top</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="uptime">
|
---|
| 237 | <term><command>uptime</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>Reports how long the system has been running, how many users are
|
---|
| 240 | logged on, and the system load averages</para>
|
---|
| 241 | <indexterm zone="ch-system-procps uptime">
|
---|
| 242 | <primary sortas="b-uptime">uptime</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | <varlistentry id="vmstat">
|
---|
| 248 | <term><command>vmstat</command></term>
|
---|
| 249 | <listitem>
|
---|
| 250 | <para>Reports virtual memory statistics, giving information about
|
---|
| 251 | processes, memory, paging, block Input/Output (IO), traps, and CPU
|
---|
| 252 | activity</para>
|
---|
| 253 | <indexterm zone="ch-system-procps vmstat">
|
---|
| 254 | <primary sortas="b-vmstat">vmstat</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
| 259 | <varlistentry id="w">
|
---|
| 260 | <term><command>w</command></term>
|
---|
| 261 | <listitem>
|
---|
| 262 | <para>Shows which users are currently logged on, where, and since
|
---|
| 263 | when</para>
|
---|
| 264 | <indexterm zone="ch-system-procps w">
|
---|
| 265 | <primary sortas="b-w">w</primary>
|
---|
| 266 | </indexterm>
|
---|
| 267 | </listitem>
|
---|
| 268 | </varlistentry>
|
---|
| 269 |
|
---|
| 270 | <varlistentry id="watch">
|
---|
| 271 | <term><command>watch</command></term>
|
---|
| 272 | <listitem>
|
---|
| 273 | <para>Runs a given command repeatedly, displaying the first
|
---|
| 274 | screen-full of its output; this allows a user to watch the output
|
---|
| 275 | change over time</para>
|
---|
| 276 | <indexterm zone="ch-system-procps watch">
|
---|
| 277 | <primary sortas="b-watch">watch</primary>
|
---|
| 278 | </indexterm>
|
---|
| 279 | </listitem>
|
---|
| 280 | </varlistentry>
|
---|
| 281 |
|
---|
[75bab32] | 282 | <varlistentry id="libproc-2">
|
---|
| 283 | <term><filename class="libraryfile">libproc-2</filename></term>
|
---|
[3f3931b0] | 284 | <listitem>
|
---|
| 285 | <para>Contains the functions used by most programs in this
|
---|
| 286 | package</para>
|
---|
[75bab32] | 287 | <indexterm zone="ch-system-procps libproc-2">
|
---|
| 288 | <primary sortas="c-libproc-2">libproc-2</primary>
|
---|
[3f3931b0] | 289 | </indexterm>
|
---|
| 290 | </listitem>
|
---|
| 291 | </varlistentry>
|
---|
| 292 |
|
---|
| 293 | </variablelist>
|
---|
| 294 |
|
---|
| 295 | </sect2>
|
---|
[673b0d8] | 296 |
|
---|
| 297 | </sect1>
|
---|