0

At the moment I do the following: When I see that the system load of my Ubuntu server is high, I get the PIDs of specific currently running background processes and start cpulimit with the PID. When the system load gets lower, I kill cpulimit, so that the background processes can run faster. When the load is still too high, I also kill cpulimit and start it again with a lower limit for the process.

I repeat this until the background processes are done after a few hours. But it gets very annoying to do this manually every day, so I would like to know if there is a way to automate this.

Jomo
  • 1

1 Answers1

0

You could simply try running "background" processes using nice -20.

That won't affect their performance if they are the only ones running but if you have foreground tasks, those will run faster as they are not "niced".

Artem S. Tashkinov
  • 26,392
  • 4
  • 33
  • 64