For multicore processors the allowable percentage is 100n, where n is the number of processor cores. So, if you own a quad-core processor, it would mean the allowable percentage is 400%.
The following assumes a single core processor:
Suppose process cpu_gobbler is eating 100% of your CPU cycles (and you cannot figure out why it should do so). You can 'educate' cpu_gobbler to behave by using cpulimit in this way, obviously, after starting cpu_gobbler.
After starting cpu_gobbler use top to find its process ID. Let us assume the latter is 4112. Then, issue this simple command:
Code: Select all
cpulimit -p 4112 -l 10 -z
- -p precedes the process ID
- -l precedes the percentage of CPU cycles to be allowed (el not one!)
- -z tells cpulimit to terminate as soon as cpu_gobbler dies/terminates
Code: Select all
--exe=cpu_gobbler
P.S.:
I am using cpulimit on MS Skype .