Nguyễn Hương Chà
New member
How do I limit CPU usage on Linux?
Answer
Restricting process CPU usage using nice, cpulimit, and cgroups
Answer
Restricting process CPU usage using nice, cpulimit, and cgroups
- Use the nice command to manually lower the task’s priority.
- Use the cpulimit command to repeatedly pause the process so that it doesn’t exceed a certain limit.
- Use Linux’s built-in control groups, a mechanism which tells the scheduler to limit the amount of resources available to the process.