Changeset 03e6a40 for BOOK/final-system/common/procps-ng.xml
- Timestamp:
- Apr 20, 2014, 8:57:39 AM (11 years ago)
- Children:
- 0be79ea
- Parents:
- 88ef769 (diff), 578ca586 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/procps-ng.xml
r88ef769 r03e6a40 6 6 ]> 7 7 8 <sect1 id="ch-system-procps " role="wrap">9 <?dbhtml filename="procps .html"?>10 11 <title>Procps- &procps-version;</title>12 13 <indexterm zone="ch-system-procps ">14 <primary sortas="a-Procps ">Procps</primary>8 <sect1 id="ch-system-procps-ng" role="wrap"> 9 <?dbhtml filename="procps-ng.html"?> 10 11 <title>Procps-ng-&procps-ng-version;</title> 12 13 <indexterm zone="ch-system-procps-ng"> 14 <primary sortas="a-Procps-ng">Procps-ng</primary> 15 15 </indexterm> 16 16 … … 18 18 <title/> 19 19 20 <para>The Procps package contains programs for monitoring20 <para>The Procps-ng package contains programs for monitoring 21 21 processes.</para> 22 22 … … 24 24 25 25 <sect2 role="installation"> 26 <title>Installation of Procps</title> 27 28 <para os="p1">The following patch adds process control group support to 29 ps:</para> 30 31 <screen os="p2"><userinput>patch -Np1 -i ../&procps-ps_cgroup-patch;</userinput></screen> 32 33 <para os="p3">The following patch fixes an issue where some procps utils 34 print an error on the screen if the monitor isn't running at 60Hz:</para> 35 36 <screen os="p4"><userinput>patch -Np1 -i ../&procps-fix_HZ_errors-patch;</userinput></screen> 37 38 <para os="s1">The following fixes an issue with Make 3.82:</para> 39 40 <screen os="s2"><userinput>sed -i -r '/^-include/s/\*(.*)/proc\1 ps\1/' Makefile</userinput></screen> 41 42 <para os="a">Compile the package:</para> 43 44 <screen os="b"><userinput>make</userinput></screen> 45 46 <para os="c">This package does not come with a test suite.</para> 47 48 <para os="d">Install the package:</para> 49 50 <screen os="e"><userinput>make SKIP='/bin/kill /usr/share/man/man1/kill.1' install</userinput></screen> 26 <title>Installation of Procps-ng</title> 27 28 <para os="a">Prepare procps-ng for compilation:</para> 29 30 <screen os="b"><userinput>./configure --prefix=/usr --exec-prefix= \ 31 --libdir=/usr/lib --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \ 32 --disable-kill</userinput></screen> 33 34 <variablelist os="c"> 35 <title>The meaning of the configure options:</title> 36 <varlistentry> 37 <term><parameter>--disable-kill</parameter></term> 38 <listitem> 39 <para>This switch disables building the kill command that 40 was installed in the util-linux package.</para> 41 </listitem> 42 </varlistentry> 43 </variablelist> 44 45 <para os="d">Compile the package:</para> 46 47 <screen os="e"><userinput>make</userinput></screen> 48 49 <note os="note1"> 50 <para>When using the boot method, two tests will fail if the hostname is 51 not set:</para> 52 53 <screen><userinput remap="test">hostname clfs</userinput></screen> 54 </note> 55 56 <para os="f">Remove the test which fails when scripting does not use a tty 57 device. Run the following commands:</para> 58 59 <screen os="g"><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp 60 make check</userinput></screen> 61 62 <para os="h">Install the package:</para> 63 64 <screen os="i"><userinput>make install</userinput></screen> 65 66 <para os="j">Move essential files to a location that can be found if <filename class="directory">/usr</filename> is not mounted.</para> 67 68 <screen os="k"><userinput>mv -v /usr/bin/pidof /bin 69 mv -v /usr/lib/libprocps.so.* /lib 70 ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so</userinput></screen> 51 71 52 72 </sect2> 53 73 54 <sect2 id="contents-procps " role="content">55 <title>Contents of Procps </title>74 <sect2 id="contents-procps-ng" role="content"> 75 <title>Contents of Procps-ng</title> 56 76 57 77 <segmentedlist> 58 78 <segtitle>Installed programs</segtitle> 59 79 <segtitle>Installed library</segtitle> 80 <segtitle>Installed directories</segtitle> 60 81 61 82 <seglistitem> 62 <seg>free, pgrep, pkill, pmap, ps, pwdx, skill, slabtop, snice, sysctl, 63 tload, top, uptime, vmstat, w, and watch</seg> 64 <seg>libproc.so</seg> 83 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop, sysctl, tload, 84 top, uptime, vmstat, w, and watch</seg> 85 <seg>libprocps.{a,so}</seg> 86 <seg>/usr/include/proc, /usr/share/doc/procps-ng-&procps-ng-version;</seg> 65 87 </seglistitem> 66 88 </segmentedlist> … … 76 98 <para>Reports the amount of free and used memory (both physical and 77 99 swap memory) in the system</para> 78 <indexterm zone="ch-system-procps free">100 <indexterm zone="ch-system-procps-ng free"> 79 101 <primary sortas="b-free">free</primary> 80 102 </indexterm> … … 86 108 <listitem> 87 109 <para>Looks up processes based on their name and other attributes</para> 88 <indexterm zone="ch-system-procps pgrep">110 <indexterm zone="ch-system-procps-ng pgrep"> 89 111 <primary sortas="b-pgrep">pgrep</primary> 112 </indexterm> 113 </listitem> 114 </varlistentry> 115 116 <varlistentry id="pidof"> 117 <term><command>pidof</command></term> 118 <listitem> 119 <para>Looks up processes based on their name and other attributes</para> 120 <indexterm zone="ch-system-procps-ng pidof"> 121 <primary sortas="b-pidof">pidof</primary> 90 122 </indexterm> 91 123 </listitem> … … 96 128 <listitem> 97 129 <para>Signals processes based on their name and other attributes</para> 98 <indexterm zone="ch-system-procps pkill">130 <indexterm zone="ch-system-procps-ng pkill"> 99 131 <primary sortas="b-pkill">pkill</primary> 100 132 </indexterm> … … 106 138 <listitem> 107 139 <para>Reports the memory map of the given process</para> 108 <indexterm zone="ch-system-procps pmap">140 <indexterm zone="ch-system-procps-ng pmap"> 109 141 <primary sortas="b-pmap">pmap</primary> 110 142 </indexterm> … … 116 148 <listitem> 117 149 <para>Lists the current running processes</para> 118 <indexterm zone="ch-system-procps ps">150 <indexterm zone="ch-system-procps-ng ps"> 119 151 <primary sortas="b-ps">ps</primary> 120 152 </indexterm> … … 126 158 <listitem> 127 159 <para>Reports the current working directory of a process</para> 128 <indexterm zone="ch-system-procps pwdx">160 <indexterm zone="ch-system-procps-ng pwdx"> 129 161 <primary sortas="b-pwdx">pwdx</primary> 130 </indexterm>131 </listitem>132 </varlistentry>133 134 <varlistentry id="skill">135 <term><command>skill</command></term>136 <listitem>137 <para>Sends signals to processes matching the given criteria</para>138 <indexterm zone="ch-system-procps skill">139 <primary sortas="b-skill">skill</primary>140 162 </indexterm> 141 163 </listitem> … … 146 168 <listitem> 147 169 <para>Displays detailed kernel slab cache information in real time</para> 148 <indexterm zone="ch-system-procps slabtop">170 <indexterm zone="ch-system-procps-ng slabtop"> 149 171 <primary sortas="b-slabtop">slabtop</primary> 150 172 </indexterm> … … 152 174 </varlistentry> 153 175 154 <varlistentry id="snice">155 <term><command>snice</command></term>156 <listitem>157 <para>Changes the scheduling priority of processes matching the given158 criteria</para>159 <indexterm zone="ch-system-procps snice">160 <primary sortas="b-snice">snice</primary>161 </indexterm>162 </listitem>163 </varlistentry>164 176 165 177 <varlistentry id="sysctl"> … … 167 179 <listitem> 168 180 <para>Modifies kernel parameters at run time</para> 169 <indexterm zone="ch-system-procps sysctl">181 <indexterm zone="ch-system-procps-ng sysctl"> 170 182 <primary sortas="b-sysctl">sysctl</primary> 171 183 </indexterm> … … 177 189 <listitem> 178 190 <para>Prints a graph of the current system load average</para> 179 <indexterm zone="ch-system-procps tload">191 <indexterm zone="ch-system-procps-ng tload"> 180 192 <primary sortas="b-tload">tload</primary> 181 193 </indexterm> … … 188 200 <para>Displays a list of the most CPU intensive processes; it 189 201 provides an ongoing look at processor activity in real time</para> 190 <indexterm zone="ch-system-procps top">202 <indexterm zone="ch-system-procps-ng top"> 191 203 <primary sortas="b-top">top</primary> 192 204 </indexterm> … … 199 211 <para>Reports how long the system has been running, how many users are 200 212 logged on, and the system load averages</para> 201 <indexterm zone="ch-system-procps uptime">213 <indexterm zone="ch-system-procps-ng uptime"> 202 214 <primary sortas="b-uptime">uptime</primary> 203 215 </indexterm> … … 211 223 processes, memory, paging, block Input/Output (IO), traps, and CPU 212 224 activity</para> 213 <indexterm zone="ch-system-procps vmstat">225 <indexterm zone="ch-system-procps-ng vmstat"> 214 226 <primary sortas="b-vmstat">vmstat</primary> 215 227 </indexterm> … … 222 234 <para>Shows which users are currently logged on, where, and since 223 235 when</para> 224 <indexterm zone="ch-system-procps w">236 <indexterm zone="ch-system-procps-ng w"> 225 237 <primary sortas="b-w">w</primary> 226 238 </indexterm> … … 234 246 screen-full of its output; this allows a user to watch the output 235 247 change over time</para> 236 <indexterm zone="ch-system-procps watch">248 <indexterm zone="ch-system-procps-ng watch"> 237 249 <primary sortas="b-watch">watch</primary> 238 250 </indexterm> … … 240 252 </varlistentry> 241 253 242 <varlistentry id="libproc ">243 <term><filename class="libraryfile">libproc </filename></term>254 <varlistentry id="libprocps"> 255 <term><filename class="libraryfile">libprocps</filename></term> 244 256 <listitem> 245 257 <para>Contains the functions used by most programs in this 246 258 package</para> 247 <indexterm zone="ch-system-procps libproc">248 <primary sortas="c-libproc ">libproc</primary>259 <indexterm zone="ch-system-procps-ng libprocps"> 260 <primary sortas="c-libprocps">libprocps</primary> 249 261 </indexterm> 250 262 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.