source: chapter08/procps.xml@ f9a430a

10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 ml-11.0 multilib trunk xry111/git-transition xry111/glibc-2.34 xry111/tester-nohack xry111/usr-move
Last change on this file since f9a430a was f9a430a, checked in by Douglas R. Reno <renodr@…>, 10 months ago

Add a command explanation for 'pwait'

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12135 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 10.6 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><para>This package extracts to the directory procps-3.3.17/,
30 not the expected procps-ng-3.3.17/.</para></note>
31
32 <segmentedlist>
33 <segtitle>&buildtime;</segtitle>
34 <segtitle>&diskspace;</segtitle>
35
36 <seglistitem>
37 <seg>&procps-ng-fin-sbu;</seg>
38 <seg>&procps-ng-fin-du;</seg>
39 </seglistitem>
40 </segmentedlist>
41
42 </sect2>
43
44 <sect2 role="installation">
45 <title>Installation of Procps-ng</title>
46
47 <para>Prepare procps-ng for compilation:</para>
48
49<screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
50 --exec-prefix= \
51 --libdir=/usr/lib \
52 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
53 --disable-static \
54 --disable-kill</userinput></screen>
55
56<screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
57 --exec-prefix= \
58 --libdir=/usr/lib \
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
86sed -i '/set tty/d' testsuite/pkill.test/pkill.exp
87rm testsuite/pgrep.test/pgrep.exp
88make 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>Four tests related to pkill are known ot 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<para>Finally, move essential libraries to a location that can be found if
102<filename class="directory">/usr</filename> is not mounted.</para>
103
104<screen><userinput remap="install">mv -v /usr/lib/libprocps.so.* /lib
105ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so</userinput></screen>
106
107 </sect2>
108
109 <sect2 id="contents-procps" role="content">
110 <title>Contents of Procps-ng</title>
111
112 <segmentedlist>
113 <segtitle>Installed programs</segtitle>
114 <segtitle>Installed library</segtitle>
115 <segtitle>Installed directories</segtitle>
116
117 <seglistitem>
118 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
119 sysctl, tload, top, uptime, vmstat, w, and watch</seg>
120 <seg>libprocps.so</seg>
121 <seg>/usr/include/proc and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
122 </seglistitem>
123 </segmentedlist>
124
125 <variablelist>
126 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
127 <?dbfo list-presentation="list"?>
128 <?dbhtml list-presentation="table"?>
129
130 <varlistentry id="free">
131 <term><command>free</command></term>
132 <listitem>
133 <para>Reports the amount of free and used memory (both physical and
134 swap memory) in the system</para>
135 <indexterm zone="ch-system-procps free">
136 <primary sortas="b-free">free</primary>
137 </indexterm>
138 </listitem>
139 </varlistentry>
140
141 <varlistentry id="pgrep">
142 <term><command>pgrep</command></term>
143 <listitem>
144 <para>Looks up processes based on their name and other attributes</para>
145 <indexterm zone="ch-system-procps pgrep">
146 <primary sortas="b-pgrep">pgrep</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 <varlistentry id="pidof">
152 <term><command>pidof</command></term>
153 <listitem>
154 <para>Reports the PIDs of the given programs</para>
155 <indexterm zone="ch-system-procps pidof">
156 <primary sortas="b-pidof">pidof</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="pkill">
162 <term><command>pkill</command></term>
163 <listitem>
164 <para>Signals processes based on their name and other attributes</para>
165 <indexterm zone="ch-system-procps pkill">
166 <primary sortas="b-pkill">pkill</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="pmap">
172 <term><command>pmap</command></term>
173 <listitem>
174 <para>Reports the memory map of the given process</para>
175 <indexterm zone="ch-system-procps pmap">
176 <primary sortas="b-pmap">pmap</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="ps">
182 <term><command>ps</command></term>
183 <listitem>
184 <para>Lists the current running processes</para>
185 <indexterm zone="ch-system-procps ps">
186 <primary sortas="b-ps">ps</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="pwait">
192 <term><command>pwait</command></term>
193 <listitem>
194 <para>Waits for a process to finish before executing.</para>
195 <indexterm zone="ch-system-procps pwait">
196 <primary sortas="b-pwait">pwait</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="pwdx">
202 <term><command>pwdx</command></term>
203 <listitem>
204 <para>Reports the current working directory of a process</para>
205 <indexterm zone="ch-system-procps pwdx">
206 <primary sortas="b-pwdx">pwdx</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="slabtop">
212 <term><command>slabtop</command></term>
213 <listitem>
214 <para>Displays detailed kernel slab cache information in real time</para>
215 <indexterm zone="ch-system-procps slabtop">
216 <primary sortas="b-slabtop">slabtop</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="sysctl">
222 <term><command>sysctl</command></term>
223 <listitem>
224 <para>Modifies kernel parameters at run time</para>
225 <indexterm zone="ch-system-procps sysctl">
226 <primary sortas="b-sysctl">sysctl</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="tload">
232 <term><command>tload</command></term>
233 <listitem>
234 <para>Prints a graph of the current system load average</para>
235 <indexterm zone="ch-system-procps tload">
236 <primary sortas="b-tload">tload</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="top">
242 <term><command>top</command></term>
243 <listitem>
244 <para>Displays a list of the most CPU intensive processes; it
245 provides an ongoing look at processor activity in real time</para>
246 <indexterm zone="ch-system-procps top">
247 <primary sortas="b-top">top</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="uptime">
253 <term><command>uptime</command></term>
254 <listitem>
255 <para>Reports how long the system has been running, how many users are
256 logged on, and the system load averages</para>
257 <indexterm zone="ch-system-procps uptime">
258 <primary sortas="b-uptime">uptime</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="vmstat">
264 <term><command>vmstat</command></term>
265 <listitem>
266 <para>Reports virtual memory statistics, giving information about
267 processes, memory, paging, block Input/Output (IO), traps, and CPU
268 activity</para>
269 <indexterm zone="ch-system-procps vmstat">
270 <primary sortas="b-vmstat">vmstat</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="w">
276 <term><command>w</command></term>
277 <listitem>
278 <para>Shows which users are currently logged on, where, and since
279 when</para>
280 <indexterm zone="ch-system-procps w">
281 <primary sortas="b-w">w</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="watch">
287 <term><command>watch</command></term>
288 <listitem>
289 <para>Runs a given command repeatedly, displaying the first
290 screen-full of its output; this allows a user to watch the output
291 change over time</para>
292 <indexterm zone="ch-system-procps watch">
293 <primary sortas="b-watch">watch</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 <varlistentry id="libprocps">
299 <term><filename class="libraryfile">libprocps</filename></term>
300 <listitem>
301 <para>Contains the functions used by most programs in this
302 package</para>
303 <indexterm zone="ch-system-procps libprocps">
304 <primary sortas="c-libprocps">libprocps</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 </variablelist>
310
311 </sect2>
312
313</sect1>
Note: See TracBrowser for help on using the repository browser.