source: chapter08/procps.xml@ 0fd7f40b

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

procps: Run chown -R tester . before running the test as tester

I completely forgot this yesterday :(.

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