procps.xml 9.0 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-ng.html"?>
  9. <sect1info condition="script">
  10. <productname>procps-ng</productname>
  11. <productnumber>&procps-ng-version;</productnumber>
  12. <address>&procps-ng-url;</address>
  13. </sect1info>
  14. <title>Procps-ng-&procps-ng-version;</title>
  15. <indexterm zone="ch-system-procps">
  16. <primary sortas="a-Procps">Procps-ng</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Procps-ng package contains programs for monitoring processes.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&procps-ng-ch6-sbu;</seg>
  26. <seg>&procps-ng-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Procps-ng</title>
  32. <para>Now prepare procps-ng for compilation:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/usr \
  34. --exec-prefix= \
  35. --libdir=/usr/lib \
  36. --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
  37. --disable-static \
  38. --disable-skill \
  39. --disable-kill</userinput></screen>
  40. <variablelist>
  41. <title>The meaning of the configure options:</title>
  42. <varlistentry>
  43. <term><parameter>--disable-skill</parameter></term>
  44. <listitem>
  45. <para>This switch disables the obsolete and unportable
  46. skill and snice commands.</para>
  47. </listitem>
  48. </varlistentry>
  49. <varlistentry>
  50. <term><parameter>--disable-kill</parameter></term>
  51. <listitem>
  52. <para>This switch disables building the kill command that
  53. was installed in the util-linux package.</para>
  54. </listitem>
  55. </varlistentry>
  56. </variablelist>
  57. <para>Compile the package:</para>
  58. <screen><userinput remap="make">make</userinput></screen>
  59. <para>The test suite needs some custom modifications for LFS.
  60. Remove the test that fails when scripting does not use a tty device.
  61. To run the test suite, run the following commands:</para>
  62. <screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
  63. make check</userinput></screen>
  64. <para>Install the package:</para>
  65. <screen><userinput remap="install">make install</userinput></screen>
  66. <para>Finally, move the library to a location that can be found if
  67. <filename class="directory">/usr</filename> is not mounted.</para>
  68. <screen><userinput remap="install">mv -v /usr/lib/libprocps.so.* /lib
  69. ln -sfv ../../lib/libprocps.so.1.1.2 /usr/lib/libprocps.so</userinput></screen>
  70. </sect2>
  71. <sect2 id="contents-procps" role="content">
  72. <title>Contents of Procps-ng</title>
  73. <segmentedlist>
  74. <segtitle>Installed programs</segtitle>
  75. <segtitle>Installed library</segtitle>
  76. <seglistitem>
  77. <seg>free, pgrep, pkill, pmap, ps, pwdx, slabtop,
  78. sysctl, tload, top, uptime, vmstat, w, and, watch</seg>
  79. <seg>libprocps.so</seg>
  80. </seglistitem>
  81. </segmentedlist>
  82. <variablelist>
  83. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  84. <?dbfo list-presentation="list"?>
  85. <?dbhtml list-presentation="table"?>
  86. <varlistentry id="free">
  87. <term><command>free</command></term>
  88. <listitem>
  89. <para>Reports the amount of free and used memory (both physical and
  90. swap memory) in the system</para>
  91. <indexterm zone="ch-system-procps free">
  92. <primary sortas="b-free">free</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="pgrep">
  97. <term><command>pgrep</command></term>
  98. <listitem>
  99. <para>Looks up processes based on their name and other attributes</para>
  100. <indexterm zone="ch-system-procps pgrep">
  101. <primary sortas="b-pgrep">pgrep</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="pkill">
  106. <term><command>pkill</command></term>
  107. <listitem>
  108. <para>Signals processes based on their name and other attributes</para>
  109. <indexterm zone="ch-system-procps pkill">
  110. <primary sortas="b-pkill">pkill</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="pmap">
  115. <term><command>pmap</command></term>
  116. <listitem>
  117. <para>Reports the memory map of the given process</para>
  118. <indexterm zone="ch-system-procps pmap">
  119. <primary sortas="b-pmap">pmap</primary>
  120. </indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="ps">
  124. <term><command>ps</command></term>
  125. <listitem>
  126. <para>Lists the current running processes</para>
  127. <indexterm zone="ch-system-procps ps">
  128. <primary sortas="b-ps">ps</primary>
  129. </indexterm>
  130. </listitem>
  131. </varlistentry>
  132. <varlistentry id="pwdx">
  133. <term><command>pwdx</command></term>
  134. <listitem>
  135. <para>Reports the current working directory of a process</para>
  136. <indexterm zone="ch-system-procps pwdx">
  137. <primary sortas="b-pwdx">pwdx</primary>
  138. </indexterm>
  139. </listitem>
  140. </varlistentry>
  141. <varlistentry id="slabtop">
  142. <term><command>slabtop</command></term>
  143. <listitem>
  144. <para>Displays detailed kernel slap cache information in real time</para>
  145. <indexterm zone="ch-system-procps slabtop">
  146. <primary sortas="b-slabtop">slabtop</primary>
  147. </indexterm>
  148. </listitem>
  149. </varlistentry>
  150. <varlistentry id="sysctl">
  151. <term><command>sysctl</command></term>
  152. <listitem>
  153. <para>Modifies kernel parameters at run time</para>
  154. <indexterm zone="ch-system-procps sysctl">
  155. <primary sortas="b-sysctl">sysctl</primary>
  156. </indexterm>
  157. </listitem>
  158. </varlistentry>
  159. <varlistentry id="tload">
  160. <term><command>tload</command></term>
  161. <listitem>
  162. <para>Prints a graph of the current system load average</para>
  163. <indexterm zone="ch-system-procps tload">
  164. <primary sortas="b-tload">tload</primary>
  165. </indexterm>
  166. </listitem>
  167. </varlistentry>
  168. <varlistentry id="top">
  169. <term><command>top</command></term>
  170. <listitem>
  171. <para>Displays a list of the most CPU intensive processes; it
  172. provides an ongoing look at processor activity in real time</para>
  173. <indexterm zone="ch-system-procps top">
  174. <primary sortas="b-top">top</primary>
  175. </indexterm>
  176. </listitem>
  177. </varlistentry>
  178. <varlistentry id="uptime">
  179. <term><command>uptime</command></term>
  180. <listitem>
  181. <para>Reports how long the system has been running, how many users are
  182. logged on, and the system load averages</para>
  183. <indexterm zone="ch-system-procps uptime">
  184. <primary sortas="b-uptime">uptime</primary>
  185. </indexterm>
  186. </listitem>
  187. </varlistentry>
  188. <varlistentry id="vmstat">
  189. <term><command>vmstat</command></term>
  190. <listitem>
  191. <para>Reports virtual memory statistics, giving information about
  192. processes, memory, paging, block Input/Output (IO), traps, and CPU
  193. activity</para>
  194. <indexterm zone="ch-system-procps vmstat">
  195. <primary sortas="b-vmstat">vmstat</primary>
  196. </indexterm>
  197. </listitem>
  198. </varlistentry>
  199. <varlistentry id="w">
  200. <term><command>w</command></term>
  201. <listitem>
  202. <para>Shows which users are currently logged on, where, and since
  203. when</para>
  204. <indexterm zone="ch-system-procps w">
  205. <primary sortas="b-w">w</primary>
  206. </indexterm>
  207. </listitem>
  208. </varlistentry>
  209. <varlistentry id="watch">
  210. <term><command>watch</command></term>
  211. <listitem>
  212. <para>Runs a given command repeatedly, displaying the first
  213. screen-full of its output; this allows a user to watch the output
  214. change over time</para>
  215. <indexterm zone="ch-system-procps watch">
  216. <primary sortas="b-watch">watch</primary>
  217. </indexterm>
  218. </listitem>
  219. </varlistentry>
  220. <varlistentry id="libprocps">
  221. <term><filename class="libraryfile">libproc</filename></term>
  222. <listitem>
  223. <para>Contains the functions used by most programs in this
  224. package</para>
  225. <indexterm zone="ch-system-procps libprocps">
  226. <primary sortas="c-libprocps">libprocps</primary>
  227. </indexterm>
  228. </listitem>
  229. </varlistentry>
  230. </variablelist>
  231. </sect2>
  232. </sect1>