For ubuntu users, we may want to get the process informations and limit the CPU usage of a process whenever we want.
Launch System Monitor from System->Administration->System Monitor.At Processes tab,you can see all processes and details.
You can also use this command to view processes details:
limit the process with its name to 35%:
Launch System Monitor from System->Administration->System Monitor.At Processes tab,you can see all processes and details.
You can also use this command to view processes details:
ortop
And if you want to limit cpu usage of a process,first install cpulimit with this command:ps aux
Then,limit the process in following ways:sudo aptitude install cpulimit
limit the process with its name to 35%:
limit the process with its ID to 35%:cpulimit -e process_name -l 35
cpulimit -p ID_here -l 35
No comments:
Post a Comment