source: chapter08/procps.xml@ 1e639b2

10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 1e639b2 was 1e639b2, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Update descriptions of some new test failures

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

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