You can add the -background or -b flag with the command to send the command to the background. If you stop the execution of cpulimit, the CPU usage of that specific process will go back to normal.Ī great solution to prevent this issue is to run cpulimit in the background. Here, cpulimit will restrict the CPU usage of the process as long as it's running. To force a process with PID 81550 to use only 50% of the CPU: sudo cpulimit -p 81550 - limit 50 You can use the -limit or -l flag of the cpulimit utility to add a limit to the resources that a process can use. The basic syntax of the command is: cpulimit -p pidĬpulimit -P /path-to-executable Limit the CPU Usage of a Process
0 Comments
Leave a Reply. |