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-ng" role="wrap">
|
---|
9 | <?dbhtml filename="procps-ng.html"?>
|
---|
10 |
|
---|
11 | <title>Procps-ng-&procps-ng-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-procps-ng">
|
---|
14 | <primary sortas="a-Procps-ng">Procps-ng</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The Procps-ng package contains programs for monitoring
|
---|
21 | processes.</para>
|
---|
22 |
|
---|
23 | </sect2>
|
---|
24 |
|
---|
25 | <sect2 role="installation">
|
---|
26 | <title>Installation of Procps-ng</title>
|
---|
27 |
|
---|
28 | <para os="a">Prepare procps-ng for compilation:</para>
|
---|
29 |
|
---|
30 | <screen os="b"><userinput>./configure --prefix=/usr --exec-prefix= \
|
---|
31 | --libdir=/usr/lib --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
|
---|
32 | --disable-kill</userinput></screen>
|
---|
33 |
|
---|
34 | <variablelist os="c">
|
---|
35 | <title>The meaning of the configure options:</title>
|
---|
36 | <varlistentry>
|
---|
37 | <term><parameter>--disable-kill</parameter></term>
|
---|
38 | <listitem>
|
---|
39 | <para>This switch disables building the kill command that
|
---|
40 | was installed in the util-linux package.</para>
|
---|
41 | </listitem>
|
---|
42 | </varlistentry>
|
---|
43 | </variablelist>
|
---|
44 |
|
---|
45 | <para os="d">Compile the package:</para>
|
---|
46 |
|
---|
47 | <screen os="e"><userinput>make</userinput></screen>
|
---|
48 |
|
---|
49 | <para os="f">Remove the test which fails when scripting does not use a tty
|
---|
50 | device. Run the following commands:</para>
|
---|
51 |
|
---|
52 | <screen os="g"><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
|
---|
53 | make check</userinput></screen>
|
---|
54 |
|
---|
55 | <para os="h">Install the package:</para>
|
---|
56 |
|
---|
57 | <screen os="i"><userinput>make install</userinput></screen>
|
---|
58 |
|
---|
59 | <para os="j">Move essential files to a location that can be found if <filename class="directory">/usr</filename> is not mounted.</para>
|
---|
60 |
|
---|
61 | <screen os="k"><userinput>mv -v /usr/bin/pidof /bin
|
---|
62 | mv -v /usr/lib/libprocps.so.* /lib
|
---|
63 | ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so</userinput></screen>
|
---|
64 |
|
---|
65 | </sect2>
|
---|
66 |
|
---|
67 | <sect2 id="contents-procps-ng" role="content">
|
---|
68 | <title>Contents of Procps-ng</title>
|
---|
69 |
|
---|
70 | <segmentedlist>
|
---|
71 | <segtitle>Installed programs</segtitle>
|
---|
72 | <segtitle>Installed library</segtitle>
|
---|
73 |
|
---|
74 | <seglistitem>
|
---|
75 | <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop, sysctl, tload,
|
---|
76 | top, uptime, vmstat, w, and watch</seg>
|
---|
77 | <seg>libproc.{a,so}</seg>
|
---|
78 | </seglistitem>
|
---|
79 | </segmentedlist>
|
---|
80 |
|
---|
81 | <variablelist>
|
---|
82 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
83 | <?dbfo list-presentation="list"?>
|
---|
84 | <?dbhtml list-presentation="table"?>
|
---|
85 |
|
---|
86 | <varlistentry id="free">
|
---|
87 | <term><command>free</command></term>
|
---|
88 | <listitem>
|
---|
89 | <para>Reports the amount of free and used memory (both physical and
|
---|
90 | swap memory) in the system</para>
|
---|
91 | <indexterm zone="ch-system-procps-ng free">
|
---|
92 | <primary sortas="b-free">free</primary>
|
---|
93 | </indexterm>
|
---|
94 | </listitem>
|
---|
95 | </varlistentry>
|
---|
96 |
|
---|
97 | <varlistentry id="pgrep">
|
---|
98 | <term><command>pgrep</command></term>
|
---|
99 | <listitem>
|
---|
100 | <para>Looks up processes based on their name and other attributes</para>
|
---|
101 | <indexterm zone="ch-system-procps-ng pgrep">
|
---|
102 | <primary sortas="b-pgrep">pgrep</primary>
|
---|
103 | </indexterm>
|
---|
104 | </listitem>
|
---|
105 | </varlistentry>
|
---|
106 |
|
---|
107 | <varlistentry id="pidof">
|
---|
108 | <term><command>pidof</command></term>
|
---|
109 | <listitem>
|
---|
110 | <para>Looks up processes based on their name and other attributes</para>
|
---|
111 | <indexterm zone="ch-system-procps-ng pidof">
|
---|
112 | <primary sortas="b-pidof">pidof</primary>
|
---|
113 | </indexterm>
|
---|
114 | </listitem>
|
---|
115 | </varlistentry>
|
---|
116 |
|
---|
117 | <varlistentry id="pkill">
|
---|
118 | <term><command>pkill</command></term>
|
---|
119 | <listitem>
|
---|
120 | <para>Signals processes based on their name and other attributes</para>
|
---|
121 | <indexterm zone="ch-system-procps-ng pkill">
|
---|
122 | <primary sortas="b-pkill">pkill</primary>
|
---|
123 | </indexterm>
|
---|
124 | </listitem>
|
---|
125 | </varlistentry>
|
---|
126 |
|
---|
127 | <varlistentry id="pmap">
|
---|
128 | <term><command>pmap</command></term>
|
---|
129 | <listitem>
|
---|
130 | <para>Reports the memory map of the given process</para>
|
---|
131 | <indexterm zone="ch-system-procps-ng pmap">
|
---|
132 | <primary sortas="b-pmap">pmap</primary>
|
---|
133 | </indexterm>
|
---|
134 | </listitem>
|
---|
135 | </varlistentry>
|
---|
136 |
|
---|
137 | <varlistentry id="ps">
|
---|
138 | <term><command>ps</command></term>
|
---|
139 | <listitem>
|
---|
140 | <para>Lists the current running processes</para>
|
---|
141 | <indexterm zone="ch-system-procps-ng ps">
|
---|
142 | <primary sortas="b-ps">ps</primary>
|
---|
143 | </indexterm>
|
---|
144 | </listitem>
|
---|
145 | </varlistentry>
|
---|
146 |
|
---|
147 | <varlistentry id="pwdx">
|
---|
148 | <term><command>pwdx</command></term>
|
---|
149 | <listitem>
|
---|
150 | <para>Reports the current working directory of a process</para>
|
---|
151 | <indexterm zone="ch-system-procps-ng pwdx">
|
---|
152 | <primary sortas="b-pwdx">pwdx</primary>
|
---|
153 | </indexterm>
|
---|
154 | </listitem>
|
---|
155 | </varlistentry>
|
---|
156 |
|
---|
157 | <varlistentry id="slabtop">
|
---|
158 | <term><command>slabtop</command></term>
|
---|
159 | <listitem>
|
---|
160 | <para>Displays detailed kernel slab cache information in real time</para>
|
---|
161 | <indexterm zone="ch-system-procps-ng slabtop">
|
---|
162 | <primary sortas="b-slabtop">slabtop</primary>
|
---|
163 | </indexterm>
|
---|
164 | </listitem>
|
---|
165 | </varlistentry>
|
---|
166 |
|
---|
167 |
|
---|
168 | <varlistentry id="sysctl">
|
---|
169 | <term><command>sysctl</command></term>
|
---|
170 | <listitem>
|
---|
171 | <para>Modifies kernel parameters at run time</para>
|
---|
172 | <indexterm zone="ch-system-procps-ng sysctl">
|
---|
173 | <primary sortas="b-sysctl">sysctl</primary>
|
---|
174 | </indexterm>
|
---|
175 | </listitem>
|
---|
176 | </varlistentry>
|
---|
177 |
|
---|
178 | <varlistentry id="tload">
|
---|
179 | <term><command>tload</command></term>
|
---|
180 | <listitem>
|
---|
181 | <para>Prints a graph of the current system load average</para>
|
---|
182 | <indexterm zone="ch-system-procps-ng tload">
|
---|
183 | <primary sortas="b-tload">tload</primary>
|
---|
184 | </indexterm>
|
---|
185 | </listitem>
|
---|
186 | </varlistentry>
|
---|
187 |
|
---|
188 | <varlistentry id="top">
|
---|
189 | <term><command>top</command></term>
|
---|
190 | <listitem>
|
---|
191 | <para>Displays a list of the most CPU intensive processes; it
|
---|
192 | provides an ongoing look at processor activity in real time</para>
|
---|
193 | <indexterm zone="ch-system-procps-ng top">
|
---|
194 | <primary sortas="b-top">top</primary>
|
---|
195 | </indexterm>
|
---|
196 | </listitem>
|
---|
197 | </varlistentry>
|
---|
198 |
|
---|
199 | <varlistentry id="uptime">
|
---|
200 | <term><command>uptime</command></term>
|
---|
201 | <listitem>
|
---|
202 | <para>Reports how long the system has been running, how many users are
|
---|
203 | logged on, and the system load averages</para>
|
---|
204 | <indexterm zone="ch-system-procps-ng uptime">
|
---|
205 | <primary sortas="b-uptime">uptime</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="vmstat">
|
---|
211 | <term><command>vmstat</command></term>
|
---|
212 | <listitem>
|
---|
213 | <para>Reports virtual memory statistics, giving information about
|
---|
214 | processes, memory, paging, block Input/Output (IO), traps, and CPU
|
---|
215 | activity</para>
|
---|
216 | <indexterm zone="ch-system-procps-ng vmstat">
|
---|
217 | <primary sortas="b-vmstat">vmstat</primary>
|
---|
218 | </indexterm>
|
---|
219 | </listitem>
|
---|
220 | </varlistentry>
|
---|
221 |
|
---|
222 | <varlistentry id="w">
|
---|
223 | <term><command>w</command></term>
|
---|
224 | <listitem>
|
---|
225 | <para>Shows which users are currently logged on, where, and since
|
---|
226 | when</para>
|
---|
227 | <indexterm zone="ch-system-procps-ng w">
|
---|
228 | <primary sortas="b-w">w</primary>
|
---|
229 | </indexterm>
|
---|
230 | </listitem>
|
---|
231 | </varlistentry>
|
---|
232 |
|
---|
233 | <varlistentry id="watch">
|
---|
234 | <term><command>watch</command></term>
|
---|
235 | <listitem>
|
---|
236 | <para>Runs a given command repeatedly, displaying the first
|
---|
237 | screen-full of its output; this allows a user to watch the output
|
---|
238 | change over time</para>
|
---|
239 | <indexterm zone="ch-system-procps-ng watch">
|
---|
240 | <primary sortas="b-watch">watch</primary>
|
---|
241 | </indexterm>
|
---|
242 | </listitem>
|
---|
243 | </varlistentry>
|
---|
244 |
|
---|
245 | <varlistentry id="libproc">
|
---|
246 | <term><filename class="libraryfile">libproc</filename></term>
|
---|
247 | <listitem>
|
---|
248 | <para>Contains the functions used by most programs in this
|
---|
249 | package</para>
|
---|
250 | <indexterm zone="ch-system-procps-ng libproc">
|
---|
251 | <primary sortas="c-libproc">libproc</primary>
|
---|
252 | </indexterm>
|
---|
253 | </listitem>
|
---|
254 | </varlistentry>
|
---|
255 |
|
---|
256 | </variablelist>
|
---|
257 |
|
---|
258 | </sect2>
|
---|
259 |
|
---|
260 | </sect1>
|
---|