1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-procps" role="wrap">
|
---|
9 | <?dbhtml filename="procps-ng.html"?>
|
---|
10 |
|
---|
11 | <sect1info condition="script">
|
---|
12 | <productname>procps-ng</productname>
|
---|
13 | <productnumber>&procps-ng-version;</productnumber>
|
---|
14 | <address>&procps-ng-url;</address>
|
---|
15 | </sect1info>
|
---|
16 |
|
---|
17 | <title>Procps-ng-&procps-ng-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="ch-system-procps">
|
---|
20 | <primary sortas="a-Procps">Procps-ng</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect2 role="package">
|
---|
24 | <title/>
|
---|
25 |
|
---|
26 | <para>The Procps-ng package contains programs for monitoring processes.</para>
|
---|
27 |
|
---|
28 | <!-- TODO This note will probably not be needed at the next revision. -->
|
---|
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>
|
---|
35 |
|
---|
36 | <segmentedlist>
|
---|
37 | <segtitle>&buildtime;</segtitle>
|
---|
38 | <segtitle>&diskspace;</segtitle>
|
---|
39 |
|
---|
40 | <seglistitem>
|
---|
41 | <seg>&procps-ng-fin-sbu;</seg>
|
---|
42 | <seg>&procps-ng-fin-du;</seg>
|
---|
43 | </seglistitem>
|
---|
44 | </segmentedlist>
|
---|
45 |
|
---|
46 | </sect2>
|
---|
47 |
|
---|
48 | <sect2 role="installation">
|
---|
49 | <title>Installation of Procps-ng</title>
|
---|
50 |
|
---|
51 | <para>Prepare procps-ng for compilation:</para>
|
---|
52 |
|
---|
53 | <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
|
---|
54 | --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
|
---|
55 | --disable-static \
|
---|
56 | --disable-kill</userinput></screen>
|
---|
57 |
|
---|
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 |
|
---|
64 | <variablelist>
|
---|
65 | <title>The meaning of the configure option:</title>
|
---|
66 |
|
---|
67 | <varlistentry>
|
---|
68 | <term><parameter>--disable-kill</parameter></term>
|
---|
69 | <listitem>
|
---|
70 | <para>This switch disables building the <command>kill</command>
|
---|
71 | command that will be installed by the Util-linux package.</para>
|
---|
72 | </listitem>
|
---|
73 | </varlistentry>
|
---|
74 | </variablelist>
|
---|
75 |
|
---|
76 | <para>Compile the package:</para>
|
---|
77 |
|
---|
78 | <screen><userinput remap="make">make</userinput></screen>
|
---|
79 | <!--
|
---|
80 | <para>The test suite needs some custom modifications for LFS.
|
---|
81 | Remove a test that fails when scripting does not use a tty device and
|
---|
82 | fix two others.
|
---|
83 | To run the test suite, run the following commands:</para>
|
---|
84 |
|
---|
85 | <screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
|
---|
86 | sed -i '/set tty/d' testsuite/pkill.test/pkill.exp
|
---|
87 | rm testsuite/pgrep.test/pgrep.exp
|
---|
88 | make check</userinput></screen>
|
---|
89 | -->
|
---|
90 | <para> To run the test suite, run:</para>
|
---|
91 |
|
---|
92 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
93 |
|
---|
94 | <para>Five tests related to pkill are known to fail due to a problem
|
---|
95 | with tests that were not updated.</para>
|
---|
96 |
|
---|
97 | <para>Install the package:</para>
|
---|
98 |
|
---|
99 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
100 |
|
---|
101 | </sect2>
|
---|
102 |
|
---|
103 | <sect2 id="contents-procps" role="content">
|
---|
104 | <title>Contents of Procps-ng</title>
|
---|
105 |
|
---|
106 | <segmentedlist>
|
---|
107 | <segtitle>Installed programs</segtitle>
|
---|
108 | <segtitle>Installed library</segtitle>
|
---|
109 | <segtitle>Installed directories</segtitle>
|
---|
110 |
|
---|
111 | <seglistitem>
|
---|
112 | <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
|
---|
113 | sysctl, tload, top, uptime, vmstat, w, and watch</seg>
|
---|
114 | <seg>libprocps.so</seg>
|
---|
115 | <seg>/usr/include/proc and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
|
---|
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 |
|
---|
145 | <varlistentry id="pidof">
|
---|
146 | <term><command>pidof</command></term>
|
---|
147 | <listitem>
|
---|
148 | <para>Reports the PIDs of the given programs</para>
|
---|
149 | <indexterm zone="ch-system-procps pidof">
|
---|
150 | <primary sortas="b-pidof">pidof</primary>
|
---|
151 | </indexterm>
|
---|
152 | </listitem>
|
---|
153 | </varlistentry>
|
---|
154 |
|
---|
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 |
|
---|
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 |
|
---|
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 |
|
---|
205 | <varlistentry id="slabtop">
|
---|
206 | <term><command>slabtop</command></term>
|
---|
207 | <listitem>
|
---|
208 | <para>Displays detailed kernel slab cache information in real time</para>
|
---|
209 | <indexterm zone="ch-system-procps slabtop">
|
---|
210 | <primary sortas="b-slabtop">slabtop</primary>
|
---|
211 | </indexterm>
|
---|
212 | </listitem>
|
---|
213 | </varlistentry>
|
---|
214 |
|
---|
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 |
|
---|
292 | <varlistentry id="libprocps">
|
---|
293 | <term><filename class="libraryfile">libprocps</filename></term>
|
---|
294 | <listitem>
|
---|
295 | <para>Contains the functions used by most programs in this
|
---|
296 | package</para>
|
---|
297 | <indexterm zone="ch-system-procps libprocps">
|
---|
298 | <primary sortas="c-libprocps">libprocps</primary>
|
---|
299 | </indexterm>
|
---|
300 | </listitem>
|
---|
301 | </varlistentry>
|
---|
302 |
|
---|
303 | </variablelist>
|
---|
304 |
|
---|
305 | </sect2>
|
---|
306 |
|
---|
307 | </sect1>
|
---|