procps.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. <para>Remove a spurious library link:</para>
  30. <screen><userinput>rm /lib/libproc.so</userinput></screen>
  31. </sect2>
  32. <sect2 id="contents-procps"><title>Contents of Procps</title>
  33. <para><emphasis>Installed programs</emphasis>: free, kill, pgrep, pkill,
  34. pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w and watch</para>
  35. <para><emphasis>Installed library</emphasis>: libproc.so</para>
  36. </sect2>
  37. <sect2><title>Short descriptions</title>
  38. <indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
  39. <para id="free"><command>free</command> reports the amount of free and used memory
  40. in the system, both physical and swap memory.</para>
  41. <indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
  42. <para id="kill"><command>kill</command> is used to send signals to processes.</para>
  43. <indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
  44. <para id="pgrep"><command>pgrep</command> looks up processes based on their name
  45. and other attributes.</para>
  46. <indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
  47. <para id="pkill"><command>pkill</command> signals processes based on their name
  48. and other attributes.</para>
  49. <indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
  50. <para id="pmap"><command>pmap</command> reports the memory map of the given
  51. process.</para>
  52. <indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
  53. <para id="ps"><command>ps</command> gives a snapshot of the current processes.</para>
  54. <indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
  55. <para id="skill"><command>skill</command> sends signals to processes matching the
  56. given criteria.</para>
  57. <indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
  58. <para id="snice"><command>snice</command> changes the scheduling priority of processes
  59. matching the given criteria.</para>
  60. <indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
  61. <para id="sysctl"><command>sysctl</command> modifies kernel parameters at run time.</para>
  62. <indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
  63. <para id="tload"><command>tload</command> prints a graph of the current system load
  64. average.</para>
  65. <indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
  66. <para id="top"><command>top</command> displays the top CPU processes. It provides
  67. an ongoing look at processor activity in real time.</para>
  68. <indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
  69. <para id="uptime"><command>uptime</command> reports how long the system has been
  70. running, how many users are logged on, and the system load averages.</para>
  71. <indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
  72. <para id="vmstat"><command>vmstat</command> reports virtual memory statistics, giving
  73. information about processes, memory, paging, block IO, traps, and CPU
  74. activity.</para>
  75. <indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
  76. <para id="w"><command>w</command> shows which users are currently logged on,
  77. where and since when.</para>
  78. <indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
  79. <para id="watch"><command>watch</command> runs a given command repeatedly,
  80. displaying the first screen-full of its output. This allows you to watch the
  81. output change over time.</para>
  82. <indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
  83. <para id="libproc"><command>libproc</command> contains the functions used by most
  84. programs in this package.</para>
  85. </sect2>
  86. </sect1>