2 ==========================
4 LimitCPU is a program to throttle the CPU cycles used by other applications.
5 LimitCPU will monitor a process and make sure its CPU usage stays at or
6 below a given percentage. This can be used to make sure your system
7 has plenty of CPU cycles available for other tasks. It can also be used
8 to keep laptops cool in the face of CPU-hungry processes and for limiting
11 LimitCPU is the direct child of CPUlimit, a creation of Angelo Marletta,
12 which can be found at http://cpulimit.sourceforge.net.
17 Copying, License and Distribution
18 ===================================
20 LimitCPU is licensed under the GNU General Public License (version 2).
21 A copy of the license should be included with this program in a
24 Copyright 2005, Angelo Marletta <marlonx80@hotmail.com>
25 Copyright 2011, Jesse Smith <jessefrgsmith@yahoo.ca>
32 ==========================
34 The LimitCPU program can be aquired from http://limitcpu.sourceforge.net
39 How to compile and install
40 ===========================
42 Once you have downloaded a copy of LimitCPU building should be fairly
43 straight forward. First we unpack the source code
45 tar zxf cpulimit-1.4.tar.gz
47 Then we run the makefile.
52 This should produce the executable file "cpulimit". If you would like
53 to install the program to make it available system-wide, run
58 Later should you wish to remove the program from your system, run
59 the following command from the limitcpu directory
66 ==========================
68 The LimitCPU program is generally used to throttle the CPU usage of
69 one process. This can be done with the following command where
70 12345 is the process ID number of a running program and 25 is the
71 maximum percentage of the CPU we are willing to give that program
73 cpulimit -p 12345 -l 25
75 The above example will cause LimitCPU to keep an eye on the process
76 with ID number 12345 until the program exits. Should we wish to
77 run LimitCPU in the background we can use
79 cpulimit -p 12345 -l 25 -b
81 We can also limit running processes based on their name instead of
82 their process ID, as in this example:
84 cpulimit --exe /usr/bin/bigexe --limit 50
86 The above example will keep an eye on "bigexe" and, if the application
87 quits and another program called "bigexe" is run, LimitCPU will
88 monitor the new process too. Should we wish to only track the first
89 program and then exit, we can use
91 cpulimit --exec /usr/bin/bigexe --limit 50 -z
93 The "-z" flag tells LimitCPU to stop running once its target is
94 no longer running itself.
100 =============================
102 Should you have comments, questions, or bugs to report, please send
103 an e-mail to jessefrgsmith@yahoo.ca with the word "LimitCPU" in the