procps.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-procps" role="wrap">
  8. <?dbhtml filename="procps.html"?>
  9. <sect1info condition="script">
  10. <productname>procps</productname>
  11. <productnumber>&procps-version;</productnumber>
  12. <address>&procps-url;</address>
  13. </sect1info>
  14. <title>Procps-&procps-version;</title>
  15. <indexterm zone="ch-system-procps">
  16. <primary sortas="a-Procps">Procps</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Procps package contains programs for monitoring processes.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&procps-ch6-sbu;</seg>
  26. <seg>&procps-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Procps</title>
  32. <para>Apply a patch to prevent an error message from being displayed when
  33. determining the kernel clock tick rate:</para>
  34. <screen><userinput remap="pre">patch -Np1 -i ../&procps-hz_fixes-patch;</userinput></screen>
  35. <para>Apply a patch to fix a unicode related issue in the
  36. <command>watch</command> program:</para>
  37. <screen><userinput remap="pre">patch -Np1 -i ../&procps-watch-patch;</userinput></screen>
  38. <para>Do not install the kill program because it was installed by util-linux.
  39. Also fix a bug in the Makefile, which prevents procps from building with
  40. make-&make-version;:</para>
  41. <screen><userinput remap="pre">sed -i -e 's@\*/module.mk@proc/module.mk ps/module.mk@' \
  42. -e 's@^#SKIP@SKIP@' Makefile</userinput></screen>
  43. <para>Compile the package:</para>
  44. <screen><userinput remap="make">make</userinput></screen>
  45. <para>This package does not come with a test suite.</para>
  46. <para>Install the package:</para>
  47. <screen><userinput remap="install">make install</userinput></screen>
  48. </sect2>
  49. <sect2 id="contents-procps" role="content">
  50. <title>Contents of Procps</title>
  51. <segmentedlist>
  52. <segtitle>Installed programs</segtitle>
  53. <segtitle>Installed library</segtitle>
  54. <seglistitem>
  55. <seg>free, pgrep, pkill, pmap, ps, pwdx, skill, slabtop, snice,
  56. sysctl, tload, top, uptime, vmstat, w, and watch</seg>
  57. <seg>libproc.so</seg>
  58. </seglistitem>
  59. </segmentedlist>
  60. <variablelist>
  61. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  62. <?dbfo list-presentation="list"?>
  63. <?dbhtml list-presentation="table"?>
  64. <varlistentry id="free">
  65. <term><command>free</command></term>
  66. <listitem>
  67. <para>Reports the amount of free and used memory (both physical and
  68. swap memory) in the system</para>
  69. <indexterm zone="ch-system-procps free">
  70. <primary sortas="b-free">free</primary>
  71. </indexterm>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry id="pgrep">
  75. <term><command>pgrep</command></term>
  76. <listitem>
  77. <para>Looks up processes based on their name and other attributes</para>
  78. <indexterm zone="ch-system-procps pgrep">
  79. <primary sortas="b-pgrep">pgrep</primary>
  80. </indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="pkill">
  84. <term><command>pkill</command></term>
  85. <listitem>
  86. <para>Signals processes based on their name and other attributes</para>
  87. <indexterm zone="ch-system-procps pkill">
  88. <primary sortas="b-pkill">pkill</primary>
  89. </indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="pmap">
  93. <term><command>pmap</command></term>
  94. <listitem>
  95. <para>Reports the memory map of the given process</para>
  96. <indexterm zone="ch-system-procps pmap">
  97. <primary sortas="b-pmap">pmap</primary>
  98. </indexterm>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry id="ps">
  102. <term><command>ps</command></term>
  103. <listitem>
  104. <para>Lists the current running processes</para>
  105. <indexterm zone="ch-system-procps ps">
  106. <primary sortas="b-ps">ps</primary>
  107. </indexterm>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="pwdx">
  111. <term><command>pwdx</command></term>
  112. <listitem>
  113. <para>Reports the current working directory of a process</para>
  114. <indexterm zone="ch-system-procps pwdx">
  115. <primary sortas="b-pwdx">pwdx</primary>
  116. </indexterm>
  117. </listitem>
  118. </varlistentry>
  119. <varlistentry id="skill">
  120. <term><command>skill</command></term>
  121. <listitem>
  122. <para>Sends signals to processes matching the given criteria</para>
  123. <indexterm zone="ch-system-procps skill">
  124. <primary sortas="b-skill">skill</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="slabtop">
  129. <term><command>slabtop</command></term>
  130. <listitem>
  131. <para>Displays detailed kernel slap cache information in real time</para>
  132. <indexterm zone="ch-system-procps slabtop">
  133. <primary sortas="b-slabtop">slabtop</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="snice">
  138. <term><command>snice</command></term>
  139. <listitem>
  140. <para>Changes the scheduling priority of processes matching the given
  141. criteria</para>
  142. <indexterm zone="ch-system-procps snice">
  143. <primary sortas="b-snice">snice</primary>
  144. </indexterm>
  145. </listitem>
  146. </varlistentry>
  147. <varlistentry id="sysctl">
  148. <term><command>sysctl</command></term>
  149. <listitem>
  150. <para>Modifies kernel parameters at run time</para>
  151. <indexterm zone="ch-system-procps sysctl">
  152. <primary sortas="b-sysctl">sysctl</primary>
  153. </indexterm>
  154. </listitem>
  155. </varlistentry>
  156. <varlistentry id="tload">
  157. <term><command>tload</command></term>
  158. <listitem>
  159. <para>Prints a graph of the current system load average</para>
  160. <indexterm zone="ch-system-procps tload">
  161. <primary sortas="b-tload">tload</primary>
  162. </indexterm>
  163. </listitem>
  164. </varlistentry>
  165. <varlistentry id="top">
  166. <term><command>top</command></term>
  167. <listitem>
  168. <para>Displays a list of the most CPU intensive processes; it
  169. provides an ongoing look at processor activity in real time</para>
  170. <indexterm zone="ch-system-procps top">
  171. <primary sortas="b-top">top</primary>
  172. </indexterm>
  173. </listitem>
  174. </varlistentry>
  175. <varlistentry id="uptime">
  176. <term><command>uptime</command></term>
  177. <listitem>
  178. <para>Reports how long the system has been running, how many users are
  179. logged on, and the system load averages</para>
  180. <indexterm zone="ch-system-procps uptime">
  181. <primary sortas="b-uptime">uptime</primary>
  182. </indexterm>
  183. </listitem>
  184. </varlistentry>
  185. <varlistentry id="vmstat">
  186. <term><command>vmstat</command></term>
  187. <listitem>
  188. <para>Reports virtual memory statistics, giving information about
  189. processes, memory, paging, block Input/Output (IO), traps, and CPU
  190. activity</para>
  191. <indexterm zone="ch-system-procps vmstat">
  192. <primary sortas="b-vmstat">vmstat</primary>
  193. </indexterm>
  194. </listitem>
  195. </varlistentry>
  196. <varlistentry id="w">
  197. <term><command>w</command></term>
  198. <listitem>
  199. <para>Shows which users are currently logged on, where, and since
  200. when</para>
  201. <indexterm zone="ch-system-procps w">
  202. <primary sortas="b-w">w</primary>
  203. </indexterm>
  204. </listitem>
  205. </varlistentry>
  206. <varlistentry id="watch">
  207. <term><command>watch</command></term>
  208. <listitem>
  209. <para>Runs a given command repeatedly, displaying the first
  210. screen-full of its output; this allows a user to watch the output
  211. change over time</para>
  212. <indexterm zone="ch-system-procps watch">
  213. <primary sortas="b-watch">watch</primary>
  214. </indexterm>
  215. </listitem>
  216. </varlistentry>
  217. <varlistentry id="libproc">
  218. <term><filename class="libraryfile">libproc</filename></term>
  219. <listitem>
  220. <para>Contains the functions used by most programs in this
  221. package</para>
  222. <indexterm zone="ch-system-procps libproc">
  223. <primary sortas="c-libproc">libproc</primary>
  224. </indexterm>
  225. </listitem>
  226. </varlistentry>
  227. </variablelist>
  228. </sect2>
  229. </sect1>