source: chapter06/procps.xml@ 4a0bb54

7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 4a0bb54 was cc440d3b, checked in by Krejzi <krejzi@…>, 10 years ago

Merged trunk.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10681 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 9.1 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[3f3931b0]7
[81fd230]8<sect1 id="ch-system-procps" role="wrap">
[ec9f9d4]9 <?dbhtml filename="procps-ng.html"?>
[3f3931b0]10
[e747759]11 <sect1info condition="script">
[ec9f9d4]12 <productname>procps-ng</productname>
13 <productnumber>&procps-ng-version;</productnumber>
14 <address>&procps-ng-url;</address>
[e747759]15 </sect1info>
16
[63d6655]17 <title>Procps-ng-&procps-ng-version;</title>
[3f3931b0]18
19 <indexterm zone="ch-system-procps">
[ec9f9d4]20 <primary sortas="a-Procps">Procps-ng</primary>
[3f3931b0]21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
[673b0d8]25
[ec9f9d4]26 <para>The Procps-ng package contains programs for monitoring processes.</para>
[6370fa6]27
[3f3931b0]28 <segmentedlist>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
[5888299]31
[3f3931b0]32 <seglistitem>
[ec9f9d4]33 <seg>&procps-ng-ch6-sbu;</seg>
34 <seg>&procps-ng-ch6-du;</seg>
[3f3931b0]35 </seglistitem>
36 </segmentedlist>
[673b0d8]37
[3f3931b0]38 </sect2>
39
40 <sect2 role="installation">
[ec9f9d4]41 <title>Installation of Procps-ng</title>
[3f3931b0]42
[ec9f9d4]43 <para>Now prepare procps-ng for compilation:</para>
[62b134d]44
[79dc83f]45<screen><userinput remap="configure">./configure --prefix=/usr \
46 --exec-prefix= \
47 --libdir=/usr/lib \
48 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
49 --disable-static \
[ec9f9d4]50 --disable-kill</userinput></screen>
[62b134d]51
[ec9f9d4]52 <variablelist>
53 <title>The meaning of the configure options:</title>
[3e80156]54
[ec9f9d4]55 <varlistentry>
56 <term><parameter>--disable-kill</parameter></term>
57 <listitem>
[cc440d3b]58 <para>This switch disables building the <command>kill</command>
59 command that will be installed by the Util-linux package.</para>
[ec9f9d4]60 </listitem>
61 </varlistentry>
62 </variablelist>
[ce5ebe1]63
[58c4a18]64 <para>Compile the package:</para>
[73aedd1d]65
[0445a3d]66<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]67
[ce5ebe1]68 <para>The test suite needs some custom modifications for LFS.
[3711cc6]69 Remove the test that fails when scripting does not use a tty device.
[50420218]70 To run the test suite, run the following commands:</para>
71
[3711cc6]72<screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
[50420218]73make check</userinput></screen>
[ce5ebe1]74
[58c4a18]75 <para>Install the package:</para>
[73aedd1d]76
[0445a3d]77<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]78
[112db9d]79<para>Finally, move essential files to a location that can be found if
[79dc83f]80<filename class="directory">/usr</filename> is not mounted.</para>
81
[112db9d]82<screen><userinput remap="install">mv -v /usr/bin/pidof /bin
83mv -v /usr/lib/libprocps.so.* /lib
84ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so</userinput></screen>
[79dc83f]85
[3f3931b0]86 </sect2>
87
88 <sect2 id="contents-procps" role="content">
[ec9f9d4]89 <title>Contents of Procps-ng</title>
[3f3931b0]90
91 <segmentedlist>
92 <segtitle>Installed programs</segtitle>
93 <segtitle>Installed library</segtitle>
94
95 <seglistitem>
[112db9d]96 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
[ec9f9d4]97 sysctl, tload, top, uptime, vmstat, w, and, watch</seg>
98 <seg>libprocps.so</seg>
[3f3931b0]99 </seglistitem>
100 </segmentedlist>
101
102 <variablelist>
103 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
104 <?dbfo list-presentation="list"?>
105 <?dbhtml list-presentation="table"?>
106
107 <varlistentry id="free">
108 <term><command>free</command></term>
109 <listitem>
110 <para>Reports the amount of free and used memory (both physical and
111 swap memory) in the system</para>
112 <indexterm zone="ch-system-procps free">
113 <primary sortas="b-free">free</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="pgrep">
119 <term><command>pgrep</command></term>
120 <listitem>
121 <para>Looks up processes based on their name and other attributes</para>
122 <indexterm zone="ch-system-procps pgrep">
123 <primary sortas="b-pgrep">pgrep</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
[112db9d]128 <varlistentry id="pidof">
129 <term><command>pidof</command></term>
130 <listitem>
[63e8d0a]131 <para>Reports the PIDs of the given programs</para>
[112db9d]132 <indexterm zone="ch-system-procps pidof">
133 <primary sortas="b-pidof">pidof</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
[3f3931b0]138 <varlistentry id="pkill">
139 <term><command>pkill</command></term>
140 <listitem>
141 <para>Signals processes based on their name and other attributes</para>
142 <indexterm zone="ch-system-procps pkill">
143 <primary sortas="b-pkill">pkill</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="pmap">
149 <term><command>pmap</command></term>
150 <listitem>
151 <para>Reports the memory map of the given process</para>
152 <indexterm zone="ch-system-procps pmap">
153 <primary sortas="b-pmap">pmap</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="ps">
159 <term><command>ps</command></term>
160 <listitem>
161 <para>Lists the current running processes</para>
162 <indexterm zone="ch-system-procps ps">
163 <primary sortas="b-ps">ps</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
[2791a8e]168 <varlistentry id="pwdx">
169 <term><command>pwdx</command></term>
170 <listitem>
171 <para>Reports the current working directory of a process</para>
172 <indexterm zone="ch-system-procps pwdx">
173 <primary sortas="b-pwdx">pwdx</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
[8bc46a5]178 <varlistentry id="slabtop">
179 <term><command>slabtop</command></term>
180 <listitem>
181 <para>Displays detailed kernel slap cache information in real time</para>
182 <indexterm zone="ch-system-procps slabtop">
183 <primary sortas="b-slabtop">slabtop</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
[3f3931b0]188 <varlistentry id="sysctl">
189 <term><command>sysctl</command></term>
190 <listitem>
191 <para>Modifies kernel parameters at run time</para>
192 <indexterm zone="ch-system-procps sysctl">
193 <primary sortas="b-sysctl">sysctl</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="tload">
199 <term><command>tload</command></term>
200 <listitem>
201 <para>Prints a graph of the current system load average</para>
202 <indexterm zone="ch-system-procps tload">
203 <primary sortas="b-tload">tload</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="top">
209 <term><command>top</command></term>
210 <listitem>
211 <para>Displays a list of the most CPU intensive processes; it
212 provides an ongoing look at processor activity in real time</para>
213 <indexterm zone="ch-system-procps top">
214 <primary sortas="b-top">top</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="uptime">
220 <term><command>uptime</command></term>
221 <listitem>
222 <para>Reports how long the system has been running, how many users are
223 logged on, and the system load averages</para>
224 <indexterm zone="ch-system-procps uptime">
225 <primary sortas="b-uptime">uptime</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="vmstat">
231 <term><command>vmstat</command></term>
232 <listitem>
233 <para>Reports virtual memory statistics, giving information about
234 processes, memory, paging, block Input/Output (IO), traps, and CPU
235 activity</para>
236 <indexterm zone="ch-system-procps vmstat">
237 <primary sortas="b-vmstat">vmstat</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="w">
243 <term><command>w</command></term>
244 <listitem>
245 <para>Shows which users are currently logged on, where, and since
246 when</para>
247 <indexterm zone="ch-system-procps w">
248 <primary sortas="b-w">w</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 <varlistentry id="watch">
254 <term><command>watch</command></term>
255 <listitem>
256 <para>Runs a given command repeatedly, displaying the first
257 screen-full of its output; this allows a user to watch the output
258 change over time</para>
259 <indexterm zone="ch-system-procps watch">
260 <primary sortas="b-watch">watch</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
[ec9f9d4]265 <varlistentry id="libprocps">
[112db9d]266 <term><filename class="libraryfile">libprocps</filename></term>
[3f3931b0]267 <listitem>
268 <para>Contains the functions used by most programs in this
269 package</para>
[ec9f9d4]270 <indexterm zone="ch-system-procps libprocps">
271 <primary sortas="c-libprocps">libprocps</primary>
[3f3931b0]272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 </variablelist>
277
278 </sect2>
[673b0d8]279
280</sect1>
Note: See TracBrowser for help on using the repository browser.