CAP(8)

NAME
cap - limit CPU usage of running task

SYNOPSIS
cap <pid> <cpu percentage>

DESCRIPTION
Cap sets the CPU limit (percentage of CPU time) for a given task. Tasks are identified by ther pid. Valid range for CPU limit is between 1 and 100 (inclusive), but it is not verified by the cap command.

For example,

cap 1500 50

would limit cpu usage of the process 1500 to 50% of CPU.

Users other than the super-user may only decrease the CPU limit for the tasks they onw.

Only the super-user may increase the limit imposed on any given task, regardless of who set the limit.

SEE ALSO
renice(8)

BUGS
Report bugs to <karol.golab@tls-technologies.com>.

HISTORY
The cap command appeared in CPU patch.