procps.xml 11 KB

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