[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[c2133bc] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 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">
|
---|
[3f9e82f] | 29 |
|
---|
[73aedd1d] | 30 | <title>Installation of Procps</title>
|
---|
| 31 |
|
---|
[3f9e82f] | 32 | <para arch="raq2">The patch below fixes the issue with the procps. Without this patch
|
---|
| 33 | when the command ps aux is run you will receive a signal 11.</para>
|
---|
| 34 |
|
---|
| 35 | <screen arch="raq2"><userinput>patch -Np1 -i ../procps-&procps-version;-fix_mips-1.patch</userinput></screen>
|
---|
| 36 |
|
---|
[2256873] | 37 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 38 |
|
---|
| 39 | <screen><userinput>make</userinput></screen>
|
---|
| 40 |
|
---|
[69993f4] | 41 | <para>Install the package:</para>
|
---|
[73aedd1d] | 42 |
|
---|
| 43 | <screen><userinput>make install</userinput></screen>
|
---|
| 44 |
|
---|
| 45 | </sect2>
|
---|
[6370fa6] | 46 |
|
---|
[c6cb3aa] | 47 | <sect2 id="contents-procps" role="content"><title>Contents of Procps</title>
|
---|
[673b0d8] | 48 |
|
---|
[c6cb3aa] | 49 | <segmentedlist>
|
---|
| 50 | <segtitle>Installed programs</segtitle>
|
---|
| 51 | <segtitle>Installed library</segtitle>
|
---|
| 52 | <seglistitem><seg>free, kill, pgrep, pkill,
|
---|
[69993f4] | 53 | pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w, and watch</seg>
|
---|
[c6cb3aa] | 54 | <seg>libproc.so</seg></seglistitem>
|
---|
| 55 | </segmentedlist>
|
---|
[673b0d8] | 56 |
|
---|
[2256873] | 57 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
[3ed279f] | 58 | <?dbfo list-presentation="list"?>
|
---|
[673b0d8] | 59 |
|
---|
[b8a819f] | 60 | <varlistentry id="free">
|
---|
| 61 | <term><command>free</command></term>
|
---|
[c6cb3aa] | 62 | <listitem>
|
---|
[2256873] | 63 | <para>Reports the amount of free and used memory (both physical and
|
---|
| 64 | swap memory) in the system</para>
|
---|
[3ed279f] | 65 | <indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
|
---|
[c6cb3aa] | 66 | </listitem>
|
---|
| 67 | </varlistentry>
|
---|
[673b0d8] | 68 |
|
---|
[b8a819f] | 69 | <varlistentry id="kill">
|
---|
| 70 | <term><command>kill</command></term>
|
---|
[c6cb3aa] | 71 | <listitem>
|
---|
[2256873] | 72 | <para>Sends signals to processes</para>
|
---|
[3ed279f] | 73 | <indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
|
---|
[c6cb3aa] | 74 | </listitem>
|
---|
| 75 | </varlistentry>
|
---|
[673b0d8] | 76 |
|
---|
[b8a819f] | 77 | <varlistentry id="pgrep">
|
---|
| 78 | <term><command>pgrep</command></term>
|
---|
[c6cb3aa] | 79 | <listitem>
|
---|
[2256873] | 80 | <para>Looks up processes based on their name and other attributes</para>
|
---|
[3ed279f] | 81 | <indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
|
---|
[c6cb3aa] | 82 | </listitem>
|
---|
| 83 | </varlistentry>
|
---|
[673b0d8] | 84 |
|
---|
[b8a819f] | 85 | <varlistentry id="pkill">
|
---|
| 86 | <term><command>pkill</command></term>
|
---|
[c6cb3aa] | 87 | <listitem>
|
---|
[2256873] | 88 | <para>Signals processes based on their name and other attributes</para>
|
---|
[3ed279f] | 89 | <indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
|
---|
[c6cb3aa] | 90 | </listitem>
|
---|
| 91 | </varlistentry>
|
---|
[673b0d8] | 92 |
|
---|
[b8a819f] | 93 | <varlistentry id="pmap">
|
---|
| 94 | <term><command>pmap</command></term>
|
---|
[c6cb3aa] | 95 | <listitem>
|
---|
[2256873] | 96 | <para>Reports the memory map of the given process</para>
|
---|
[3ed279f] | 97 | <indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
|
---|
[c6cb3aa] | 98 | </listitem>
|
---|
| 99 | </varlistentry>
|
---|
[673b0d8] | 100 |
|
---|
[b8a819f] | 101 | <varlistentry id="ps">
|
---|
| 102 | <term><command>ps</command></term>
|
---|
[c6cb3aa] | 103 | <listitem>
|
---|
[2256873] | 104 | <para>Lists the current running processes</para>
|
---|
[3ed279f] | 105 | <indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
|
---|
[c6cb3aa] | 106 | </listitem>
|
---|
| 107 | </varlistentry>
|
---|
[73aedd1d] | 108 |
|
---|
[b8a819f] | 109 | <varlistentry id="skill">
|
---|
| 110 | <term><command>skill</command></term>
|
---|
[c6cb3aa] | 111 | <listitem>
|
---|
[2256873] | 112 | <para>Sends signals to processes matching the given criteria</para>
|
---|
[3ed279f] | 113 | <indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
|
---|
[c6cb3aa] | 114 | </listitem>
|
---|
| 115 | </varlistentry>
|
---|
[673b0d8] | 116 |
|
---|
[b8a819f] | 117 | <varlistentry id="snice">
|
---|
| 118 | <term><command>snice</command></term>
|
---|
[c6cb3aa] | 119 | <listitem>
|
---|
[2256873] | 120 | <para>Changes the scheduling priority of processes matching the given criteria</para>
|
---|
[3ed279f] | 121 | <indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
|
---|
[c6cb3aa] | 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
[673b0d8] | 124 |
|
---|
[b8a819f] | 125 | <varlistentry id="sysctl">
|
---|
| 126 | <term><command>sysctl</command></term>
|
---|
[c6cb3aa] | 127 | <listitem>
|
---|
[2256873] | 128 | <para>Modifies kernel parameters at run time</para>
|
---|
[3ed279f] | 129 | <indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
|
---|
[c6cb3aa] | 130 | </listitem>
|
---|
| 131 | </varlistentry>
|
---|
[673b0d8] | 132 |
|
---|
[b8a819f] | 133 | <varlistentry id="tload">
|
---|
| 134 | <term><command>tload</command></term>
|
---|
[c6cb3aa] | 135 | <listitem>
|
---|
[2256873] | 136 | <para>Prints a graph of the current system load average</para>
|
---|
[3ed279f] | 137 | <indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
|
---|
[c6cb3aa] | 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
[673b0d8] | 140 |
|
---|
[b8a819f] | 141 | <varlistentry id="top">
|
---|
| 142 | <term><command>top</command></term>
|
---|
[c6cb3aa] | 143 | <listitem>
|
---|
[2256873] | 144 | <para>Displays the top CPU processes; it provides an ongoing look at
|
---|
| 145 | processor activity in real time</para>
|
---|
[3ed279f] | 146 | <indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
|
---|
[c6cb3aa] | 147 | </listitem>
|
---|
| 148 | </varlistentry>
|
---|
[673b0d8] | 149 |
|
---|
[b8a819f] | 150 | <varlistentry id="uptime">
|
---|
| 151 | <term><command>uptime</command></term>
|
---|
[c6cb3aa] | 152 | <listitem>
|
---|
[2256873] | 153 | <para>Reports how long the system has been running, how many users are
|
---|
| 154 | logged on, and the system load averages</para>
|
---|
[3ed279f] | 155 | <indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
|
---|
[c6cb3aa] | 156 | </listitem>
|
---|
| 157 | </varlistentry>
|
---|
[673b0d8] | 158 |
|
---|
[b8a819f] | 159 | <varlistentry id="vmstat">
|
---|
| 160 | <term><command>vmstat</command></term>
|
---|
[c6cb3aa] | 161 | <listitem>
|
---|
[2256873] | 162 | <para>Reports virtual memory statistics, giving information about
|
---|
| 163 | processes, memory, paging, block Input/Output (IO), traps, and CPU activity</para>
|
---|
[3ed279f] | 164 | <indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
|
---|
[c6cb3aa] | 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
[b8a819f] | 168 | <varlistentry id="w">
|
---|
| 169 | <term><command>w</command></term>
|
---|
[c6cb3aa] | 170 | <listitem>
|
---|
[2256873] | 171 | <para>Shows which users are currently logged on, where, and since when</para>
|
---|
[3ed279f] | 172 | <indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
|
---|
[c6cb3aa] | 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
[673b0d8] | 175 |
|
---|
[b8a819f] | 176 | <varlistentry id="watch">
|
---|
| 177 | <term><command>watch</command></term>
|
---|
[c6cb3aa] | 178 | <listitem>
|
---|
[2256873] | 179 | <para>Runs a given command repeatedly, displaying the first screen-full of its
|
---|
| 180 | output; this allows a user to watch the output change over time</para>
|
---|
[3ed279f] | 181 | <indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
|
---|
[c6cb3aa] | 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
[b8a819f] | 185 | <varlistentry id="libproc">
|
---|
[8ad7980] | 186 | <term><filename class="libraryfile">libproc</filename></term>
|
---|
[c6cb3aa] | 187 | <listitem>
|
---|
[2256873] | 188 | <para>Contains the functions used by most programs in this package</para>
|
---|
[3ed279f] | 189 | <indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
|
---|
[c6cb3aa] | 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 | </variablelist>
|
---|
[673b0d8] | 193 |
|
---|
| 194 | </sect2>
|
---|
| 195 |
|
---|
| 196 | </sect1>
|
---|
[ef13657] | 197 |
|
---|