6.30.
Procps-ng-3.3.10
The Procps-ng package contains programs for monitoring processes.
Approximate build time:
0.1 SBU
Required disk space:
17 MB
6.30.1. Installation of Procps-ng
6.30.2. 32-bit Installation
Now prepare procps-ng for 32-bit compilation:
./configure --prefix=/usr \
--exec-prefix= \
--libdir=/usr/lib32 \
--docdir=/usr/share/doc/procps-ng-3.3.10 \
--disable-static \
--disable-kill \
CC="gcc -m32" CXX="g++ -m32"
The meaning of the configure options:
-
--disable-kill
-
This switch disables building the kill command that will be
installed by the Util-linux package.
Compile the package:
make
The test suite needs some custom modifications for LFS. Remove the
test that fails when scripting does not use a tty device. To run
the test suite, run the following commands:
sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
make check
Install the package:
make install
Finally, move essential files to a location that can be found if
/usr
is not mounted.
mv -v /usr/bin/pidof /bin
mv -v /usr/lib32/libprocps.so.* /lib32
ln -sfv ../../lib32/$(readlink /usr/lib32/libprocps.so) /usr/lib32/libprocps.so
Clean up the build directory before moving on to the next platform:
make clean
6.30.3. x32 ABI Installation
Now prepare procps-ng for x32 ABI compilation:
./configure --prefix=/usr \
--exec-prefix= \
--libdir=/usr/libx32 \
--docdir=/usr/share/doc/procps-ng-3.3.10 \
--disable-static \
--disable-kill \
CC="gcc -mx32" CXX="g++ -mx32"
The meaning of the configure options:
-
--disable-kill
-
This switch disables building the kill command that will be
installed by the Util-linux package.
Compile the package:
make
The test suite needs some custom modifications for LFS. Remove the
test that fails when scripting does not use a tty device. To run
the test suite, run the following commands:
sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
make check
Install the package:
make install
Finally, move essential files to a location that can be found if
/usr
is not mounted.
mv -v /usr/bin/pidof /bin
mv -v /usr/libx32/libprocps.so.* /libx32
ln -sfv ../../libx32/$(readlink /usr/libx32/libprocps.so) /usr/libx32/libprocps.so
Clean up the build directory before moving on to the next platform:
make clean
6.30.4. 64-bit Installation
Now prepare procps-ng for 64-bit compilation:
./configure --prefix=/usr \
--exec-prefix= \
--libdir=/usr/lib \
--docdir=/usr/share/doc/procps-ng-3.3.10 \
--disable-static \
--disable-kill
The meaning of the configure options:
-
--disable-kill
-
This switch disables building the kill command that will be
installed by the Util-linux package.
Compile the package:
make
The test suite needs some custom modifications for LFS. Remove the
test that fails when scripting does not use a tty device. To run
the test suite, run the following commands:
sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
make check
Install the package:
make install
Finally, move essential files to a location that can be found if
/usr
is not mounted.
mv -v /usr/bin/pidof /bin
mv -v /usr/lib/libprocps.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so
6.30.5. Contents
of Procps-ng
Installed programs:
free, pgrep, pidof, pkill, pmap, ps,
pwdx, slabtop, sysctl, tload, top, uptime, vmstat, w, and
watch
Installed library:
libprocps.so
Installed directories:
/usr/include/proc and
/usr/share/doc/procps-ng-3.3.10
Short Descriptions
free
|
Reports the amount of free and used memory (both physical
and swap memory) in the system
|
pgrep
|
Looks up processes based on their name and other
attributes
|
pidof
|
Reports the PIDs of the given programs
|
pkill
|
Signals processes based on their name and other
attributes
|
pmap
|
Reports the memory map of the given process
|
ps
|
Lists the current running processes
|
pwdx
|
Reports the current working directory of a process
|
slabtop
|
Displays detailed kernel slap cache information in real
time
|
sysctl
|
Modifies kernel parameters at run time
|
tload
|
Prints a graph of the current system load average
|
top
|
Displays a list of the most CPU intensive processes; it
provides an ongoing look at processor activity in real
time
|
uptime
|
Reports how long the system has been running, how many
users are logged on, and the system load averages
|
vmstat
|
Reports virtual memory statistics, giving information
about processes, memory, paging, block Input/Output (IO),
traps, and CPU activity
|
w
|
Shows which users are currently logged on, where, and
since when
|
watch
|
Runs a given command repeatedly, displaying the first
screen-full of its output; this allows a user to watch
the output change over time
|
libprocps
|
Contains the functions used by most programs in this
package
|