source: chapter06/procps.xml@ ec9f9d4

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since ec9f9d4 was ec9f9d4, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Upgrade to Procps-ng-3.3.6

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

  • Property mode set to 100644
File size: 8.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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-&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-ch6-sbu;</seg>
34 <seg>&procps-ng-ch6-du;</seg>
35 </seglistitem>
36 </segmentedlist>
37
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Procps-ng</title>
42
43 <para>Now prepare procps-ng for compilation:</para>
44
45<screen><userinput remap="configure">./configure --prefix= \
46 --mandir=/usr/share/man \
47 --docdir=/usr/share/doc/$PROGRAM \
48 --disable-skill \
49 --disable-kill</userinput></screen>
50
51 <variablelist>
52 <title>The meaning of the configure options:</title>
53
54 <varlistentry>
55 <term><parameter>--disable-skill</parameter></term>
56 <listitem>
57 <para>This switch disables the obsolete and unportable
58 skill and snice commands.</para>
59 </listitem>
60 </varlistentry>
61 <varlistentry>
62 <term><parameter>--disable-kill</parameter></term>
63 <listitem>
64 <para>This switch disables building the kill command that
65 was installed in the util-linux package.</para>
66 </listitem>
67 </varlistentry>
68 </variablelist>
69
70 <para>Compile the package:</para>
71
72<screen><userinput remap="make">make</userinput></screen>
73
74 <para>The test suite needs some custom modifications for LFS.
75 The <command>which</command> is not available and the
76 <command>pmap</command> test does not match a newline character in
77 two tests. To run the test suite, run the following commands:</para>
78
79<screen><userinput remap="test">pushd testsuite
80 sed -i 's|exec which sleep|exec echo /tools/bin/sleep|' config/unix.exp
81 sed -i 's|pmap_initname\\\$|pmap_initname|' pmap.test/pmap.exp
82 make site.exp
83 DEJAGNU=global-conf.exp runtest
84popd</userinput></screen>
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
99 <seglistitem>
100 <seg>free, pgrep, pkill, pmap, ps, pwdx, slabtop,
101 sysctl, tload, top, uptime, vmstat, w, and, watch</seg>
102 <seg>libprocps.so</seg>
103 </seglistitem>
104 </segmentedlist>
105
106 <variablelist>
107 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
108 <?dbfo list-presentation="list"?>
109 <?dbhtml list-presentation="table"?>
110
111 <varlistentry id="free">
112 <term><command>free</command></term>
113 <listitem>
114 <para>Reports the amount of free and used memory (both physical and
115 swap memory) in the system</para>
116 <indexterm zone="ch-system-procps free">
117 <primary sortas="b-free">free</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="pgrep">
123 <term><command>pgrep</command></term>
124 <listitem>
125 <para>Looks up processes based on their name and other attributes</para>
126 <indexterm zone="ch-system-procps pgrep">
127 <primary sortas="b-pgrep">pgrep</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="pkill">
133 <term><command>pkill</command></term>
134 <listitem>
135 <para>Signals processes based on their name and other attributes</para>
136 <indexterm zone="ch-system-procps pkill">
137 <primary sortas="b-pkill">pkill</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry id="pmap">
143 <term><command>pmap</command></term>
144 <listitem>
145 <para>Reports the memory map of the given process</para>
146 <indexterm zone="ch-system-procps pmap">
147 <primary sortas="b-pmap">pmap</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="ps">
153 <term><command>ps</command></term>
154 <listitem>
155 <para>Lists the current running processes</para>
156 <indexterm zone="ch-system-procps ps">
157 <primary sortas="b-ps">ps</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="pwdx">
163 <term><command>pwdx</command></term>
164 <listitem>
165 <para>Reports the current working directory of a process</para>
166 <indexterm zone="ch-system-procps pwdx">
167 <primary sortas="b-pwdx">pwdx</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="slabtop">
173 <term><command>slabtop</command></term>
174 <listitem>
175 <para>Displays detailed kernel slap cache information in real time</para>
176 <indexterm zone="ch-system-procps slabtop">
177 <primary sortas="b-slabtop">slabtop</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="sysctl">
183 <term><command>sysctl</command></term>
184 <listitem>
185 <para>Modifies kernel parameters at run time</para>
186 <indexterm zone="ch-system-procps sysctl">
187 <primary sortas="b-sysctl">sysctl</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <varlistentry id="tload">
193 <term><command>tload</command></term>
194 <listitem>
195 <para>Prints a graph of the current system load average</para>
196 <indexterm zone="ch-system-procps tload">
197 <primary sortas="b-tload">tload</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="top">
203 <term><command>top</command></term>
204 <listitem>
205 <para>Displays a list of the most CPU intensive processes; it
206 provides an ongoing look at processor activity in real time</para>
207 <indexterm zone="ch-system-procps top">
208 <primary sortas="b-top">top</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry id="uptime">
214 <term><command>uptime</command></term>
215 <listitem>
216 <para>Reports how long the system has been running, how many users are
217 logged on, and the system load averages</para>
218 <indexterm zone="ch-system-procps uptime">
219 <primary sortas="b-uptime">uptime</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="vmstat">
225 <term><command>vmstat</command></term>
226 <listitem>
227 <para>Reports virtual memory statistics, giving information about
228 processes, memory, paging, block Input/Output (IO), traps, and CPU
229 activity</para>
230 <indexterm zone="ch-system-procps vmstat">
231 <primary sortas="b-vmstat">vmstat</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="w">
237 <term><command>w</command></term>
238 <listitem>
239 <para>Shows which users are currently logged on, where, and since
240 when</para>
241 <indexterm zone="ch-system-procps w">
242 <primary sortas="b-w">w</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="watch">
248 <term><command>watch</command></term>
249 <listitem>
250 <para>Runs a given command repeatedly, displaying the first
251 screen-full of its output; this allows a user to watch the output
252 change over time</para>
253 <indexterm zone="ch-system-procps watch">
254 <primary sortas="b-watch">watch</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="libprocps">
260 <term><filename class="libraryfile">libproc</filename></term>
261 <listitem>
262 <para>Contains the functions used by most programs in this
263 package</para>
264 <indexterm zone="ch-system-procps libprocps">
265 <primary sortas="c-libprocps">libprocps</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 </variablelist>
271
272 </sect2>
273
274</sect1>
Note: See TracBrowser for help on using the repository browser.