source: chapter08/procps.xml@ 481b2e05

multilib
Last change on this file since 481b2e05 was 75bab32, checked in by Xi Ruoyao <xry111@…>, 2 years ago

procps: update library and include directory name

  • 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 \
[79dc83f]46 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
[d0da965a]47 --disable-static \
[ec9f9d4]48 --disable-kill</userinput></screen>
[62b134d]49
[1118b17]50<screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
51 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
52 --disable-static \
53 --disable-kill \
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
[1e639b2]86 <para>Five tests related to pkill are known to fail due to a problem
[164d38e]87 with tests that were not updated.</para>
[d672ab7]88
[58c4a18]89 <para>Install the package:</para>
[73aedd1d]90
[0445a3d]91<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]92
[3f3931b0]93 </sect2>
94
95 <sect2 id="contents-procps" role="content">
[ec9f9d4]96 <title>Contents of Procps-ng</title>
[3f3931b0]97
98 <segmentedlist>
99 <segtitle>Installed programs</segtitle>
100 <segtitle>Installed library</segtitle>
[f41fa81]101 <segtitle>Installed directories</segtitle>
[3f3931b0]102
103 <seglistitem>
[9132fe4]104 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
[f41fa81]105 sysctl, tload, top, uptime, vmstat, w, and watch</seg>
[75bab32]106 <seg>libproc-2.so</seg>
107 <seg>/usr/include/procps and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
[3f3931b0]108 </seglistitem>
109 </segmentedlist>
110
111 <variablelist>
112 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
113 <?dbfo list-presentation="list"?>
114 <?dbhtml list-presentation="table"?>
115
116 <varlistentry id="free">
117 <term><command>free</command></term>
118 <listitem>
119 <para>Reports the amount of free and used memory (both physical and
120 swap memory) in the system</para>
121 <indexterm zone="ch-system-procps free">
122 <primary sortas="b-free">free</primary>
123 </indexterm>
124 </listitem>
125 </varlistentry>
126
127 <varlistentry id="pgrep">
128 <term><command>pgrep</command></term>
129 <listitem>
130 <para>Looks up processes based on their name and other attributes</para>
131 <indexterm zone="ch-system-procps pgrep">
132 <primary sortas="b-pgrep">pgrep</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
[9132fe4]137 <varlistentry id="pidof">
138 <term><command>pidof</command></term>
139 <listitem>
[1d6f204]140 <para>Reports the PIDs of the given programs</para>
[9132fe4]141 <indexterm zone="ch-system-procps pidof">
142 <primary sortas="b-pidof">pidof</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
[3f3931b0]147 <varlistentry id="pkill">
148 <term><command>pkill</command></term>
149 <listitem>
150 <para>Signals processes based on their name and other attributes</para>
151 <indexterm zone="ch-system-procps pkill">
152 <primary sortas="b-pkill">pkill</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="pmap">
158 <term><command>pmap</command></term>
159 <listitem>
160 <para>Reports the memory map of the given process</para>
161 <indexterm zone="ch-system-procps pmap">
162 <primary sortas="b-pmap">pmap</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="ps">
168 <term><command>ps</command></term>
169 <listitem>
170 <para>Lists the current running processes</para>
171 <indexterm zone="ch-system-procps ps">
172 <primary sortas="b-ps">ps</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
[f9a430a]177 <varlistentry id="pwait">
178 <term><command>pwait</command></term>
179 <listitem>
180 <para>Waits for a process to finish before executing.</para>
181 <indexterm zone="ch-system-procps pwait">
182 <primary sortas="b-pwait">pwait</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
[2791a8e]187 <varlistentry id="pwdx">
188 <term><command>pwdx</command></term>
189 <listitem>
190 <para>Reports the current working directory of a process</para>
191 <indexterm zone="ch-system-procps pwdx">
192 <primary sortas="b-pwdx">pwdx</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
[8bc46a5]197 <varlistentry id="slabtop">
198 <term><command>slabtop</command></term>
199 <listitem>
[0d84af1]200 <para>Displays detailed kernel slab cache information in real time</para>
[8bc46a5]201 <indexterm zone="ch-system-procps slabtop">
202 <primary sortas="b-slabtop">slabtop</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
[3f3931b0]207 <varlistentry id="sysctl">
208 <term><command>sysctl</command></term>
209 <listitem>
210 <para>Modifies kernel parameters at run time</para>
211 <indexterm zone="ch-system-procps sysctl">
212 <primary sortas="b-sysctl">sysctl</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="tload">
218 <term><command>tload</command></term>
219 <listitem>
220 <para>Prints a graph of the current system load average</para>
221 <indexterm zone="ch-system-procps tload">
222 <primary sortas="b-tload">tload</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="top">
228 <term><command>top</command></term>
229 <listitem>
230 <para>Displays a list of the most CPU intensive processes; it
231 provides an ongoing look at processor activity in real time</para>
232 <indexterm zone="ch-system-procps top">
233 <primary sortas="b-top">top</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="uptime">
239 <term><command>uptime</command></term>
240 <listitem>
241 <para>Reports how long the system has been running, how many users are
242 logged on, and the system load averages</para>
243 <indexterm zone="ch-system-procps uptime">
244 <primary sortas="b-uptime">uptime</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="vmstat">
250 <term><command>vmstat</command></term>
251 <listitem>
252 <para>Reports virtual memory statistics, giving information about
253 processes, memory, paging, block Input/Output (IO), traps, and CPU
254 activity</para>
255 <indexterm zone="ch-system-procps vmstat">
256 <primary sortas="b-vmstat">vmstat</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="w">
262 <term><command>w</command></term>
263 <listitem>
264 <para>Shows which users are currently logged on, where, and since
265 when</para>
266 <indexterm zone="ch-system-procps w">
267 <primary sortas="b-w">w</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="watch">
273 <term><command>watch</command></term>
274 <listitem>
275 <para>Runs a given command repeatedly, displaying the first
276 screen-full of its output; this allows a user to watch the output
277 change over time</para>
278 <indexterm zone="ch-system-procps watch">
279 <primary sortas="b-watch">watch</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
[75bab32]284 <varlistentry id="libproc-2">
285 <term><filename class="libraryfile">libproc-2</filename></term>
[3f3931b0]286 <listitem>
287 <para>Contains the functions used by most programs in this
288 package</para>
[75bab32]289 <indexterm zone="ch-system-procps libproc-2">
290 <primary sortas="c-libproc-2">libproc-2</primary>
[3f3931b0]291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 </variablelist>
296
297 </sect2>
[673b0d8]298
299</sect1>
Note: See TracBrowser for help on using the repository browser.