loadwatch1
Run a program when machine is idle
Usage
loadwatch {[options]
-p
pid | [--]
prog
[args]}
Overview
loadwatch either spawns a child process prog with the arguments args and controls it with all its process group, or takes control of an already running process with pid pid with all its process group.
loadwatch allows the controlled processes to run while the load average remains below high_limit. Every delay seconds, loadwatch checks the load average. If the load is above high_limit, the child is suspended; the child is resumed when the load falls below low_limit.
Options
A summary of options is included below.
-
-h high_limit -
A decimal value that sets the system load at which the child process will be suspended. (Default: 1.25)
-
-l low_limit -
A decimal value that sets the system load at which the child process will be resumed. (Default: 0.25)
-
-d delay -
An integral number of seconds that sets how often the system load will be checked. (Default: 10)
-
-n copies -
An integer value that sets the number of copies of prog to run. (Default: 1)
-
-u file -
Create a UNIX domain socket file for use by
lw-ctl.
-
-p pid -
The pid of the program that should be controlled by
loadwatch(with all its process group).
Releases
13 releases since Debian 2.2 (Potato); the text changed 1 time.
-n since Debian 3.1 (Sarge);
-p since Debian 3.1 (Sarge);
-u since Debian 3.1 (Sarge).