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