[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 |
|
---|
| 35 | <para>Install it:</para>
|
---|
| 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 |
|
---|
[673b0d8] | 46 | <sect2 id="contents-procps"><title>Contents of Procps</title>
|
---|
| 47 |
|
---|
| 48 | <para><emphasis>Installed programs</emphasis>: free, kill, pgrep, pkill,
|
---|
| 49 | pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w and watch</para>
|
---|
| 50 |
|
---|
| 51 | <para><emphasis>Installed library</emphasis>: libproc.so</para>
|
---|
| 52 |
|
---|
| 53 | </sect2>
|
---|
| 54 |
|
---|
| 55 |
|
---|
| 56 | <sect2><title>Short descriptions</title>
|
---|
| 57 |
|
---|
| 58 | <indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
|
---|
| 59 | <para id="free"><command>free</command> reports the amount of free and used memory
|
---|
| 60 | in the system, both physical and swap memory.</para>
|
---|
| 61 |
|
---|
| 62 | <indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
|
---|
| 63 | <para id="kill"><command>kill</command> is used to send signals to processes.</para>
|
---|
| 64 |
|
---|
| 65 | <indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
|
---|
| 66 | <para id="pgrep"><command>pgrep</command> looks up processes based on their name
|
---|
| 67 | and other attributes.</para>
|
---|
| 68 |
|
---|
| 69 | <indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
|
---|
| 70 | <para id="pkill"><command>pkill</command> signals processes based on their name
|
---|
| 71 | and other attributes.</para>
|
---|
| 72 |
|
---|
| 73 | <indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
|
---|
| 74 | <para id="pmap"><command>pmap</command> reports the memory map of the given
|
---|
| 75 | process.</para>
|
---|
| 76 |
|
---|
| 77 | <indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
|
---|
| 78 | <para id="ps"><command>ps</command> gives a snapshot of the current processes.</para>
|
---|
[73aedd1d] | 79 |
|
---|
[673b0d8] | 80 | <indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
|
---|
| 81 | <para id="skill"><command>skill</command> sends signals to processes matching the
|
---|
| 82 | given criteria.</para>
|
---|
| 83 |
|
---|
| 84 | <indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
|
---|
| 85 | <para id="snice"><command>snice</command> changes the scheduling priority of processes
|
---|
| 86 | matching the given criteria.</para>
|
---|
| 87 |
|
---|
| 88 | <indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
|
---|
| 89 | <para id="sysctl"><command>sysctl</command> modifies kernel parameters at run time.</para>
|
---|
| 90 |
|
---|
| 91 | <indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
|
---|
| 92 | <para id="tload"><command>tload</command> prints a graph of the current system load
|
---|
| 93 | average.</para>
|
---|
| 94 |
|
---|
| 95 | <indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
|
---|
| 96 | <para id="top"><command>top</command> displays the top CPU processes. It provides
|
---|
| 97 | an ongoing look at processor activity in real time.</para>
|
---|
| 98 |
|
---|
| 99 | <indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
|
---|
| 100 | <para id="uptime"><command>uptime</command> reports how long the system has been
|
---|
| 101 | running, how many users are logged on, and the system load averages.</para>
|
---|
| 102 |
|
---|
| 103 | <indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
|
---|
| 104 | <para id="vmstat"><command>vmstat</command> reports virtual memory statistics, giving
|
---|
| 105 | information about processes, memory, paging, block IO, traps, and CPU
|
---|
| 106 | activity.</para>
|
---|
| 107 |
|
---|
| 108 | <indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
|
---|
| 109 | <para id="w"><command>w</command> shows which users are currently logged on,
|
---|
| 110 | where and since when.</para>
|
---|
| 111 |
|
---|
| 112 | <indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
|
---|
| 113 | <para id="watch"><command>watch</command> runs a given command repeatedly,
|
---|
| 114 | displaying the first screen-full of its output. This allows you to watch the
|
---|
| 115 | output change over time.</para>
|
---|
| 116 |
|
---|
| 117 | <indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
|
---|
| 118 | <para id="libproc"><command>libproc</command> contains the functions used by most
|
---|
| 119 | programs in this package.</para>
|
---|
| 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 |
|
---|
| 124 |
|
---|
| 125 | </sect1>
|
---|