source: chapter08/procps.xml@ f9a430a

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