source: chapter08/procps.xml@ 54948b7

11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since 54948b7 was 89c3f71, checked in by Bruce Dubbs <bdubbs@…>, 19 months ago

Tidy up some spacing issues

  • Property mode set to 100644
File size: 10.4 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
[89c3f71]45<screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
[79dc83f]46 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
[89c3f71]47 --disable-static \
[ec9f9d4]48 --disable-kill</userinput></screen>
[62b134d]49
[89c3f71]50<screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
[1118b17]51 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
[89c3f71]52 --disable-static \
53 --disable-kill \
[1118b17]54 --with-systemd</userinput></screen>
55
[ec9f9d4]56 <variablelist>
[6a156bab]57 <title>The meaning of the configure option:</title>
[3e80156]58
[ec9f9d4]59 <varlistentry>
60 <term><parameter>--disable-kill</parameter></term>
61 <listitem>
[f0800aa]62 <para>This switch disables building the <command>kill</command>
63 command that will be installed by the Util-linux package.</para>
[ec9f9d4]64 </listitem>
65 </varlistentry>
66 </variablelist>
[2ca8941]67
[58c4a18]68 <para>Compile the package:</para>
[73aedd1d]69
[0445a3d]70<screen><userinput remap="make">make</userinput></screen>
[ba82c18]71<!--
[2ca8941]72 <para>The test suite needs some custom modifications for LFS.
[67ce2a2]73 Remove a test that fails when scripting does not use a tty device and
74 fix two others.
[8445b68]75 To run the test suite, run the following commands:</para>
[ec9f9d4]76
[f873610]77<screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
[67ce2a2]78sed -i '/set tty/d' testsuite/pkill.test/pkill.exp
79rm testsuite/pgrep.test/pgrep.exp
[d45e041]80make check</userinput></screen>
[ba82c18]81-->
82 <para> To run the test suite, run:</para>
83
84<screen><userinput remap="test">make check</userinput></screen>
[2ca8941]85
[b0b37b6]86 <!-- It's because "free -v" shows "used" greater than "total", and
87 a negative "free" for "Comm" line. The "total" value is from
88 "CommitLimit" in /proc/meminfo, which is the limit for one process.
89 But the "used" value is from "Committed_AS" in the same file,
90 which is the total commited virtual memory space of all processes.
91 I'll make a report to upstream anyway. -->
[3d722b9]92 <para>One test named <filename>free with commit</filename>
[b0b37b6]93 may fail if some applications with a custom memory allocator (for
[80760d4]94 example, JVM and Web browsers) are running on the host distro.</para>
[d672ab7]95
[58c4a18]96 <para>Install the package:</para>
[73aedd1d]97
[0445a3d]98<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]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>
[75bab32]113 <seg>libproc-2.so</seg>
114 <seg>/usr/include/procps 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
[f9a430a]184 <varlistentry id="pwait">
185 <term><command>pwait</command></term>
186 <listitem>
187 <para>Waits for a process to finish before executing.</para>
188 <indexterm zone="ch-system-procps pwait">
189 <primary sortas="b-pwait">pwait</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
[2791a8e]194 <varlistentry id="pwdx">
195 <term><command>pwdx</command></term>
196 <listitem>
197 <para>Reports the current working directory of a process</para>
198 <indexterm zone="ch-system-procps pwdx">
199 <primary sortas="b-pwdx">pwdx</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
[8bc46a5]204 <varlistentry id="slabtop">
205 <term><command>slabtop</command></term>
206 <listitem>
[0d84af1]207 <para>Displays detailed kernel slab cache information in real time</para>
[8bc46a5]208 <indexterm zone="ch-system-procps slabtop">
209 <primary sortas="b-slabtop">slabtop</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
[3f3931b0]214 <varlistentry id="sysctl">
215 <term><command>sysctl</command></term>
216 <listitem>
217 <para>Modifies kernel parameters at run time</para>
218 <indexterm zone="ch-system-procps sysctl">
219 <primary sortas="b-sysctl">sysctl</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="tload">
225 <term><command>tload</command></term>
226 <listitem>
227 <para>Prints a graph of the current system load average</para>
228 <indexterm zone="ch-system-procps tload">
229 <primary sortas="b-tload">tload</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="top">
235 <term><command>top</command></term>
236 <listitem>
237 <para>Displays a list of the most CPU intensive processes; it
238 provides an ongoing look at processor activity in real time</para>
239 <indexterm zone="ch-system-procps top">
240 <primary sortas="b-top">top</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 <varlistentry id="uptime">
246 <term><command>uptime</command></term>
247 <listitem>
248 <para>Reports how long the system has been running, how many users are
249 logged on, and the system load averages</para>
250 <indexterm zone="ch-system-procps uptime">
251 <primary sortas="b-uptime">uptime</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 <varlistentry id="vmstat">
257 <term><command>vmstat</command></term>
258 <listitem>
259 <para>Reports virtual memory statistics, giving information about
260 processes, memory, paging, block Input/Output (IO), traps, and CPU
261 activity</para>
262 <indexterm zone="ch-system-procps vmstat">
263 <primary sortas="b-vmstat">vmstat</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="w">
269 <term><command>w</command></term>
270 <listitem>
271 <para>Shows which users are currently logged on, where, and since
272 when</para>
273 <indexterm zone="ch-system-procps w">
274 <primary sortas="b-w">w</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="watch">
280 <term><command>watch</command></term>
281 <listitem>
282 <para>Runs a given command repeatedly, displaying the first
283 screen-full of its output; this allows a user to watch the output
284 change over time</para>
285 <indexterm zone="ch-system-procps watch">
286 <primary sortas="b-watch">watch</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
[75bab32]291 <varlistentry id="libproc-2">
292 <term><filename class="libraryfile">libproc-2</filename></term>
[3f3931b0]293 <listitem>
294 <para>Contains the functions used by most programs in this
295 package</para>
[75bab32]296 <indexterm zone="ch-system-procps libproc-2">
297 <primary sortas="c-libproc-2">libproc-2</primary>
[3f3931b0]298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 </variablelist>
303
304 </sect2>
[673b0d8]305
306</sect1>
Note: See TracBrowser for help on using the repository browser.