source: chapter06/procps.xml@ f77b95f

7.8-systemd 7.9-systemd
Last change on this file since f77b95f was f77b95f, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Update to binutils-2.25.1
Update to check-0.10.0
Update to procps-ng-3.3.11
Update to man-pages-4.02
Update to glibc-2.22
Update to linux-4.1.5
Update to tzdata2015f
XML Cleanups
Add a workaround for ncurses in Chapter 5 to not use mawk if found
Document some test suite failures

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

  • Property mode set to 100644
File size: 9.3 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
[0bf53444]45<screen><userinput remap="configure">./configure --prefix=/usr \
46 --exec-prefix= \
47 --libdir=/usr/lib \
[79dc83f]48 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
[0bf53444]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
[f77b95f]79<para>Finally, move essential libraries to a location that can be found if
[79dc83f]80<filename class="directory">/usr</filename> is not mounted.</para>
81
[f77b95f]82<screen><userinput remap="install">mv -v /usr/lib/libprocps.so.* /lib
[112db9d]83ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so</userinput></screen>
[79dc83f]84
[3f3931b0]85 </sect2>
86
87 <sect2 id="contents-procps" role="content">
[ec9f9d4]88 <title>Contents of Procps-ng</title>
[3f3931b0]89
90 <segmentedlist>
91 <segtitle>Installed programs</segtitle>
92 <segtitle>Installed library</segtitle>
[c49662d5]93 <segtitle>Installed directories</segtitle>
[3f3931b0]94
95 <seglistitem>
[112db9d]96 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop,
[c49662d5]97 sysctl, tload, top, uptime, vmstat, w, and watch</seg>
[ec9f9d4]98 <seg>libprocps.so</seg>
[b5734891]99 <seg>/usr/include/proc and /usr/share/doc/procps-ng-&procps-ng-version;</seg>
[3f3931b0]100 </seglistitem>
101 </segmentedlist>
102
103 <variablelist>
104 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
105 <?dbfo list-presentation="list"?>
106 <?dbhtml list-presentation="table"?>
107
108 <varlistentry id="free">
109 <term><command>free</command></term>
110 <listitem>
111 <para>Reports the amount of free and used memory (both physical and
112 swap memory) in the system</para>
113 <indexterm zone="ch-system-procps free">
114 <primary sortas="b-free">free</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="pgrep">
120 <term><command>pgrep</command></term>
121 <listitem>
122 <para>Looks up processes based on their name and other attributes</para>
123 <indexterm zone="ch-system-procps pgrep">
124 <primary sortas="b-pgrep">pgrep</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
[112db9d]129 <varlistentry id="pidof">
130 <term><command>pidof</command></term>
131 <listitem>
[63e8d0a]132 <para>Reports the PIDs of the given programs</para>
[112db9d]133 <indexterm zone="ch-system-procps pidof">
134 <primary sortas="b-pidof">pidof</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
[3f3931b0]139 <varlistentry id="pkill">
140 <term><command>pkill</command></term>
141 <listitem>
142 <para>Signals processes based on their name and other attributes</para>
143 <indexterm zone="ch-system-procps pkill">
144 <primary sortas="b-pkill">pkill</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="pmap">
150 <term><command>pmap</command></term>
151 <listitem>
152 <para>Reports the memory map of the given process</para>
153 <indexterm zone="ch-system-procps pmap">
154 <primary sortas="b-pmap">pmap</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="ps">
160 <term><command>ps</command></term>
161 <listitem>
162 <para>Lists the current running processes</para>
163 <indexterm zone="ch-system-procps ps">
164 <primary sortas="b-ps">ps</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
[2791a8e]169 <varlistentry id="pwdx">
170 <term><command>pwdx</command></term>
171 <listitem>
172 <para>Reports the current working directory of a process</para>
173 <indexterm zone="ch-system-procps pwdx">
174 <primary sortas="b-pwdx">pwdx</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
[8bc46a5]179 <varlistentry id="slabtop">
180 <term><command>slabtop</command></term>
181 <listitem>
182 <para>Displays detailed kernel slap cache information in real time</para>
183 <indexterm zone="ch-system-procps slabtop">
184 <primary sortas="b-slabtop">slabtop</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
[3f3931b0]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
[ec9f9d4]266 <varlistentry id="libprocps">
[112db9d]267 <term><filename class="libraryfile">libprocps</filename></term>
[3f3931b0]268 <listitem>
269 <para>Contains the functions used by most programs in this
270 package</para>
[ec9f9d4]271 <indexterm zone="ch-system-procps libprocps">
272 <primary sortas="c-libprocps">libprocps</primary>
[3f3931b0]273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 </variablelist>
278
279 </sect2>
[673b0d8]280
281</sect1>
Note: See TracBrowser for help on using the repository browser.