source: chapter08/procps.xml@ ba82c18

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 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 ba82c18 was ba82c18, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to gettext-0.21.
Update to binutils-2.35.
Update to gcc-10.2.0.
Update to check-0.15.1.
Update to bison-3.7.1.
Update to util-linux 2.36.0.
Update to libcap-2.42.
Update to linux-5.7.12.

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

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