Limiting processes to not exceed more than 10% of CPU usage
55
votes
8
answers
108390
views
I operate a Linux system which has a lot of users but sometimes an abuse occurs; where a user might run a single process that uses up more than 80% of the CPU/Memory.
So is there a way to prevent this from happening by limiting the amount of CPU usage a process can use (to 10% for example)? I'm aware of
cpulimit
, but it unfortunately applies the limit to the processes I instruct it to limit (e.g single processes). So my question is, how can I apply the limit to all of the running processes and processes that will be run in the future without the need of providing their id/path for example?
Asked by Giovanni Mounir
(897 rep)
Aug 24, 2014, 09:16 AM
Last activity: Oct 3, 2024, 06:42 AM
Last activity: Oct 3, 2024, 06:42 AM