# Procps-&procps-version;

The Procps package contains programs for monitoring processes.

## Installation of Procps

The following patch adds process control group support to ps:

    patch -Np1 -i ../&procps-ps_cgroup-patch;

The following patch fixes an issue where some procps utils print an error on the screen if the monitor isn't running at 60Hz:

    patch -Np1 -i ../&procps-fix_HZ_errors-patch;

The following fixes an issue with Make 3.82:

    sed -i -r '/^-include/s/\*(.*)/proc\1 ps\1/' Makefile

Compile the package:

    make

This package does not come with a test suite.

Install the package:

    make SKIP='/bin/kill /usr/share/man/man1/kill.1' install

## Contents of Procps

Installed programs Installed library
- free, pgrep, pkill, pmap, ps, pwdx, skill, slabtop, snice, sysctl, tload, top, uptime, vmstat, w, and watch libproc.so

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

`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

`skill`

- Sends signals to processes matching the given criteria

`slabtop`

- Displays detailed kernel slab cache information in real time

`snice`

- Changes the scheduling priority of processes matching the given criteria

`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

`libproc`

- Contains the functions used by most programs in this package