[673b0d8] | 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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-procps" xreflabel="Procps" role="wrap">
|
---|
[673b0d8] | 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>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Procps package contains programs for monitoring processes.</para>
|
---|
| 14 |
|
---|
[a001133] | 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>
|
---|
[673b0d8] | 20 |
|
---|
[a001133] | 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>
|
---|
[3554fa3a] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of Procps</title>
|
---|
| 30 |
|
---|
[28acf75] | 31 | <para>Compile Procps:</para>
|
---|
[73aedd1d] | 32 |
|
---|
| 33 | <screen><userinput>make</userinput></screen>
|
---|
| 34 |
|
---|
[ef13657] | 35 | <para>Install the packag:</para>
|
---|
[73aedd1d] | 36 |
|
---|
| 37 | <screen><userinput>make install</userinput></screen>
|
---|
| 38 |
|
---|
[673b0d8] | 39 | <para>Remove a spurious library link:</para>
|
---|
[73aedd1d] | 40 |
|
---|
| 41 | <screen><userinput>rm /lib/libproc.so</userinput></screen>
|
---|
| 42 |
|
---|
| 43 | </sect2>
|
---|
[6370fa6] | 44 |
|
---|
[5888299] | 45 |
|
---|
[c6cb3aa] | 46 | <sect2 id="contents-procps" role="content"><title>Contents of Procps</title>
|
---|
[673b0d8] | 47 |
|
---|
[c6cb3aa] | 48 | <segmentedlist>
|
---|
| 49 | <segtitle>Installed programs</segtitle>
|
---|
| 50 | <segtitle>Installed library</segtitle>
|
---|
| 51 | <seglistitem><seg>free, kill, pgrep, pkill,
|
---|
| 52 | pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w and watch</seg>
|
---|
| 53 | <seg>libproc.so</seg></seglistitem>
|
---|
| 54 | </segmentedlist>
|
---|
[673b0d8] | 55 |
|
---|
[3ed279f] | 56 | <variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
|
---|
| 57 | <?dbfo list-presentation="list"?>
|
---|
[673b0d8] | 58 |
|
---|
[b8a819f] | 59 | <varlistentry id="free">
|
---|
| 60 | <term><command>free</command></term>
|
---|
[c6cb3aa] | 61 | <listitem>
|
---|
[ef13657] | 62 | <para>reports the amount of free and used memory (both physical and
|
---|
| 63 | swap memory) in the system.</para>
|
---|
[3ed279f] | 64 | <indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
|
---|
[c6cb3aa] | 65 | </listitem>
|
---|
| 66 | </varlistentry>
|
---|
[673b0d8] | 67 |
|
---|
[b8a819f] | 68 | <varlistentry id="kill">
|
---|
| 69 | <term><command>kill</command></term>
|
---|
[c6cb3aa] | 70 | <listitem>
|
---|
[ef13657] | 71 | <para>sends signals to processes.</para>
|
---|
[3ed279f] | 72 | <indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
|
---|
[c6cb3aa] | 73 | </listitem>
|
---|
| 74 | </varlistentry>
|
---|
[673b0d8] | 75 |
|
---|
[b8a819f] | 76 | <varlistentry id="pgrep">
|
---|
| 77 | <term><command>pgrep</command></term>
|
---|
[c6cb3aa] | 78 | <listitem>
|
---|
| 79 | <para>looks up processes based on their name and other attributes.</para>
|
---|
[3ed279f] | 80 | <indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
|
---|
[c6cb3aa] | 81 | </listitem>
|
---|
| 82 | </varlistentry>
|
---|
[673b0d8] | 83 |
|
---|
[b8a819f] | 84 | <varlistentry id="pkill">
|
---|
| 85 | <term><command>pkill</command></term>
|
---|
[c6cb3aa] | 86 | <listitem>
|
---|
| 87 | <para>signals processes based on their name and other attributes.</para>
|
---|
[3ed279f] | 88 | <indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
|
---|
[c6cb3aa] | 89 | </listitem>
|
---|
| 90 | </varlistentry>
|
---|
[673b0d8] | 91 |
|
---|
[b8a819f] | 92 | <varlistentry id="pmap">
|
---|
| 93 | <term><command>pmap</command></term>
|
---|
[c6cb3aa] | 94 | <listitem>
|
---|
| 95 | <para>reports the memory map of the given process.</para>
|
---|
[3ed279f] | 96 | <indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
|
---|
[c6cb3aa] | 97 | </listitem>
|
---|
| 98 | </varlistentry>
|
---|
[673b0d8] | 99 |
|
---|
[b8a819f] | 100 | <varlistentry id="ps">
|
---|
| 101 | <term><command>ps</command></term>
|
---|
[c6cb3aa] | 102 | <listitem>
|
---|
[ef13657] | 103 | <para>lists the current running processes.</para>
|
---|
[3ed279f] | 104 | <indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
|
---|
[c6cb3aa] | 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
[73aedd1d] | 107 |
|
---|
[b8a819f] | 108 | <varlistentry id="skill">
|
---|
| 109 | <term><command>skill</command></term>
|
---|
[c6cb3aa] | 110 | <listitem>
|
---|
| 111 | <para>sends signals to processes matching the given criteria.</para>
|
---|
[3ed279f] | 112 | <indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
|
---|
[c6cb3aa] | 113 | </listitem>
|
---|
| 114 | </varlistentry>
|
---|
[673b0d8] | 115 |
|
---|
[b8a819f] | 116 | <varlistentry id="snice">
|
---|
| 117 | <term><command>snice</command></term>
|
---|
[c6cb3aa] | 118 | <listitem>
|
---|
| 119 | <para>changes the scheduling priority of processes matching the given criteria.</para>
|
---|
[3ed279f] | 120 | <indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
|
---|
[c6cb3aa] | 121 | </listitem>
|
---|
| 122 | </varlistentry>
|
---|
[673b0d8] | 123 |
|
---|
[b8a819f] | 124 | <varlistentry id="sysctl">
|
---|
| 125 | <term><command>sysctl</command></term>
|
---|
[c6cb3aa] | 126 | <listitem>
|
---|
| 127 | <para>modifies kernel parameters at run time.</para>
|
---|
[3ed279f] | 128 | <indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
|
---|
[c6cb3aa] | 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
[673b0d8] | 131 |
|
---|
[b8a819f] | 132 | <varlistentry id="tload">
|
---|
| 133 | <term><command>tload</command></term>
|
---|
[c6cb3aa] | 134 | <listitem>
|
---|
| 135 | <para>prints a graph of the current system load average.</para>
|
---|
[3ed279f] | 136 | <indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
|
---|
[c6cb3aa] | 137 | </listitem>
|
---|
| 138 | </varlistentry>
|
---|
[673b0d8] | 139 |
|
---|
[b8a819f] | 140 | <varlistentry id="top">
|
---|
| 141 | <term><command>top</command></term>
|
---|
[c6cb3aa] | 142 | <listitem>
|
---|
[ef13657] | 143 | <para>displays the top CPU processes. It provides an ongoing look at
|
---|
| 144 | processor activity in real time.</para>
|
---|
[3ed279f] | 145 | <indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
|
---|
[c6cb3aa] | 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
[673b0d8] | 148 |
|
---|
[b8a819f] | 149 | <varlistentry id="uptime">
|
---|
| 150 | <term><command>uptime</command></term>
|
---|
[c6cb3aa] | 151 | <listitem>
|
---|
[ef13657] | 152 | <para>reports how long the system has been running, how many users are
|
---|
| 153 | logged on, and the system load averages.</para>
|
---|
[3ed279f] | 154 | <indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
|
---|
[c6cb3aa] | 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
[673b0d8] | 157 |
|
---|
[b8a819f] | 158 | <varlistentry id="vmstat">
|
---|
| 159 | <term><command>vmstat</command></term>
|
---|
[c6cb3aa] | 160 | <listitem>
|
---|
[ef13657] | 161 | <para>reports virtual memory statistics, giving information about
|
---|
| 162 | processes, memory, paging, block IO, traps, and CPU activity.</para>
|
---|
[3ed279f] | 163 | <indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
|
---|
[c6cb3aa] | 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
[b8a819f] | 167 | <varlistentry id="w">
|
---|
| 168 | <term><command>w</command></term>
|
---|
[c6cb3aa] | 169 | <listitem>
|
---|
[ef13657] | 170 | <para>shows which users are currently logged on, where, and since when.</para>
|
---|
[3ed279f] | 171 | <indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
|
---|
[c6cb3aa] | 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
[673b0d8] | 174 |
|
---|
[b8a819f] | 175 | <varlistentry id="watch">
|
---|
| 176 | <term><command>watch</command></term>
|
---|
[c6cb3aa] | 177 | <listitem>
|
---|
| 178 | <para>runs a given command repeatedly, displaying the first screen-full of its
|
---|
[ef13657] | 179 | output. This allows a user to watch the output change over time.</para>
|
---|
[3ed279f] | 180 | <indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
|
---|
[c6cb3aa] | 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
[b8a819f] | 184 | <varlistentry id="libproc">
|
---|
[8ad7980] | 185 | <term><filename class="libraryfile">libproc</filename></term>
|
---|
[c6cb3aa] | 186 | <listitem>
|
---|
| 187 | <para>contains the functions used by most programs in this package.</para>
|
---|
[3ed279f] | 188 | <indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
|
---|
[c6cb3aa] | 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 | </variablelist>
|
---|
[673b0d8] | 192 |
|
---|
| 193 | </sect2>
|
---|
| 194 |
|
---|
| 195 | </sect1>
|
---|
[ef13657] | 196 |
|
---|