source: chapter08/procps.xml@ b7dc3d8

xry111/usr-move
Last change on this file since b7dc3d8 was b7dc3d8, checked in by Xi Ruoyao <xry111@…>, 22 months ago

usr-move: bye bye mv /usr/foo/xxx /foo

  • Property mode set to 100644
File size: 10.4 KB
Line 
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 --exec-prefix= \
55 --libdir=/usr/lib \
56 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
57 --disable-static \
58 --disable-kill</userinput></screen>
59
60<screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
61 --exec-prefix= \
62 --libdir=/usr/lib \
63 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
64 --disable-static \
65 --disable-kill \
66 --with-systemd</userinput></screen>
67
68 <variablelist>
69 <title>The meaning of the configure option:</title>
70
71 <varlistentry>
72 <term><parameter>--disable-kill</parameter></term>
73 <listitem>
74 <para>This switch disables building the <command>kill</command>
75 command that will be installed by the Util-linux package.</para>
76 </listitem>
77 </varlistentry>
78 </variablelist>
79
80 <para>Compile the package:</para>
81
82<screen><userinput remap="make">make</userinput></screen>
83<!--
84 <para>The test suite needs some custom modifications for LFS.
85 Remove a test that fails when scripting does not use a tty device and
86 fix two others.
87 To run the test suite, run the following commands:</para>
88
89<screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
90sed -i '/set tty/d' testsuite/pkill.test/pkill.exp
91rm testsuite/pgrep.test/pgrep.exp
92make check</userinput></screen>
93-->
94 <para> To run the test suite, run:</para>
95
96<screen><userinput remap="test">make check</userinput></screen>
97
98 <para>Five tests related to pkill are known to fail due to a problem
99 with tests that were not updated.</para>
100
101 <para>Install the package:</para>
102
103<screen><userinput remap="install">make install</userinput></screen>
104
105 </sect2>
106
107 <sect2 id="contents-procps" role="content">
108 <title>Contents of Procps-ng</title>
109
110 <segmentedlist>
111 <segtitle>Installed programs</segtitle>
112 <segtitle>Installed library</segtitle>
113 <segtitle>Installed directories</segtitle>
114
115 <seglistitem>
116 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
117 sysctl, tload, top, uptime, vmstat, w, and watch</seg>
118 <seg>libprocps.so</seg>
119 <seg>/usr/include/proc and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
120 </seglistitem>
121 </segmentedlist>
122
123 <variablelist>
124 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
125 <?dbfo list-presentation="list"?>
126 <?dbhtml list-presentation="table"?>
127
128 <varlistentry id="free">
129 <term><command>free</command></term>
130 <listitem>
131 <para>Reports the amount of free and used memory (both physical and
132 swap memory) in the system</para>
133 <indexterm zone="ch-system-procps free">
134 <primary sortas="b-free">free</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="pgrep">
140 <term><command>pgrep</command></term>
141 <listitem>
142 <para>Looks up processes based on their name and other attributes</para>
143 <indexterm zone="ch-system-procps pgrep">
144 <primary sortas="b-pgrep">pgrep</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="pidof">
150 <term><command>pidof</command></term>
151 <listitem>
152 <para>Reports the PIDs of the given programs</para>
153 <indexterm zone="ch-system-procps pidof">
154 <primary sortas="b-pidof">pidof</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="pkill">
160 <term><command>pkill</command></term>
161 <listitem>
162 <para>Signals processes based on their name and other attributes</para>
163 <indexterm zone="ch-system-procps pkill">
164 <primary sortas="b-pkill">pkill</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="pmap">
170 <term><command>pmap</command></term>
171 <listitem>
172 <para>Reports the memory map of the given process</para>
173 <indexterm zone="ch-system-procps pmap">
174 <primary sortas="b-pmap">pmap</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="ps">
180 <term><command>ps</command></term>
181 <listitem>
182 <para>Lists the current running processes</para>
183 <indexterm zone="ch-system-procps ps">
184 <primary sortas="b-ps">ps</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="pwait">
190 <term><command>pwait</command></term>
191 <listitem>
192 <para>Waits for a process to finish before executing.</para>
193 <indexterm zone="ch-system-procps pwait">
194 <primary sortas="b-pwait">pwait</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="pwdx">
200 <term><command>pwdx</command></term>
201 <listitem>
202 <para>Reports the current working directory of a process</para>
203 <indexterm zone="ch-system-procps pwdx">
204 <primary sortas="b-pwdx">pwdx</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="slabtop">
210 <term><command>slabtop</command></term>
211 <listitem>
212 <para>Displays detailed kernel slab cache information in real time</para>
213 <indexterm zone="ch-system-procps slabtop">
214 <primary sortas="b-slabtop">slabtop</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="sysctl">
220 <term><command>sysctl</command></term>
221 <listitem>
222 <para>Modifies kernel parameters at run time</para>
223 <indexterm zone="ch-system-procps sysctl">
224 <primary sortas="b-sysctl">sysctl</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="tload">
230 <term><command>tload</command></term>
231 <listitem>
232 <para>Prints a graph of the current system load average</para>
233 <indexterm zone="ch-system-procps tload">
234 <primary sortas="b-tload">tload</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="top">
240 <term><command>top</command></term>
241 <listitem>
242 <para>Displays a list of the most CPU intensive processes; it
243 provides an ongoing look at processor activity in real time</para>
244 <indexterm zone="ch-system-procps top">
245 <primary sortas="b-top">top</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="uptime">
251 <term><command>uptime</command></term>
252 <listitem>
253 <para>Reports how long the system has been running, how many users are
254 logged on, and the system load averages</para>
255 <indexterm zone="ch-system-procps uptime">
256 <primary sortas="b-uptime">uptime</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="vmstat">
262 <term><command>vmstat</command></term>
263 <listitem>
264 <para>Reports virtual memory statistics, giving information about
265 processes, memory, paging, block Input/Output (IO), traps, and CPU
266 activity</para>
267 <indexterm zone="ch-system-procps vmstat">
268 <primary sortas="b-vmstat">vmstat</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="w">
274 <term><command>w</command></term>
275 <listitem>
276 <para>Shows which users are currently logged on, where, and since
277 when</para>
278 <indexterm zone="ch-system-procps w">
279 <primary sortas="b-w">w</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="watch">
285 <term><command>watch</command></term>
286 <listitem>
287 <para>Runs a given command repeatedly, displaying the first
288 screen-full of its output; this allows a user to watch the output
289 change over time</para>
290 <indexterm zone="ch-system-procps watch">
291 <primary sortas="b-watch">watch</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="libprocps">
297 <term><filename class="libraryfile">libprocps</filename></term>
298 <listitem>
299 <para>Contains the functions used by most programs in this
300 package</para>
301 <indexterm zone="ch-system-procps libprocps">
302 <primary sortas="c-libprocps">libprocps</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 </variablelist>
308
309 </sect2>
310
311</sect1>
Note: See TracBrowser for help on using the repository browser.