I have set up CPU sets with cset in Ubuntu 12.04, but they are not respected. Processes just use all the CPU they can, no matter what set they are assigned to.
It seems that cpuset is not enabled. How can I enable cpuset?
I have set up CPU sets with cset in Ubuntu 12.04, but they are not respected. Processes just use all the CPU they can, no matter what set they are assigned to.
It seems that cpuset is not enabled. How can I enable cpuset?
Are you open to using other utility cpulimit?
1) Install cpulimit by issuing sudo apt-get install cpulimit
2) Limit the process in question like this (say we want to restrict java to use not more than 30 % of CPU)
cpulimit -e java -l 30
you can do that with nice and renice command in the terminal.
for example: sudo renice -n -15 -u username
The options are:
-n=priority from -20 to 20 (where -20 is highest)
-p=process id (found in task manager)
-u=all events user started
Or do you mean something else?