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