source: chapter06/procps.xml@ d0da965a

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.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 d0da965a was d0da965a, checked in by Krejzi <krejzi@…>, 9 years ago

Fixed backslash alignments.

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

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