procps.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. ]>
  6. <sect1 id="ch-system-procps" xreflabel="Procps" role="wrap">
  7. <title>Procps-&procps-version;</title>
  8. <?dbhtml filename="procps.html"?>
  9. <indexterm zone="ch-system-procps"><primary sortas="a-Procps">Procps</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Procps package contains programs for monitoring processes.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.1 SBU</seg><seg>6.2 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Procps installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, GCC, Glibc,
  20. Make, Ncurses</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Procps</title>
  25. <para>Compile Procps:</para>
  26. <screen><userinput>make</userinput></screen>
  27. <para>Install it:</para>
  28. <screen><userinput>make install</userinput></screen>
  29. <para>Remove a spurious library link:</para>
  30. <screen><userinput>rm /lib/libproc.so</userinput></screen>
  31. </sect2>
  32. <sect2 id="contents-procps" role="content"><title>Contents of Procps</title>
  33. <segmentedlist>
  34. <segtitle>Installed programs</segtitle>
  35. <segtitle>Installed library</segtitle>
  36. <seglistitem><seg>free, kill, pgrep, pkill,
  37. pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w and watch</seg>
  38. <seg>libproc.so</seg></seglistitem>
  39. </segmentedlist>
  40. <variablelist><title>Short descriptions</title>
  41. <varlistentry id="free">
  42. <term><command>free</command></term>
  43. <listitem>
  44. <indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
  45. <para>reports the amount of free and used memory
  46. in the system, both physical and swap memory.</para>
  47. </listitem>
  48. </varlistentry>
  49. <varlistentry id="kill">
  50. <term><command>kill</command></term>
  51. <listitem>
  52. <indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
  53. <para>is used to send signals to processes.</para>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry id="pgrep">
  57. <term><command>pgrep</command></term>
  58. <listitem>
  59. <indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
  60. <para>looks up processes based on their name and other attributes.</para>
  61. </listitem>
  62. </varlistentry>
  63. <varlistentry id="pkill">
  64. <term><command>pkill</command></term>
  65. <listitem>
  66. <indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
  67. <para>signals processes based on their name and other attributes.</para>
  68. </listitem>
  69. </varlistentry>
  70. <varlistentry id="pmap">
  71. <term><command>pmap</command></term>
  72. <listitem>
  73. <indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
  74. <para>reports the memory map of the given process.</para>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry id="ps">
  78. <term><command>ps</command></term>
  79. <listitem>
  80. <indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
  81. <para>gives a snapshot of the current processes.</para>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="skill">
  85. <term><command>skill</command></term>
  86. <listitem>
  87. <indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
  88. <para>sends signals to processes matching the given criteria.</para>
  89. </listitem>
  90. </varlistentry>
  91. <varlistentry id="snice">
  92. <term><command>snice</command></term>
  93. <listitem>
  94. <indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
  95. <para>changes the scheduling priority of processes matching the given criteria.</para>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry id="sysctl">
  99. <term><command>sysctl</command></term>
  100. <listitem>
  101. <indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
  102. <para>modifies kernel parameters at run time.</para>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="tload">
  106. <term><command>tload</command></term>
  107. <listitem>
  108. <indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
  109. <para>prints a graph of the current system load average.</para>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="top">
  113. <term><command>top</command></term>
  114. <listitem>
  115. <indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
  116. <para>displays the top CPU processes. It provides
  117. an ongoing look at processor activity in real time.</para>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="uptime">
  121. <term><command>uptime</command></term>
  122. <listitem>
  123. <indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
  124. <para>reports how long the system has been
  125. running, how many users are logged on, and the system load averages.</para>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="vmstat">
  129. <term><command>vmstat</command></term>
  130. <listitem>
  131. <indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
  132. <para>reports virtual memory statistics, giving information about processes,
  133. memory, paging, block IO, traps, and CPU activity.</para>
  134. </listitem>
  135. </varlistentry>
  136. <varlistentry id="w">
  137. <term><command>w</command></term>
  138. <listitem>
  139. <indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
  140. <para>shows which users are currently logged on, where and since when.</para>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="watch">
  144. <term><command>watch</command></term>
  145. <listitem>
  146. <indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
  147. <para>runs a given command repeatedly, displaying the first screen-full of its
  148. output. This allows you to watch the output change over time.</para>
  149. </listitem>
  150. </varlistentry>
  151. <varlistentry id="libproc">
  152. <term><filename class="libraryfile">libproc</filename></term>
  153. <listitem>
  154. <indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
  155. <para>contains the functions used by most programs in this package.</para>
  156. </listitem>
  157. </varlistentry>
  158. </variablelist>
  159. </sect2>
  160. </sect1>