source: chapter06/procps.xml@ 9132fe4

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 7.5 7.6 7.7 7.8 7.9 8.0 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 9132fe4 was 9132fe4, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Update to procps-ng-3.3.9
Install non-essential programs from the xz package in /usr/bin.

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

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