procps.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-procps" xreflabel="Procps" role="wrap">
  7. <title>Procps-&procps-version;</title>
  8. <?dbhtml filename="procps.html"?>
  9. <indexterm zone="ch-system-procps"><primary sortas="a-Procps">Procps</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Procps package contains programs for monitoring processes.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.1 SBU</seg><seg>6.2 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Procps installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, GCC, Glibc,
  20. Make, Ncurses</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Procps</title>
  25. <para>Compile Procps:</para>
  26. <screen><userinput>make</userinput></screen>
  27. <para>Install it:</para>
  28. <screen><userinput>make install</userinput></screen>
  29. </sect2>
  30. <sect2 id="contents-procps" role="content"><title>Contents of Procps</title>
  31. <segmentedlist>
  32. <segtitle>Installed programs</segtitle>
  33. <segtitle>Installed library</segtitle>
  34. <seglistitem><seg>free, kill, pgrep, pkill,
  35. pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w and watch</seg>
  36. <seg>libproc.so</seg></seglistitem>
  37. </segmentedlist>
  38. <variablelist><title>Short descriptions</title>
  39. <varlistentry id="free">
  40. <term><command>free</command></term>
  41. <listitem>
  42. <indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
  43. <para>reports the amount of free and used memory
  44. in the system, both physical and swap memory.</para>
  45. </listitem>
  46. </varlistentry>
  47. <varlistentry id="kill">
  48. <term><command>kill</command></term>
  49. <listitem>
  50. <indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
  51. <para>is used to send signals to processes.</para>
  52. </listitem>
  53. </varlistentry>
  54. <varlistentry id="pgrep">
  55. <term><command>pgrep</command></term>
  56. <listitem>
  57. <indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
  58. <para>looks up processes based on their name and other attributes.</para>
  59. </listitem>
  60. </varlistentry>
  61. <varlistentry id="pkill">
  62. <term><command>pkill</command></term>
  63. <listitem>
  64. <indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
  65. <para>signals processes based on their name and other attributes.</para>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry id="pmap">
  69. <term><command>pmap</command></term>
  70. <listitem>
  71. <indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
  72. <para>reports the memory map of the given process.</para>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="ps">
  76. <term><command>ps</command></term>
  77. <listitem>
  78. <indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
  79. <para>gives a snapshot of the current processes.</para>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="skill">
  83. <term><command>skill</command></term>
  84. <listitem>
  85. <indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
  86. <para>sends signals to processes matching the given criteria.</para>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="snice">
  90. <term><command>snice</command></term>
  91. <listitem>
  92. <indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
  93. <para>changes the scheduling priority of processes matching the given criteria.</para>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="sysctl">
  97. <term><command>sysctl</command></term>
  98. <listitem>
  99. <indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
  100. <para>modifies kernel parameters at run time.</para>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="tload">
  104. <term><command>tload</command></term>
  105. <listitem>
  106. <indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
  107. <para>prints a graph of the current system load average.</para>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="top">
  111. <term><command>top</command></term>
  112. <listitem>
  113. <indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
  114. <para>displays the top CPU processes. It provides
  115. an ongoing look at processor activity in real time.</para>
  116. </listitem>
  117. </varlistentry>
  118. <varlistentry id="uptime">
  119. <term><command>uptime</command></term>
  120. <listitem>
  121. <indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
  122. <para>reports how long the system has been
  123. running, how many users are logged on, and the system load averages.</para>
  124. </listitem>
  125. </varlistentry>
  126. <varlistentry id="vmstat">
  127. <term><command>vmstat</command></term>
  128. <listitem>
  129. <indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
  130. <para>reports virtual memory statistics, giving information about processes,
  131. memory, paging, block IO, traps, and CPU activity.</para>
  132. </listitem>
  133. </varlistentry>
  134. <varlistentry id="w">
  135. <term><command>w</command></term>
  136. <listitem>
  137. <indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
  138. <para>shows which users are currently logged on, where and since when.</para>
  139. </listitem>
  140. </varlistentry>
  141. <varlistentry id="watch">
  142. <term><command>watch</command></term>
  143. <listitem>
  144. <indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
  145. <para>runs a given command repeatedly, displaying the first screen-full of its
  146. output. This allows you to watch the output change over time.</para>
  147. </listitem>
  148. </varlistentry>
  149. <varlistentry id="libproc">
  150. <term><filename class="libraryfile">libproc</filename></term>
  151. <listitem>
  152. <indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
  153. <para>contains the functions used by most programs in this package.</para>
  154. </listitem>
  155. </varlistentry>
  156. </variablelist>
  157. </sect2>
  158. </sect1>