Commit 870b2645 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Added manpage (woops)

parent 826b9cee
.\" man file for cputool
.TH cputool "1" "January 2013 - v0.5" "Utils" "Utils"
cputool \- limit cpu usage of processes
.B cputool
[\fIOPTIONS\fR]... [\fICOMMAND\fR]...
.\" Add any additional description here
Limit the cpu usage of a process or a process group to a given limit and/or
suspend processes if the system load exceeds a treshold value.
Cputool works by sending SIGSTOP and SIGCONT signals to processes depending on
the system load.
Mandatory arguments to long options are mandatory for short options too.
\fB\-p\fR, \fB\-\-pid\fR=\fIPID\fR
Manage the CPU usage of a specific PID.
This is the most efficient use of cputool as it does not have to walk
the process tree to look for forks of children.
\fB\-P\fR, \fB\-\-pid\-pgrp\fR=\fIPID\fR
Manage the CPU usage of a specific PID's entire process group.
The same can be achieved by specifying a [\fICOMMAND\fR] which cputool will
then execute and manage the process group created by that command.
\fB\-c\fR, \fB\-\-cpu\-limit\fR=\fIPCNT\fR
Specify the maxium cpu the process / process group can use. Expressed as
percentage of total CPU. Eg. 200 is two full CPUs in a multi processor system.
Specify an integer value.
\fB\-l\fR, \fB\-\-load\-limit\fR=\fILOAD\fR
Specify the maxium load the system may experience for the process /
process group to continue running.
Specifing a fractional value is possible (e.g. 3.5).
\fB\-v\fR, \fB\-\-verbose\fR
Increase the amount of messages printed to stderr.
\fB\-vv\fR will additionally show statistical information.
\fB\-vvv\fR will addditionally show signals being sent to processes.
\fB\-V\fR, \fB\-\-version\fR
output version information and exit
\fB\-h\fR, \fB\-\-help\fR
display a help page and exit
Cputool will run on 32\-bit and 64\-bit LINUX systems. It depends on the \fB/proc\fR
pseudo-filesystem to detect PIDs and their resource usage.
.SS "Exit status:"
if OK,
if options specified could not be parsed or \fICOMMAND\fR not run,
if a \fICOMMAND\fR has exited cputool will relay its exit status as its own.
Cputool written by Nigel Kukard.
This man page was written by Daniel Lange.
Cputool home page and bugtracker at <>.
Copyright \(co 2012-2013 AllWorldIT.
License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.BR signals(7),
.BR kill(1),
.BR uname(1)
.\" end of man file for cputool. Daniel Lange 130114, man v1 for cputool v0.5
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment