source: chapter08/procps.xml@ 0566a05

multilib trunk xry111/loongarch
Last change on this file since 0566a05 was c2d820a, checked in by Xi Ruoyao <xry111@…>, 2 months ago

procps: Run test as tester

  • Property mode set to 100644
File size: 10.0 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 <!-- To editors: "pmap {X,XX} with unreachable process" tests don't work
74 as root. They may seem to pass due to some Tcl/Expect/DejaGNU
75 internal hazards with some "luck" though. -->
76 <para>To run the test suite, run:</para>
77
78<screen><userinput remap="test">su tester -c "PATH=$PATH make check"</userinput></screen>
79
80 <para>One test named
81 <literal>ps with output flag bsdtime,cputime,etime,etimes</literal>
82 is known to fail if the host kernel is not built with
83 <literal>CONFIG_BSD_PROCESS_ACCT</literal> enabled.</para>
84
85 <para>Install the package:</para>
86
87<screen><userinput remap="install">make install</userinput></screen>
88
89 </sect2>
90
91 <sect2 id="contents-procps" role="content">
92 <title>Contents of Procps-ng</title>
93
94 <segmentedlist>
95 <segtitle>Installed programs</segtitle>
96 <segtitle>Installed library</segtitle>
97 <segtitle>Installed directories</segtitle>
98
99 <seglistitem>
100 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
101 sysctl, tload, top, uptime, vmstat, w, and watch</seg>
102 <seg>libproc-2.so</seg>
103 <seg>/usr/include/procps and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
104 </seglistitem>
105 </segmentedlist>
106
107 <variablelist>
108 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
109 <?dbfo list-presentation="list"?>
110 <?dbhtml list-presentation="table"?>
111
112 <varlistentry id="free">
113 <term><command>free</command></term>
114 <listitem>
115 <para>Reports the amount of free and used memory (both physical and
116 swap memory) in the system</para>
117 <indexterm zone="ch-system-procps free">
118 <primary sortas="b-free">free</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="pgrep">
124 <term><command>pgrep</command></term>
125 <listitem>
126 <para>Looks up processes based on their name and other attributes</para>
127 <indexterm zone="ch-system-procps pgrep">
128 <primary sortas="b-pgrep">pgrep</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="pidof">
134 <term><command>pidof</command></term>
135 <listitem>
136 <para>Reports the PIDs of the given programs</para>
137 <indexterm zone="ch-system-procps pidof">
138 <primary sortas="b-pidof">pidof</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="pkill">
144 <term><command>pkill</command></term>
145 <listitem>
146 <para>Signals processes based on their name and other attributes</para>
147 <indexterm zone="ch-system-procps pkill">
148 <primary sortas="b-pkill">pkill</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry id="pmap">
154 <term><command>pmap</command></term>
155 <listitem>
156 <para>Reports the memory map of the given process</para>
157 <indexterm zone="ch-system-procps pmap">
158 <primary sortas="b-pmap">pmap</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="ps">
164 <term><command>ps</command></term>
165 <listitem>
166 <para>Lists the current running processes</para>
167 <indexterm zone="ch-system-procps ps">
168 <primary sortas="b-ps">ps</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <!-- <varlistentry id="pwait">
174 <term><command>pwait</command></term>
175 <listitem>
176 <para>Waits for a process to finish before executing.</para>
177 <indexterm zone="ch-system-procps pwait">
178 <primary sortas="b-pwait">pwait</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry> This program no longer exists;
182 it's already been removed from the Installed programs list. -->
183
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
194 <varlistentry id="slabtop">
195 <term><command>slabtop</command></term>
196 <listitem>
197 <para>Displays detailed kernel slab cache information in real time</para>
198 <indexterm zone="ch-system-procps slabtop">
199 <primary sortas="b-slabtop">slabtop</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
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
281 <varlistentry id="libproc-2">
282 <term><filename class="libraryfile">libproc-2</filename></term>
283 <listitem>
284 <para>Contains the functions used by most programs in this
285 package</para>
286 <indexterm zone="ch-system-procps libproc-2">
287 <primary sortas="c-libproc-2">libproc-2</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 </variablelist>
293
294 </sect2>
295
296</sect1>
Note: See TracBrowser for help on using the repository browser.