procps.xml 9.5 KB

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