[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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 | <title>Procps-&procps-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-procps">
|
---|
| 14 | <primary sortas="a-Procps">Procps</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Procps package contains programs for monitoring
|
---|
| 21 | processes.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Procps</title>
|
---|
| 27 |
|
---|
| 28 | <para os="s1">The following sed stops the Makefile from trying to install
|
---|
| 29 | binaries owned by root and prevents ldconfig from being
|
---|
| 30 | run.</para>
|
---|
| 31 |
|
---|
| 32 | <screen os="s2"><userinput>cp -v Makefile{,.orig}
|
---|
| 33 | sed -e "/^install :=/s/--owner 0 --group 0//" \
|
---|
| 34 | -e "/^ldconfig :=/s/= ldconfig/=/" Makefile.orig > Makefile</userinput></screen>
|
---|
| 35 |
|
---|
| 36 | <para os="a">Compile the package:</para>
|
---|
| 37 |
|
---|
| 38 | <screen os="b"><userinput>make</userinput></screen>
|
---|
| 39 |
|
---|
[124ebe0] | 40 | <para os="c">Install the package:</para>
|
---|
[02095ae] | 41 |
|
---|
[124ebe0] | 42 | <screen os="d"><userinput>make DESTDIR=${LFS} lib64=lib install</userinput></screen>
|
---|
[02095ae] | 43 |
|
---|
| 44 | </sect2>
|
---|
| 45 |
|
---|
| 46 | <sect2 id="contents-procps" role="content">
|
---|
| 47 | <title>Contents of Procps</title>
|
---|
| 48 |
|
---|
| 49 | <segmentedlist>
|
---|
| 50 | <segtitle>Installed programs</segtitle>
|
---|
| 51 | <segtitle>Installed library</segtitle>
|
---|
| 52 |
|
---|
| 53 | <seglistitem>
|
---|
| 54 | <seg>free, kill, pgrep, pkill, pmap, ps, skill, snice, sysctl, tload,
|
---|
| 55 | top, uptime, vmstat, w, and watch</seg>
|
---|
| 56 | <seg>libproc.so</seg>
|
---|
| 57 | </seglistitem>
|
---|
| 58 | </segmentedlist>
|
---|
| 59 |
|
---|
| 60 | <variablelist>
|
---|
| 61 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 62 | <?dbfo list-presentation="list"?>
|
---|
| 63 | <?dbhtml list-presentation="table"?>
|
---|
| 64 |
|
---|
| 65 | <varlistentry id="free">
|
---|
| 66 | <term><command>free</command></term>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Reports the amount of free and used memory (both physical and
|
---|
| 69 | swap memory) in the system</para>
|
---|
| 70 | <indexterm zone="ch-system-procps free">
|
---|
| 71 | <primary sortas="b-free">free</primary>
|
---|
| 72 | </indexterm>
|
---|
| 73 | </listitem>
|
---|
| 74 | </varlistentry>
|
---|
| 75 |
|
---|
| 76 | <varlistentry id="kill">
|
---|
| 77 | <term><command>kill</command></term>
|
---|
| 78 | <listitem>
|
---|
| 79 | <para>Sends signals to processes</para>
|
---|
| 80 | <indexterm zone="ch-system-procps kill">
|
---|
| 81 | <primary sortas="b-kill">kill</primary>
|
---|
| 82 | </indexterm>
|
---|
| 83 | </listitem>
|
---|
| 84 | </varlistentry>
|
---|
| 85 |
|
---|
| 86 | <varlistentry id="pgrep">
|
---|
| 87 | <term><command>pgrep</command></term>
|
---|
| 88 | <listitem>
|
---|
| 89 | <para>Looks up processes based on their name and other attributes</para>
|
---|
| 90 | <indexterm zone="ch-system-procps pgrep">
|
---|
| 91 | <primary sortas="b-pgrep">pgrep</primary>
|
---|
| 92 | </indexterm>
|
---|
| 93 | </listitem>
|
---|
| 94 | </varlistentry>
|
---|
| 95 |
|
---|
| 96 | <varlistentry id="pkill">
|
---|
| 97 | <term><command>pkill</command></term>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>Signals processes based on their name and other attributes</para>
|
---|
| 100 | <indexterm zone="ch-system-procps pkill">
|
---|
| 101 | <primary sortas="b-pkill">pkill</primary>
|
---|
| 102 | </indexterm>
|
---|
| 103 | </listitem>
|
---|
| 104 | </varlistentry>
|
---|
| 105 |
|
---|
| 106 | <varlistentry id="pmap">
|
---|
| 107 | <term><command>pmap</command></term>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>Reports the memory map of the given process</para>
|
---|
| 110 | <indexterm zone="ch-system-procps pmap">
|
---|
| 111 | <primary sortas="b-pmap">pmap</primary>
|
---|
| 112 | </indexterm>
|
---|
| 113 | </listitem>
|
---|
| 114 | </varlistentry>
|
---|
| 115 |
|
---|
| 116 | <varlistentry id="ps">
|
---|
| 117 | <term><command>ps</command></term>
|
---|
| 118 | <listitem>
|
---|
| 119 | <para>Lists the current running processes</para>
|
---|
| 120 | <indexterm zone="ch-system-procps ps">
|
---|
| 121 | <primary sortas="b-ps">ps</primary>
|
---|
| 122 | </indexterm>
|
---|
| 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="skill">
|
---|
| 127 | <term><command>skill</command></term>
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>Sends signals to processes matching the given criteria</para>
|
---|
| 130 | <indexterm zone="ch-system-procps skill">
|
---|
| 131 | <primary sortas="b-skill">skill</primary>
|
---|
| 132 | </indexterm>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="snice">
|
---|
| 137 | <term><command>snice</command></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>Changes the scheduling priority of processes matching the given
|
---|
| 140 | criteria</para>
|
---|
| 141 | <indexterm zone="ch-system-procps snice">
|
---|
| 142 | <primary sortas="b-snice">snice</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="sysctl">
|
---|
| 148 | <term><command>sysctl</command></term>
|
---|
| 149 | <listitem>
|
---|
| 150 | <para>Modifies kernel parameters at run time</para>
|
---|
| 151 | <indexterm zone="ch-system-procps sysctl">
|
---|
| 152 | <primary sortas="b-sysctl">sysctl</primary>
|
---|
| 153 | </indexterm>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
| 156 |
|
---|
| 157 | <varlistentry id="tload">
|
---|
| 158 | <term><command>tload</command></term>
|
---|
| 159 | <listitem>
|
---|
| 160 | <para>Prints a graph of the current system load average</para>
|
---|
| 161 | <indexterm zone="ch-system-procps tload">
|
---|
| 162 | <primary sortas="b-tload">tload</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="top">
|
---|
| 168 | <term><command>top</command></term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>Displays a list of the most CPU intensive processes; it
|
---|
| 171 | provides an ongoing look at processor activity in real time</para>
|
---|
| 172 | <indexterm zone="ch-system-procps top">
|
---|
| 173 | <primary sortas="b-top">top</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="uptime">
|
---|
| 179 | <term><command>uptime</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>Reports how long the system has been running, how many users are
|
---|
| 182 | logged on, and the system load averages</para>
|
---|
| 183 | <indexterm zone="ch-system-procps uptime">
|
---|
| 184 | <primary sortas="b-uptime">uptime</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="vmstat">
|
---|
| 190 | <term><command>vmstat</command></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>Reports virtual memory statistics, giving information about
|
---|
| 193 | processes, memory, paging, block Input/Output (IO), traps, and CPU
|
---|
| 194 | activity</para>
|
---|
| 195 | <indexterm zone="ch-system-procps vmstat">
|
---|
| 196 | <primary sortas="b-vmstat">vmstat</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | <varlistentry id="w">
|
---|
| 202 | <term><command>w</command></term>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>Shows which users are currently logged on, where, and since
|
---|
| 205 | when</para>
|
---|
| 206 | <indexterm zone="ch-system-procps w">
|
---|
| 207 | <primary sortas="b-w">w</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="watch">
|
---|
| 213 | <term><command>watch</command></term>
|
---|
| 214 | <listitem>
|
---|
| 215 | <para>Runs a given command repeatedly, displaying the first
|
---|
| 216 | screen-full of its output; this allows a user to watch the output
|
---|
| 217 | change over time</para>
|
---|
| 218 | <indexterm zone="ch-system-procps watch">
|
---|
| 219 | <primary sortas="b-watch">watch</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="libproc">
|
---|
| 225 | <term><filename class="libraryfile">libproc</filename></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>Contains the functions used by most programs in this
|
---|
| 228 | package</para>
|
---|
| 229 | <indexterm zone="ch-system-procps libproc">
|
---|
| 230 | <primary sortas="c-libproc">libproc</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | </variablelist>
|
---|
| 236 |
|
---|
| 237 | </sect2>
|
---|
| 238 |
|
---|
| 239 | </sect1>
|
---|