source: chapter08/procps.xml@ 3d722b9

11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng 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 3d722b9 was 3d722b9, checked in by Xi Ruoyao <xry111@…>, 2 years ago

procps: fix typo

How did I copied "FAIL:" along with the test name? :(

  • Property mode set to 100644
File size: 10.4 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-fin-sbu;</seg>
34 <seg>&procps-ng-fin-du;</seg>
35 </seglistitem>
36 </segmentedlist>
37
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Procps-ng</title>
42
43 <para>Prepare procps-ng for compilation:</para>
44
45<screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
46 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
47 --disable-static \
48 --disable-kill</userinput></screen>
49
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
56 <variablelist>
57 <title>The meaning of the configure option:</title>
58
59 <varlistentry>
60 <term><parameter>--disable-kill</parameter></term>
61 <listitem>
62 <para>This switch disables building the <command>kill</command>
63 command that will be installed by the Util-linux package.</para>
64 </listitem>
65 </varlistentry>
66 </variablelist>
67
68 <para>Compile the package:</para>
69
70<screen><userinput remap="make">make</userinput></screen>
71<!--
72 <para>The test suite needs some custom modifications for LFS.
73 Remove a test that fails when scripting does not use a tty device and
74 fix two others.
75 To run the test suite, run the following commands:</para>
76
77<screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
78sed -i '/set tty/d' testsuite/pkill.test/pkill.exp
79rm testsuite/pgrep.test/pgrep.exp
80make check</userinput></screen>
81-->
82 <para> To run the test suite, run:</para>
83
84<screen><userinput remap="test">make check</userinput></screen>
85
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. -->
92 <para>One test named <filename>free with commit</filename>
93 may fail if some applications with a custom memory allocator (for
94 example, JVM and Web browsers) are running on the host distro.</para>
95
96 <para>Install the package:</para>
97
98<screen><userinput remap="install">make install</userinput></screen>
99
100 </sect2>
101
102 <sect2 id="contents-procps" role="content">
103 <title>Contents of Procps-ng</title>
104
105 <segmentedlist>
106 <segtitle>Installed programs</segtitle>
107 <segtitle>Installed library</segtitle>
108 <segtitle>Installed directories</segtitle>
109
110 <seglistitem>
111 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
112 sysctl, tload, top, uptime, vmstat, w, and watch</seg>
113 <seg>libproc-2.so</seg>
114 <seg>/usr/include/procps and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
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
144 <varlistentry id="pidof">
145 <term><command>pidof</command></term>
146 <listitem>
147 <para>Reports the PIDs of the given programs</para>
148 <indexterm zone="ch-system-procps pidof">
149 <primary sortas="b-pidof">pidof</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
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
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
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
204 <varlistentry id="slabtop">
205 <term><command>slabtop</command></term>
206 <listitem>
207 <para>Displays detailed kernel slab cache information in real time</para>
208 <indexterm zone="ch-system-procps slabtop">
209 <primary sortas="b-slabtop">slabtop</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
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
291 <varlistentry id="libproc-2">
292 <term><filename class="libraryfile">libproc-2</filename></term>
293 <listitem>
294 <para>Contains the functions used by most programs in this
295 package</para>
296 <indexterm zone="ch-system-procps libproc-2">
297 <primary sortas="c-libproc-2">libproc-2</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 </variablelist>
303
304 </sect2>
305
306</sect1>
Note: See TracBrowser for help on using the repository browser.