[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 | ]>
|
---|
[3be4d97] | 6 | <sect1 id="ch-system-procps" xreflabel="Procps">
|
---|
[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 |
|
---|
[5888299] | 12 | <para>The Procps package contains programs for monitoring processes.</para>
|
---|
| 13 |
|
---|
[673b0d8] | 14 | <screen>&buildtime; 0.1 SBU
|
---|
| 15 | &diskspace; 6.2 MB</screen>
|
---|
| 16 |
|
---|
| 17 | <para>Procps installation depends on: Bash, Binutils, Coreutils, GCC, Glibc,
|
---|
| 18 | Make, Ncurses.</para>
|
---|
[3554fa3a] | 19 |
|
---|
[73aedd1d] | 20 |
|
---|
| 21 |
|
---|
| 22 | <sect2>
|
---|
| 23 | <title>Installation of Procps</title>
|
---|
| 24 |
|
---|
[28acf75] | 25 | <para>Compile Procps:</para>
|
---|
[73aedd1d] | 26 |
|
---|
| 27 | <screen><userinput>make</userinput></screen>
|
---|
| 28 |
|
---|
| 29 | <para>Install it:</para>
|
---|
| 30 |
|
---|
| 31 | <screen><userinput>make install</userinput></screen>
|
---|
| 32 |
|
---|
[673b0d8] | 33 | <para>Remove a spurious library link:</para>
|
---|
[73aedd1d] | 34 |
|
---|
| 35 | <screen><userinput>rm /lib/libproc.so</userinput></screen>
|
---|
| 36 |
|
---|
| 37 | </sect2>
|
---|
[6370fa6] | 38 |
|
---|
[5888299] | 39 |
|
---|
[673b0d8] | 40 | <sect2 id="contents-procps"><title>Contents of Procps</title>
|
---|
| 41 |
|
---|
| 42 | <para><emphasis>Installed programs</emphasis>: free, kill, pgrep, pkill,
|
---|
| 43 | pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w and watch</para>
|
---|
| 44 |
|
---|
| 45 | <para><emphasis>Installed library</emphasis>: libproc.so</para>
|
---|
| 46 |
|
---|
| 47 | </sect2>
|
---|
| 48 |
|
---|
| 49 |
|
---|
| 50 | <sect2><title>Short descriptions</title>
|
---|
| 51 |
|
---|
| 52 | <indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
|
---|
| 53 | <para id="free"><command>free</command> reports the amount of free and used memory
|
---|
| 54 | in the system, both physical and swap memory.</para>
|
---|
| 55 |
|
---|
| 56 | <indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
|
---|
| 57 | <para id="kill"><command>kill</command> is used to send signals to processes.</para>
|
---|
| 58 |
|
---|
| 59 | <indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
|
---|
| 60 | <para id="pgrep"><command>pgrep</command> looks up processes based on their name
|
---|
| 61 | and other attributes.</para>
|
---|
| 62 |
|
---|
| 63 | <indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
|
---|
| 64 | <para id="pkill"><command>pkill</command> signals processes based on their name
|
---|
| 65 | and other attributes.</para>
|
---|
| 66 |
|
---|
| 67 | <indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
|
---|
| 68 | <para id="pmap"><command>pmap</command> reports the memory map of the given
|
---|
| 69 | process.</para>
|
---|
| 70 |
|
---|
| 71 | <indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
|
---|
| 72 | <para id="ps"><command>ps</command> gives a snapshot of the current processes.</para>
|
---|
[73aedd1d] | 73 |
|
---|
[673b0d8] | 74 | <indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
|
---|
| 75 | <para id="skill"><command>skill</command> sends signals to processes matching the
|
---|
| 76 | given criteria.</para>
|
---|
| 77 |
|
---|
| 78 | <indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
|
---|
| 79 | <para id="snice"><command>snice</command> changes the scheduling priority of processes
|
---|
| 80 | matching the given criteria.</para>
|
---|
| 81 |
|
---|
| 82 | <indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
|
---|
| 83 | <para id="sysctl"><command>sysctl</command> modifies kernel parameters at run time.</para>
|
---|
| 84 |
|
---|
| 85 | <indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
|
---|
| 86 | <para id="tload"><command>tload</command> prints a graph of the current system load
|
---|
| 87 | average.</para>
|
---|
| 88 |
|
---|
| 89 | <indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
|
---|
| 90 | <para id="top"><command>top</command> displays the top CPU processes. It provides
|
---|
| 91 | an ongoing look at processor activity in real time.</para>
|
---|
| 92 |
|
---|
| 93 | <indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
|
---|
| 94 | <para id="uptime"><command>uptime</command> reports how long the system has been
|
---|
| 95 | running, how many users are logged on, and the system load averages.</para>
|
---|
| 96 |
|
---|
| 97 | <indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
|
---|
| 98 | <para id="vmstat"><command>vmstat</command> reports virtual memory statistics, giving
|
---|
| 99 | information about processes, memory, paging, block IO, traps, and CPU
|
---|
| 100 | activity.</para>
|
---|
| 101 |
|
---|
| 102 | <indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
|
---|
| 103 | <para id="w"><command>w</command> shows which users are currently logged on,
|
---|
| 104 | where and since when.</para>
|
---|
| 105 |
|
---|
| 106 | <indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
|
---|
| 107 | <para id="watch"><command>watch</command> runs a given command repeatedly,
|
---|
| 108 | displaying the first screen-full of its output. This allows you to watch the
|
---|
| 109 | output change over time.</para>
|
---|
| 110 |
|
---|
| 111 | <indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
|
---|
| 112 | <para id="libproc"><command>libproc</command> contains the functions used by most
|
---|
| 113 | programs in this package.</para>
|
---|
| 114 |
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 |
|
---|
| 118 |
|
---|
| 119 | </sect1>
|
---|