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
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[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
[0b52f7ba]28 <!-- TODO This note will probably not be needed at the next revision. -->
[164d38e]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>
[0b52f7ba]35
[3f3931b0]36 <segmentedlist>
37 <segtitle>&buildtime;</segtitle>
38 <segtitle>&diskspace;</segtitle>
[5888299]39
[3f3931b0]40 <seglistitem>
[fb386e0]41 <seg>&procps-ng-fin-sbu;</seg>
42 <seg>&procps-ng-fin-du;</seg>
[3f3931b0]43 </seglistitem>
44 </segmentedlist>
[673b0d8]45
[3f3931b0]46 </sect2>
47
48 <sect2 role="installation">
[ec9f9d4]49 <title>Installation of Procps-ng</title>
[3f3931b0]50
[0d84af1]51 <para>Prepare procps-ng for compilation:</para>
[62b134d]52
[1118b17]53<screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
[d0da965a]54 --exec-prefix= \
55 --libdir=/usr/lib \
[79dc83f]56 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
[d0da965a]57 --disable-static \
[ec9f9d4]58 --disable-kill</userinput></screen>
[62b134d]59
[1118b17]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
[ec9f9d4]68 <variablelist>
[6a156bab]69 <title>The meaning of the configure option:</title>
[3e80156]70
[ec9f9d4]71 <varlistentry>
72 <term><parameter>--disable-kill</parameter></term>
73 <listitem>
[f0800aa]74 <para>This switch disables building the <command>kill</command>
75 command that will be installed by the Util-linux package.</para>
[ec9f9d4]76 </listitem>
77 </varlistentry>
78 </variablelist>
[2ca8941]79
[58c4a18]80 <para>Compile the package:</para>
[73aedd1d]81
[0445a3d]82<screen><userinput remap="make">make</userinput></screen>
[ba82c18]83<!--
[2ca8941]84 <para>The test suite needs some custom modifications for LFS.
[67ce2a2]85 Remove a test that fails when scripting does not use a tty device and
86 fix two others.
[8445b68]87 To run the test suite, run the following commands:</para>
[ec9f9d4]88
[f873610]89<screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
[67ce2a2]90sed -i '/set tty/d' testsuite/pkill.test/pkill.exp
91rm testsuite/pgrep.test/pgrep.exp
[d45e041]92make check</userinput></screen>
[ba82c18]93-->
94 <para> To run the test suite, run:</para>
95
96<screen><userinput remap="test">make check</userinput></screen>
[2ca8941]97
[1e639b2]98 <para>Five tests related to pkill are known to fail due to a problem
[164d38e]99 with tests that were not updated.</para>
[0b52f7ba]100
[58c4a18]101 <para>Install the package:</para>
[73aedd1d]102
[0445a3d]103<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]104
[164d38e]105 <para>Finally, move essential libraries to a location that can be found
106 if <filename class="directory">/usr</filename> is not mounted.</para>
[79dc83f]107
[f5e821c]108<screen><userinput remap="install">mv -v /usr/lib/libprocps.so.* /lib
[a326b1d7]109ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so</userinput></screen>
[79dc83f]110
[3f3931b0]111 </sect2>
112
113 <sect2 id="contents-procps" role="content">
[ec9f9d4]114 <title>Contents of Procps-ng</title>
[3f3931b0]115
116 <segmentedlist>
117 <segtitle>Installed programs</segtitle>
118 <segtitle>Installed library</segtitle>
[f41fa81]119 <segtitle>Installed directories</segtitle>
[3f3931b0]120
121 <seglistitem>
[9132fe4]122 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
[f41fa81]123 sysctl, tload, top, uptime, vmstat, w, and watch</seg>
[ec9f9d4]124 <seg>libprocps.so</seg>
[7bb9fda]125 <seg>/usr/include/proc and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
[3f3931b0]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
[9132fe4]155 <varlistentry id="pidof">
156 <term><command>pidof</command></term>
157 <listitem>
[1d6f204]158 <para>Reports the PIDs of the given programs</para>
[9132fe4]159 <indexterm zone="ch-system-procps pidof">
160 <primary sortas="b-pidof">pidof</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
[3f3931b0]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
[f9a430a]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
[2791a8e]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
[8bc46a5]215 <varlistentry id="slabtop">
216 <term><command>slabtop</command></term>
217 <listitem>
[0d84af1]218 <para>Displays detailed kernel slab cache information in real time</para>
[8bc46a5]219 <indexterm zone="ch-system-procps slabtop">
220 <primary sortas="b-slabtop">slabtop</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
[3f3931b0]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
[ec9f9d4]302 <varlistentry id="libprocps">
[9132fe4]303 <term><filename class="libraryfile">libprocps</filename></term>
[3f3931b0]304 <listitem>
305 <para>Contains the functions used by most programs in this
306 package</para>
[ec9f9d4]307 <indexterm zone="ch-system-procps libprocps">
308 <primary sortas="c-libprocps">libprocps</primary>
[3f3931b0]309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 </variablelist>
314
315 </sect2>
[673b0d8]316
317</sect1>
Note: See TracBrowser for help on using the repository browser.