6.24. Procps-ng-3.3.6

The Procps-ng package contains programs for monitoring processes.

Приблизительное время сборки: 0.2 SBU
Требует свободного места на диске: 13 MB

6.24.1. Installation of Procps-ng

Now prepare procps-ng for compilation:

./configure --prefix=/usr                           \
            --exec-prefix=                          \
            --libdir=/usr/lib                       \
            --docdir=/usr/share/doc/procps-ng-3.3.6 \
            --disable-static                        \
            --disable-skill                         \

The meaning of the configure options:


This switch disables the obsolete and unportable skill and snice commands.


This switch disables building the kill command that was installed in the util-linux package.

Compile the package:


The test suite needs some custom modifications for LFS. The which command is not available, the pmap test does not match a newline character in two tests, and the slabtop test may return more than 999,999 objects. To run the test suite, run the following commands:

pushd testsuite
  sed -i -e 's|exec which sleep|exec echo /tools/bin/sleep|' \
         -e 's|999999|&9|'                       config/unix.exp
  sed -i -e 's|pmap_initname\\\$|pmap_initname|' pmap.test/pmap.exp
  make site.exp
  DEJAGNU=global-conf.exp runtest

Install the package:

make install

Finally move the library to a location that can be found if /usr is not mounted.

mv -v /usr/lib/libprocps.so.* /lib
ln -sfv ../../lib/libprocps.so.1.1.0 /usr/lib/libprocps.so

6.24.2. Contents of Procps-ng

Installed programs: free, pgrep, pkill, pmap, ps, pwdx, slabtop, sysctl, tload, top, uptime, vmstat, w, and, watch
Installed library: libprocps.so

Краткое описание


Reports the amount of free and used memory (both physical and swap memory) in the system


Looks up processes based on their name and other attributes


Signals processes based on their name and other attributes


Reports the memory map of the given process


Lists the current running processes


Reports the current working directory of a process


Displays detailed kernel slap cache information in real time


Modifies kernel parameters at run time


Prints a graph of the current system load average


Displays a list of the most CPU intensive processes; it provides an ongoing look at processor activity in real time


Reports how long the system has been running, how many users are logged on, and the system load averages


Reports virtual memory statistics, giving information about processes, memory, paging, block Input/Output (IO), traps, and CPU activity


Shows which users are currently logged on, where, and since when


Runs a given command repeatedly, displaying the first screen-full of its output; this allows a user to watch the output change over time


Contains the functions used by most programs in this package