source: clfs-sysroot/BOOK/final-system/common/procps.xml@ d960e57

Last change on this file since d960e57 was a3ac3a2, checked in by Maarten Lankhorst <m.b.lankhorst@…>, 18 years ago

procps tries to include host's ncurses, prevent this from happening

  • Property mode set to 100644
File size: 9.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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.html"?>
10
11 <title>Procps-&procps-version;</title>
12
13 <indexterm zone="ch-system-procps">
14 <primary sortas="a-Procps">Procps</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Procps package contains programs for monitoring
21 processes.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Procps</title>
27
28 <para os="s1">The following sed stops the Makefile from trying to install
29 binaries owned by root and prevents ldconfig from being
30 run.</para>
31
32<screen os="s2"><userinput>cp -v Makefile{,.orig}
33sed -e "/^install :=/s/--owner 0 --group 0//" \
34 -e "/^ldconfig :=/s/= ldconfig/=/" Makefile.orig &gt; Makefile</userinput></screen>
35
36 <para os="a">Compile the package:</para>
37
38<screen os="b"><userinput>make CPPFLAGS=""</userinput></screen>
39
40 <para os="c">Install the package:</para>
41
42<screen os="d"><userinput>make DESTDIR=${CLFS} lib64=lib install</userinput></screen>
43
44 <variablelist os="e">
45 <title>The meaning of the make options:</title>
46 <varlistentry>
47 <term><parameter>CPPFLAGS=""</parameter></term>
48 <listitem>
49 <para>By default, procps tries to include the host system
50 ncurses headers, so we have to disable that.</para>
51 </listitem>
52 </varlistentry>
53
54 <varlistentry>
55 <term><parameter>lib64=lib</parameter></term>
56 <listitem>
57 <para>By default, procps will attempt to install into
58 <filename class="directory">/lib64</filename> if it
59 exists, even if the package is not built 64-bit. This option
60 forces procps to install its libraries into
61 <filename class="directory">/lib</filename> instead.</para>
62 </listitem>
63 </varlistentry>
64 </variablelist>
65
66 </sect2>
67
68 <sect2 id="contents-procps" role="content">
69 <title>Contents of Procps</title>
70
71 <segmentedlist>
72 <segtitle>Installed programs</segtitle>
73 <segtitle>Installed library</segtitle>
74
75 <seglistitem>
76 <seg>free, kill, pgrep, pkill, pmap, ps, pwdx, skill, slabtop, snice, sysctl,
77 tload, top, uptime, vmstat, w, and watch</seg>
78 <seg>libproc.so</seg>
79 </seglistitem>
80 </segmentedlist>
81
82 <variablelist>
83 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
84 <?dbfo list-presentation="list"?>
85 <?dbhtml list-presentation="table"?>
86
87 <varlistentry id="free">
88 <term><command>free</command></term>
89 <listitem>
90 <para>Reports the amount of free and used memory (both physical and
91 swap memory) in the system</para>
92 <indexterm zone="ch-system-procps free">
93 <primary sortas="b-free">free</primary>
94 </indexterm>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry id="kill">
99 <term><command>kill</command></term>
100 <listitem>
101 <para>Sends signals to processes</para>
102 <indexterm zone="ch-system-procps kill">
103 <primary sortas="b-kill">kill</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry id="pgrep">
109 <term><command>pgrep</command></term>
110 <listitem>
111 <para>Looks up processes based on their name and other attributes</para>
112 <indexterm zone="ch-system-procps pgrep">
113 <primary sortas="b-pgrep">pgrep</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="pkill">
119 <term><command>pkill</command></term>
120 <listitem>
121 <para>Signals processes based on their name and other attributes</para>
122 <indexterm zone="ch-system-procps pkill">
123 <primary sortas="b-pkill">pkill</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry id="pmap">
129 <term><command>pmap</command></term>
130 <listitem>
131 <para>Reports the memory map of the given process</para>
132 <indexterm zone="ch-system-procps pmap">
133 <primary sortas="b-pmap">pmap</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry id="ps">
139 <term><command>ps</command></term>
140 <listitem>
141 <para>Lists the current running processes</para>
142 <indexterm zone="ch-system-procps ps">
143 <primary sortas="b-ps">ps</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="pwdx">
149 <term><command>pwdx</command></term>
150 <listitem>
151 <para>Reports the current working directory of a process</para>
152 <indexterm zone="ch-system-procps pwdx">
153 <primary sortas="b-pwdx">pwdx</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="skill">
159 <term><command>skill</command></term>
160 <listitem>
161 <para>Sends signals to processes matching the given criteria</para>
162 <indexterm zone="ch-system-procps skill">
163 <primary sortas="b-skill">skill</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="slabtop">
169 <term><command>slabtop</command></term>
170 <listitem>
171 <para>Displays detailed kernel slab cache information in real time</para>
172 <indexterm zone="ch-system-procps slabtop">
173 <primary sortas="b-slabtop">slabtop</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="snice">
179 <term><command>snice</command></term>
180 <listitem>
181 <para>Changes the scheduling priority of processes matching the given
182 criteria</para>
183 <indexterm zone="ch-system-procps snice">
184 <primary sortas="b-snice">snice</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="sysctl">
190 <term><command>sysctl</command></term>
191 <listitem>
192 <para>Modifies kernel parameters at run time</para>
193 <indexterm zone="ch-system-procps sysctl">
194 <primary sortas="b-sysctl">sysctl</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="tload">
200 <term><command>tload</command></term>
201 <listitem>
202 <para>Prints a graph of the current system load average</para>
203 <indexterm zone="ch-system-procps tload">
204 <primary sortas="b-tload">tload</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="top">
210 <term><command>top</command></term>
211 <listitem>
212 <para>Displays a list of the most CPU intensive processes; it
213 provides an ongoing look at processor activity in real time</para>
214 <indexterm zone="ch-system-procps top">
215 <primary sortas="b-top">top</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="uptime">
221 <term><command>uptime</command></term>
222 <listitem>
223 <para>Reports how long the system has been running, how many users are
224 logged on, and the system load averages</para>
225 <indexterm zone="ch-system-procps uptime">
226 <primary sortas="b-uptime">uptime</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="vmstat">
232 <term><command>vmstat</command></term>
233 <listitem>
234 <para>Reports virtual memory statistics, giving information about
235 processes, memory, paging, block Input/Output (IO), traps, and CPU
236 activity</para>
237 <indexterm zone="ch-system-procps vmstat">
238 <primary sortas="b-vmstat">vmstat</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="w">
244 <term><command>w</command></term>
245 <listitem>
246 <para>Shows which users are currently logged on, where, and since
247 when</para>
248 <indexterm zone="ch-system-procps w">
249 <primary sortas="b-w">w</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="watch">
255 <term><command>watch</command></term>
256 <listitem>
257 <para>Runs a given command repeatedly, displaying the first
258 screen-full of its output; this allows a user to watch the output
259 change over time</para>
260 <indexterm zone="ch-system-procps watch">
261 <primary sortas="b-watch">watch</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
265
266 <varlistentry id="libproc">
267 <term><filename class="libraryfile">libproc</filename></term>
268 <listitem>
269 <para>Contains the functions used by most programs in this
270 package</para>
271 <indexterm zone="ch-system-procps libproc">
272 <primary sortas="c-libproc">libproc</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 </variablelist>
278
279 </sect2>
280
281</sect1>
Note: See TracBrowser for help on using the repository browser.