source: chapter08/procps.xml@ 283f7119

12.1 12.2 12.2-rc1 multilib trunk xry111/arm64 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.1 xry111/mips64el
Last change on this file since 283f7119 was ed38e9d, checked in by Xi Ruoyao <xry111@…>, 6 months ago

procps: Be more specific about the known ps test failure

  • Property mode set to 100644
File size: 9.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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; it will be installed from the Util-linux package.</para>
64 </listitem>
65 </varlistentry>
66 </variablelist>
67
68 <para>Compile the package:</para>
69
70<screen revision='sysv'><userinput remap="make">make</userinput></screen>
71<screen revision='systemd'><userinput remap="make">make src_w_LDADD='$(LDADD) -lsystemd'</userinput></screen>
72
73 <para> To run the test suite, run:</para>
74
75<screen><userinput remap="test">make check</userinput></screen>
76
77 <para>One test named
78 <literal>ps with output flag bsdtime,cputime,etime,etimes</literal>
79 is known to fail if the host kernel is not built with
80 <literal>CONFIG_BSD_PROCESS_ACCT</literal> enabled.</para>
81
82 <para>Install the package:</para>
83
84<screen><userinput remap="install">make install</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>libproc-2.so</seg>
100 <seg>/usr/include/procps 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="pwait">
171 <term><command>pwait</command></term>
172 <listitem>
173 <para>Waits for a process to finish before executing.</para>
174 <indexterm zone="ch-system-procps pwait">
175 <primary sortas="b-pwait">pwait</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry> This program no longer exists;
179 it's already been removed from the Installed programs list. -->
180
181 <varlistentry id="pwdx">
182 <term><command>pwdx</command></term>
183 <listitem>
184 <para>Reports the current working directory of a process</para>
185 <indexterm zone="ch-system-procps pwdx">
186 <primary sortas="b-pwdx">pwdx</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="slabtop">
192 <term><command>slabtop</command></term>
193 <listitem>
194 <para>Displays detailed kernel slab cache information in real time</para>
195 <indexterm zone="ch-system-procps slabtop">
196 <primary sortas="b-slabtop">slabtop</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="sysctl">
202 <term><command>sysctl</command></term>
203 <listitem>
204 <para>Modifies kernel parameters at run time</para>
205 <indexterm zone="ch-system-procps sysctl">
206 <primary sortas="b-sysctl">sysctl</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="tload">
212 <term><command>tload</command></term>
213 <listitem>
214 <para>Prints a graph of the current system load average</para>
215 <indexterm zone="ch-system-procps tload">
216 <primary sortas="b-tload">tload</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="top">
222 <term><command>top</command></term>
223 <listitem>
224 <para>Displays a list of the most CPU intensive processes; it
225 provides an ongoing look at processor activity in real time</para>
226 <indexterm zone="ch-system-procps top">
227 <primary sortas="b-top">top</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="uptime">
233 <term><command>uptime</command></term>
234 <listitem>
235 <para>Reports how long the system has been running, how many users are
236 logged on, and the system load averages</para>
237 <indexterm zone="ch-system-procps uptime">
238 <primary sortas="b-uptime">uptime</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="vmstat">
244 <term><command>vmstat</command></term>
245 <listitem>
246 <para>Reports virtual memory statistics, giving information about
247 processes, memory, paging, block Input/Output (IO), traps, and CPU
248 activity</para>
249 <indexterm zone="ch-system-procps vmstat">
250 <primary sortas="b-vmstat">vmstat</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="w">
256 <term><command>w</command></term>
257 <listitem>
258 <para>Shows which users are currently logged on, where, and since
259 when</para>
260 <indexterm zone="ch-system-procps w">
261 <primary sortas="b-w">w</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
265
266 <varlistentry id="watch">
267 <term><command>watch</command></term>
268 <listitem>
269 <para>Runs a given command repeatedly, displaying the first
270 screen-full of its output; this allows a user to watch the output
271 change over time</para>
272 <indexterm zone="ch-system-procps watch">
273 <primary sortas="b-watch">watch</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 <varlistentry id="libproc-2">
279 <term><filename class="libraryfile">libproc-2</filename></term>
280 <listitem>
281 <para>Contains the functions used by most programs in this
282 package</para>
283 <indexterm zone="ch-system-procps libproc-2">
284 <primary sortas="c-libproc-2">libproc-2</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 </variablelist>
290
291 </sect2>
292
293</sect1>
Note: See TracBrowser for help on using the repository browser.