procps.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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. The <command>which</command> is not available and the
  61. <command>pmap</command> test does not match a newline character in
  62. two tests. To run the test suite, run the following commands:</para>
  63. <screen><userinput remap="test">pushd testsuite
  64. sed -i 's|exec which sleep|exec echo /tools/bin/sleep|' config/unix.exp
  65. sed -i 's|pmap_initname\\\$|pmap_initname|' pmap.test/pmap.exp
  66. make site.exp
  67. DEJAGNU=global-conf.exp runtest
  68. popd</userinput></screen>
  69. <para>Install the package:</para>
  70. <screen><userinput remap="install">make install</userinput></screen>
  71. <para>Finally move the library to a location that can be found if
  72. <filename class="directory">/usr</filename> is not mounted.</para>
  73. <screen><userinput remap="install">mv -v /usr/lib/libprocps.so.* /lib
  74. ln -sfv ../../lib/libprocps.so.1.1.0 /usr/lib/libprocps.so</userinput></screen>
  75. </sect2>
  76. <sect2 id="contents-procps" role="content">
  77. <title>Contents of Procps-ng</title>
  78. <segmentedlist>
  79. <segtitle>Installed programs</segtitle>
  80. <segtitle>Installed library</segtitle>
  81. <seglistitem>
  82. <seg>free, pgrep, pkill, pmap, ps, pwdx, slabtop,
  83. sysctl, tload, top, uptime, vmstat, w, and, watch</seg>
  84. <seg>libprocps.so</seg>
  85. </seglistitem>
  86. </segmentedlist>
  87. <variablelist>
  88. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  89. <?dbfo list-presentation="list"?>
  90. <?dbhtml list-presentation="table"?>
  91. <varlistentry id="free">
  92. <term><command>free</command></term>
  93. <listitem>
  94. <para>Reports the amount of free and used memory (both physical and
  95. swap memory) in the system</para>
  96. <indexterm zone="ch-system-procps free">
  97. <primary sortas="b-free">free</primary>
  98. </indexterm>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry id="pgrep">
  102. <term><command>pgrep</command></term>
  103. <listitem>
  104. <para>Looks up processes based on their name and other attributes</para>
  105. <indexterm zone="ch-system-procps pgrep">
  106. <primary sortas="b-pgrep">pgrep</primary>
  107. </indexterm>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="pkill">
  111. <term><command>pkill</command></term>
  112. <listitem>
  113. <para>Signals processes based on their name and other attributes</para>
  114. <indexterm zone="ch-system-procps pkill">
  115. <primary sortas="b-pkill">pkill</primary>
  116. </indexterm>
  117. </listitem>
  118. </varlistentry>
  119. <varlistentry id="pmap">
  120. <term><command>pmap</command></term>
  121. <listitem>
  122. <para>Reports the memory map of the given process</para>
  123. <indexterm zone="ch-system-procps pmap">
  124. <primary sortas="b-pmap">pmap</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="ps">
  129. <term><command>ps</command></term>
  130. <listitem>
  131. <para>Lists the current running processes</para>
  132. <indexterm zone="ch-system-procps ps">
  133. <primary sortas="b-ps">ps</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="pwdx">
  138. <term><command>pwdx</command></term>
  139. <listitem>
  140. <para>Reports the current working directory of a process</para>
  141. <indexterm zone="ch-system-procps pwdx">
  142. <primary sortas="b-pwdx">pwdx</primary>
  143. </indexterm>
  144. </listitem>
  145. </varlistentry>
  146. <varlistentry id="slabtop">
  147. <term><command>slabtop</command></term>
  148. <listitem>
  149. <para>Displays detailed kernel slap cache information in real time</para>
  150. <indexterm zone="ch-system-procps slabtop">
  151. <primary sortas="b-slabtop">slabtop</primary>
  152. </indexterm>
  153. </listitem>
  154. </varlistentry>
  155. <varlistentry id="sysctl">
  156. <term><command>sysctl</command></term>
  157. <listitem>
  158. <para>Modifies kernel parameters at run time</para>
  159. <indexterm zone="ch-system-procps sysctl">
  160. <primary sortas="b-sysctl">sysctl</primary>
  161. </indexterm>
  162. </listitem>
  163. </varlistentry>
  164. <varlistentry id="tload">
  165. <term><command>tload</command></term>
  166. <listitem>
  167. <para>Prints a graph of the current system load average</para>
  168. <indexterm zone="ch-system-procps tload">
  169. <primary sortas="b-tload">tload</primary>
  170. </indexterm>
  171. </listitem>
  172. </varlistentry>
  173. <varlistentry id="top">
  174. <term><command>top</command></term>
  175. <listitem>
  176. <para>Displays a list of the most CPU intensive processes; it
  177. provides an ongoing look at processor activity in real time</para>
  178. <indexterm zone="ch-system-procps top">
  179. <primary sortas="b-top">top</primary>
  180. </indexterm>
  181. </listitem>
  182. </varlistentry>
  183. <varlistentry id="uptime">
  184. <term><command>uptime</command></term>
  185. <listitem>
  186. <para>Reports how long the system has been running, how many users are
  187. logged on, and the system load averages</para>
  188. <indexterm zone="ch-system-procps uptime">
  189. <primary sortas="b-uptime">uptime</primary>
  190. </indexterm>
  191. </listitem>
  192. </varlistentry>
  193. <varlistentry id="vmstat">
  194. <term><command>vmstat</command></term>
  195. <listitem>
  196. <para>Reports virtual memory statistics, giving information about
  197. processes, memory, paging, block Input/Output (IO), traps, and CPU
  198. activity</para>
  199. <indexterm zone="ch-system-procps vmstat">
  200. <primary sortas="b-vmstat">vmstat</primary>
  201. </indexterm>
  202. </listitem>
  203. </varlistentry>
  204. <varlistentry id="w">
  205. <term><command>w</command></term>
  206. <listitem>
  207. <para>Shows which users are currently logged on, where, and since
  208. when</para>
  209. <indexterm zone="ch-system-procps w">
  210. <primary sortas="b-w">w</primary>
  211. </indexterm>
  212. </listitem>
  213. </varlistentry>
  214. <varlistentry id="watch">
  215. <term><command>watch</command></term>
  216. <listitem>
  217. <para>Runs a given command repeatedly, displaying the first
  218. screen-full of its output; this allows a user to watch the output
  219. change over time</para>
  220. <indexterm zone="ch-system-procps watch">
  221. <primary sortas="b-watch">watch</primary>
  222. </indexterm>
  223. </listitem>
  224. </varlistentry>
  225. <varlistentry id="libprocps">
  226. <term><filename class="libraryfile">libproc</filename></term>
  227. <listitem>
  228. <para>Contains the functions used by most programs in this
  229. package</para>
  230. <indexterm zone="ch-system-procps libprocps">
  231. <primary sortas="c-libprocps">libprocps</primary>
  232. </indexterm>
  233. </listitem>
  234. </varlistentry>
  235. </variablelist>
  236. </sect2>
  237. </sect1>