source: chapter06/procps.xml@ d9aaf3d

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 d9aaf3d was d9aaf3d, checked in by Matthew Burgess <matthew@…>, 11 years ago

Kill is installed by Util-Linux now, not Procps. Thanks to Chris Staub for the patch. Fixes #3229.

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

  • Property mode set to 100644
File size: 8.8 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.html"?>
10
11 <sect1info condition="script">
12 <productname>procps</productname>
13 <productnumber>&procps-version;</productnumber>
14 <address>&procps-url;</address>
15 </sect1info>
16
17 <title>Procps-&procps-version;</title>
18
19 <indexterm zone="ch-system-procps">
20 <primary sortas="a-Procps">Procps</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Procps package contains programs for monitoring processes.</para>
27
28 <segmentedlist>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
31
32 <seglistitem>
33 <seg>&procps-ch6-sbu;</seg>
34 <seg>&procps-ch6-du;</seg>
35 </seglistitem>
36 </segmentedlist>
37
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Procps</title>
42
43 <para>Apply a patch to prevent an error message from being displayed when
44 determining the kernel clock tick rate:</para>
45
46<screen><userinput remap="pre">patch -Np1 -i ../&procps-hz_fixes-patch;</userinput></screen>
47
48 <para>Apply a patch to fix a unicode related issue in the
49 <command>watch</command> program:</para>
50
51<screen><userinput remap="pre">patch -Np1 -i ../&procps-watch-patch;</userinput></screen>
52
53 <para>Do not install the kill program because it was installed by util-linux.
54 Also fix a bug in the Makefile, which prevents procps from building with
55 make-&make-version;:</para>
56
57<screen><userinput remap="pre">sed -i -e 's@\*/module.mk@proc/module.mk ps/module.mk@' \
58 -e 's@^#SKIP@SKIP@' Makefile</userinput></screen>
59
60 <para>Compile the package:</para>
61
62<screen><userinput remap="make">make</userinput></screen>
63
64 <para>This package does not come with a test suite.</para>
65
66 <para>Install the package:</para>
67
68<screen><userinput remap="install">make install</userinput></screen>
69
70 </sect2>
71
72 <sect2 id="contents-procps" role="content">
73 <title>Contents of Procps</title>
74
75 <segmentedlist>
76 <segtitle>Installed programs</segtitle>
77 <segtitle>Installed library</segtitle>
78
79 <seglistitem>
80 <seg>free, pgrep, pkill, pmap, ps, pwdx, skill, slabtop, snice,
81 sysctl, tload, top, uptime, vmstat, w, and watch</seg>
82 <seg>libproc.so</seg>
83 </seglistitem>
84 </segmentedlist>
85
86 <variablelist>
87 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
88 <?dbfo list-presentation="list"?>
89 <?dbhtml list-presentation="table"?>
90
91 <varlistentry id="free">
92 <term><command>free</command></term>
93 <listitem>
94 <para>Reports the amount of free and used memory (both physical and
95 swap memory) in the system</para>
96 <indexterm zone="ch-system-procps free">
97 <primary sortas="b-free">free</primary>
98 </indexterm>
99 </listitem>
100 </varlistentry>
101
102 <varlistentry id="pgrep">
103 <term><command>pgrep</command></term>
104 <listitem>
105 <para>Looks up processes based on their name and other attributes</para>
106 <indexterm zone="ch-system-procps pgrep">
107 <primary sortas="b-pgrep">pgrep</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry id="pkill">
113 <term><command>pkill</command></term>
114 <listitem>
115 <para>Signals processes based on their name and other attributes</para>
116 <indexterm zone="ch-system-procps pkill">
117 <primary sortas="b-pkill">pkill</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="pmap">
123 <term><command>pmap</command></term>
124 <listitem>
125 <para>Reports the memory map of the given process</para>
126 <indexterm zone="ch-system-procps pmap">
127 <primary sortas="b-pmap">pmap</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="ps">
133 <term><command>ps</command></term>
134 <listitem>
135 <para>Lists the current running processes</para>
136 <indexterm zone="ch-system-procps ps">
137 <primary sortas="b-ps">ps</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry id="pwdx">
143 <term><command>pwdx</command></term>
144 <listitem>
145 <para>Reports the current working directory of a process</para>
146 <indexterm zone="ch-system-procps pwdx">
147 <primary sortas="b-pwdx">pwdx</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="skill">
153 <term><command>skill</command></term>
154 <listitem>
155 <para>Sends signals to processes matching the given criteria</para>
156 <indexterm zone="ch-system-procps skill">
157 <primary sortas="b-skill">skill</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="slabtop">
163 <term><command>slabtop</command></term>
164 <listitem>
165 <para>Displays detailed kernel slap cache information in real time</para>
166 <indexterm zone="ch-system-procps slabtop">
167 <primary sortas="b-slabtop">slabtop</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="snice">
173 <term><command>snice</command></term>
174 <listitem>
175 <para>Changes the scheduling priority of processes matching the given
176 criteria</para>
177 <indexterm zone="ch-system-procps snice">
178 <primary sortas="b-snice">snice</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="sysctl">
184 <term><command>sysctl</command></term>
185 <listitem>
186 <para>Modifies kernel parameters at run time</para>
187 <indexterm zone="ch-system-procps sysctl">
188 <primary sortas="b-sysctl">sysctl</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="tload">
194 <term><command>tload</command></term>
195 <listitem>
196 <para>Prints a graph of the current system load average</para>
197 <indexterm zone="ch-system-procps tload">
198 <primary sortas="b-tload">tload</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 <varlistentry id="top">
204 <term><command>top</command></term>
205 <listitem>
206 <para>Displays a list of the most CPU intensive processes; it
207 provides an ongoing look at processor activity in real time</para>
208 <indexterm zone="ch-system-procps top">
209 <primary sortas="b-top">top</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="uptime">
215 <term><command>uptime</command></term>
216 <listitem>
217 <para>Reports how long the system has been running, how many users are
218 logged on, and the system load averages</para>
219 <indexterm zone="ch-system-procps uptime">
220 <primary sortas="b-uptime">uptime</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="vmstat">
226 <term><command>vmstat</command></term>
227 <listitem>
228 <para>Reports virtual memory statistics, giving information about
229 processes, memory, paging, block Input/Output (IO), traps, and CPU
230 activity</para>
231 <indexterm zone="ch-system-procps vmstat">
232 <primary sortas="b-vmstat">vmstat</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="w">
238 <term><command>w</command></term>
239 <listitem>
240 <para>Shows which users are currently logged on, where, and since
241 when</para>
242 <indexterm zone="ch-system-procps w">
243 <primary sortas="b-w">w</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="watch">
249 <term><command>watch</command></term>
250 <listitem>
251 <para>Runs a given command repeatedly, displaying the first
252 screen-full of its output; this allows a user to watch the output
253 change over time</para>
254 <indexterm zone="ch-system-procps watch">
255 <primary sortas="b-watch">watch</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="libproc">
261 <term><filename class="libraryfile">libproc</filename></term>
262 <listitem>
263 <para>Contains the functions used by most programs in this
264 package</para>
265 <indexterm zone="ch-system-procps libproc">
266 <primary sortas="c-libproc">libproc</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 </variablelist>
272
273 </sect2>
274
275</sect1>
Note: See TracBrowser for help on using the repository browser.