1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-system-procps" xreflabel="Procps" role="wrap">
|
---|
7 | <title>Procps-&procps-version;</title>
|
---|
8 | <?dbhtml filename="procps.html"?>
|
---|
9 |
|
---|
10 | <indexterm zone="ch-system-procps"><primary sortas="a-Procps">Procps</primary></indexterm>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 | <para>The Procps package contains programs for monitoring processes.</para>
|
---|
14 |
|
---|
15 | <segmentedlist>
|
---|
16 | <segtitle>&buildtime;</segtitle>
|
---|
17 | <segtitle>&diskspace;</segtitle>
|
---|
18 | <seglistitem><seg>0.1 SBU</seg><seg>6.2 MB</seg></seglistitem>
|
---|
19 | </segmentedlist>
|
---|
20 |
|
---|
21 | <segmentedlist>
|
---|
22 | <segtitle>Procps installation depends on</segtitle>
|
---|
23 | <seglistitem><seg>Bash, Binutils, Coreutils, GCC, Glibc,
|
---|
24 | Make, Ncurses</seg></seglistitem>
|
---|
25 | </segmentedlist>
|
---|
26 | </sect2>
|
---|
27 |
|
---|
28 | <sect2 role="installation">
|
---|
29 | <title>Installation of Procps</title>
|
---|
30 |
|
---|
31 | <para>Compile Procps:</para>
|
---|
32 |
|
---|
33 | <screen><userinput>make</userinput></screen>
|
---|
34 |
|
---|
35 | <para>Install it:</para>
|
---|
36 |
|
---|
37 | <screen><userinput>make install</userinput></screen>
|
---|
38 |
|
---|
39 | </sect2>
|
---|
40 |
|
---|
41 |
|
---|
42 | <sect2 id="contents-procps" role="content"><title>Contents of Procps</title>
|
---|
43 |
|
---|
44 | <segmentedlist>
|
---|
45 | <segtitle>Installed programs</segtitle>
|
---|
46 | <segtitle>Installed library</segtitle>
|
---|
47 | <seglistitem><seg>free, kill, pgrep, pkill,
|
---|
48 | pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w and watch</seg>
|
---|
49 | <seg>libproc.so</seg></seglistitem>
|
---|
50 | </segmentedlist>
|
---|
51 |
|
---|
52 | <variablelist><title>Short descriptions</title>
|
---|
53 |
|
---|
54 | <varlistentry id="free">
|
---|
55 | <term><command>free</command></term>
|
---|
56 | <listitem>
|
---|
57 | <indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
|
---|
58 | <para>reports the amount of free and used memory
|
---|
59 | in the system, both physical and swap memory.</para>
|
---|
60 | </listitem>
|
---|
61 | </varlistentry>
|
---|
62 |
|
---|
63 | <varlistentry id="kill">
|
---|
64 | <term><command>kill</command></term>
|
---|
65 | <listitem>
|
---|
66 | <indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
|
---|
67 | <para>is used to send signals to processes.</para>
|
---|
68 | </listitem>
|
---|
69 | </varlistentry>
|
---|
70 |
|
---|
71 | <varlistentry id="pgrep">
|
---|
72 | <term><command>pgrep</command></term>
|
---|
73 | <listitem>
|
---|
74 | <indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
|
---|
75 | <para>looks up processes based on their name and other attributes.</para>
|
---|
76 | </listitem>
|
---|
77 | </varlistentry>
|
---|
78 |
|
---|
79 | <varlistentry id="pkill">
|
---|
80 | <term><command>pkill</command></term>
|
---|
81 | <listitem>
|
---|
82 | <indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
|
---|
83 | <para>signals processes based on their name and other attributes.</para>
|
---|
84 | </listitem>
|
---|
85 | </varlistentry>
|
---|
86 |
|
---|
87 | <varlistentry id="pmap">
|
---|
88 | <term><command>pmap</command></term>
|
---|
89 | <listitem>
|
---|
90 | <indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
|
---|
91 | <para>reports the memory map of the given process.</para>
|
---|
92 | </listitem>
|
---|
93 | </varlistentry>
|
---|
94 |
|
---|
95 | <varlistentry id="ps">
|
---|
96 | <term><command>ps</command></term>
|
---|
97 | <listitem>
|
---|
98 | <indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
|
---|
99 | <para>gives a snapshot of the current processes.</para>
|
---|
100 | </listitem>
|
---|
101 | </varlistentry>
|
---|
102 |
|
---|
103 | <varlistentry id="skill">
|
---|
104 | <term><command>skill</command></term>
|
---|
105 | <listitem>
|
---|
106 | <indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
|
---|
107 | <para>sends signals to processes matching the given criteria.</para>
|
---|
108 | </listitem>
|
---|
109 | </varlistentry>
|
---|
110 |
|
---|
111 | <varlistentry id="snice">
|
---|
112 | <term><command>snice</command></term>
|
---|
113 | <listitem>
|
---|
114 | <indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
|
---|
115 | <para>changes the scheduling priority of processes matching the given criteria.</para>
|
---|
116 | </listitem>
|
---|
117 | </varlistentry>
|
---|
118 |
|
---|
119 | <varlistentry id="sysctl">
|
---|
120 | <term><command>sysctl</command></term>
|
---|
121 | <listitem>
|
---|
122 | <indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
|
---|
123 | <para>modifies kernel parameters at run time.</para>
|
---|
124 | </listitem>
|
---|
125 | </varlistentry>
|
---|
126 |
|
---|
127 | <varlistentry id="tload">
|
---|
128 | <term><command>tload</command></term>
|
---|
129 | <listitem>
|
---|
130 | <indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
|
---|
131 | <para>prints a graph of the current system load average.</para>
|
---|
132 | </listitem>
|
---|
133 | </varlistentry>
|
---|
134 |
|
---|
135 | <varlistentry id="top">
|
---|
136 | <term><command>top</command></term>
|
---|
137 | <listitem>
|
---|
138 | <indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
|
---|
139 | <para>displays the top CPU processes. It provides
|
---|
140 | an ongoing look at processor activity in real time.</para>
|
---|
141 | </listitem>
|
---|
142 | </varlistentry>
|
---|
143 |
|
---|
144 | <varlistentry id="uptime">
|
---|
145 | <term><command>uptime</command></term>
|
---|
146 | <listitem>
|
---|
147 | <indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
|
---|
148 | <para>reports how long the system has been
|
---|
149 | running, how many users are logged on, and the system load averages.</para>
|
---|
150 | </listitem>
|
---|
151 | </varlistentry>
|
---|
152 |
|
---|
153 | <varlistentry id="vmstat">
|
---|
154 | <term><command>vmstat</command></term>
|
---|
155 | <listitem>
|
---|
156 | <indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
|
---|
157 | <para>reports virtual memory statistics, giving information about processes,
|
---|
158 | memory, paging, block IO, traps, and CPU activity.</para>
|
---|
159 | </listitem>
|
---|
160 | </varlistentry>
|
---|
161 |
|
---|
162 | <varlistentry id="w">
|
---|
163 | <term><command>w</command></term>
|
---|
164 | <listitem>
|
---|
165 | <indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
|
---|
166 | <para>shows which users are currently logged on, where and since when.</para>
|
---|
167 | </listitem>
|
---|
168 | </varlistentry>
|
---|
169 |
|
---|
170 | <varlistentry id="watch">
|
---|
171 | <term><command>watch</command></term>
|
---|
172 | <listitem>
|
---|
173 | <indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
|
---|
174 | <para>runs a given command repeatedly, displaying the first screen-full of its
|
---|
175 | output. This allows you to watch the output change over time.</para>
|
---|
176 | </listitem>
|
---|
177 | </varlistentry>
|
---|
178 |
|
---|
179 | <varlistentry id="libproc">
|
---|
180 | <term><filename class="libraryfile">libproc</filename></term>
|
---|
181 | <listitem>
|
---|
182 | <indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
|
---|
183 | <para>contains the functions used by most programs in this package.</para>
|
---|
184 | </listitem>
|
---|
185 | </varlistentry>
|
---|
186 | </variablelist>
|
---|
187 |
|
---|
188 | </sect2>
|
---|
189 |
|
---|
190 | </sect1>
|
---|