procps.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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 fix a unicode related issue in the
  33. <command>watch</command> program:</para>
  34. <screen><userinput remap="pre">patch -Np1 -i ../&procps-watch-patch;</userinput></screen>
  35. <para>Fix a bug in the Makefile, which prevents procps from building with
  36. make-&make-version;:</para>
  37. <screen><userinput remap="pre">sed -i -e 's@\*/module.mk@proc/module.mk ps/module.mk@' Makefile</userinput></screen>
  38. <para>Compile the package:</para>
  39. <screen><userinput remap="make">make</userinput></screen>
  40. <para>This package does not come with a test suite.</para>
  41. <para>Install the package:</para>
  42. <screen><userinput remap="install">make install</userinput></screen>
  43. </sect2>
  44. <sect2 id="contents-procps" role="content">
  45. <title>Contents of Procps</title>
  46. <segmentedlist>
  47. <segtitle>Installed programs</segtitle>
  48. <segtitle>Installed library</segtitle>
  49. <seglistitem>
  50. <seg>free, kill, pgrep, pkill, pmap, ps, pwdx, skill, slabtop, snice,
  51. sysctl, tload, top, uptime, vmstat, w, and watch</seg>
  52. <seg>libproc.so</seg>
  53. </seglistitem>
  54. </segmentedlist>
  55. <variablelist>
  56. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  57. <?dbfo list-presentation="list"?>
  58. <?dbhtml list-presentation="table"?>
  59. <varlistentry id="free">
  60. <term><command>free</command></term>
  61. <listitem>
  62. <para>Reports the amount of free and used memory (both physical and
  63. swap memory) in the system</para>
  64. <indexterm zone="ch-system-procps free">
  65. <primary sortas="b-free">free</primary>
  66. </indexterm>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry id="kill">
  70. <term><command>kill</command></term>
  71. <listitem>
  72. <para>Sends signals to processes</para>
  73. <indexterm zone="ch-system-procps kill">
  74. <primary sortas="b-kill">kill</primary>
  75. </indexterm>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry id="pgrep">
  79. <term><command>pgrep</command></term>
  80. <listitem>
  81. <para>Looks up processes based on their name and other attributes</para>
  82. <indexterm zone="ch-system-procps pgrep">
  83. <primary sortas="b-pgrep">pgrep</primary>
  84. </indexterm>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry id="pkill">
  88. <term><command>pkill</command></term>
  89. <listitem>
  90. <para>Signals processes based on their name and other attributes</para>
  91. <indexterm zone="ch-system-procps pkill">
  92. <primary sortas="b-pkill">pkill</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="pmap">
  97. <term><command>pmap</command></term>
  98. <listitem>
  99. <para>Reports the memory map of the given process</para>
  100. <indexterm zone="ch-system-procps pmap">
  101. <primary sortas="b-pmap">pmap</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="ps">
  106. <term><command>ps</command></term>
  107. <listitem>
  108. <para>Lists the current running processes</para>
  109. <indexterm zone="ch-system-procps ps">
  110. <primary sortas="b-ps">ps</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="pwdx">
  115. <term><command>pwdx</command></term>
  116. <listitem>
  117. <para>Reports the current working directory of a process</para>
  118. <indexterm zone="ch-system-procps pwdx">
  119. <primary sortas="b-pwdx">pwdx</primary>
  120. </indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="skill">
  124. <term><command>skill</command></term>
  125. <listitem>
  126. <para>Sends signals to processes matching the given criteria</para>
  127. <indexterm zone="ch-system-procps skill">
  128. <primary sortas="b-skill">skill</primary>
  129. </indexterm>
  130. </listitem>
  131. </varlistentry>
  132. <varlistentry id="slabtop">
  133. <term><command>slabtop</command></term>
  134. <listitem>
  135. <para>Displays detailed kernel slap cache information in real time</para>
  136. <indexterm zone="ch-system-procps slabtop">
  137. <primary sortas="b-slabtop">slabtop</primary>
  138. </indexterm>
  139. </listitem>
  140. </varlistentry>
  141. <varlistentry id="snice">
  142. <term><command>snice</command></term>
  143. <listitem>
  144. <para>Changes the scheduling priority of processes matching the given
  145. criteria</para>
  146. <indexterm zone="ch-system-procps snice">
  147. <primary sortas="b-snice">snice</primary>
  148. </indexterm>
  149. </listitem>
  150. </varlistentry>
  151. <varlistentry id="sysctl">
  152. <term><command>sysctl</command></term>
  153. <listitem>
  154. <para>Modifies kernel parameters at run time</para>
  155. <indexterm zone="ch-system-procps sysctl">
  156. <primary sortas="b-sysctl">sysctl</primary>
  157. </indexterm>
  158. </listitem>
  159. </varlistentry>
  160. <varlistentry id="tload">
  161. <term><command>tload</command></term>
  162. <listitem>
  163. <para>Prints a graph of the current system load average</para>
  164. <indexterm zone="ch-system-procps tload">
  165. <primary sortas="b-tload">tload</primary>
  166. </indexterm>
  167. </listitem>
  168. </varlistentry>
  169. <varlistentry id="top">
  170. <term><command>top</command></term>
  171. <listitem>
  172. <para>Displays a list of the most CPU intensive processes; it
  173. provides an ongoing look at processor activity in real time</para>
  174. <indexterm zone="ch-system-procps top">
  175. <primary sortas="b-top">top</primary>
  176. </indexterm>
  177. </listitem>
  178. </varlistentry>
  179. <varlistentry id="uptime">
  180. <term><command>uptime</command></term>
  181. <listitem>
  182. <para>Reports how long the system has been running, how many users are
  183. logged on, and the system load averages</para>
  184. <indexterm zone="ch-system-procps uptime">
  185. <primary sortas="b-uptime">uptime</primary>
  186. </indexterm>
  187. </listitem>
  188. </varlistentry>
  189. <varlistentry id="vmstat">
  190. <term><command>vmstat</command></term>
  191. <listitem>
  192. <para>Reports virtual memory statistics, giving information about
  193. processes, memory, paging, block Input/Output (IO), traps, and CPU
  194. activity</para>
  195. <indexterm zone="ch-system-procps vmstat">
  196. <primary sortas="b-vmstat">vmstat</primary>
  197. </indexterm>
  198. </listitem>
  199. </varlistentry>
  200. <varlistentry id="w">
  201. <term><command>w</command></term>
  202. <listitem>
  203. <para>Shows which users are currently logged on, where, and since
  204. when</para>
  205. <indexterm zone="ch-system-procps w">
  206. <primary sortas="b-w">w</primary>
  207. </indexterm>
  208. </listitem>
  209. </varlistentry>
  210. <varlistentry id="watch">
  211. <term><command>watch</command></term>
  212. <listitem>
  213. <para>Runs a given command repeatedly, displaying the first
  214. screen-full of its output; this allows a user to watch the output
  215. change over time</para>
  216. <indexterm zone="ch-system-procps watch">
  217. <primary sortas="b-watch">watch</primary>
  218. </indexterm>
  219. </listitem>
  220. </varlistentry>
  221. <varlistentry id="libproc">
  222. <term><filename class="libraryfile">libproc</filename></term>
  223. <listitem>
  224. <para>Contains the functions used by most programs in this
  225. package</para>
  226. <indexterm zone="ch-system-procps libproc">
  227. <primary sortas="c-libproc">libproc</primary>
  228. </indexterm>
  229. </listitem>
  230. </varlistentry>
  231. </variablelist>
  232. </sect2>
  233. </sect1>