source: chapter06/procps.xml@ 67ce2a2

10.0 10.0-rc1 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 8.1 8.2 8.3 8.4 9.0 9.1 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 67ce2a2 was 67ce2a2, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to linux-4.12.1.
Update to libpipeline-1.4.2.
Update to iproute2-4.12.0.
Fix the test procedure in make.
Fix the test procedure in procps-ng.
Update to glibc-2.25+adc7e06.

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

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