Question :
How can I limit the load average so it does not excess a certain number? I am on a debian 4.7 (wheezy).
Context :
I rented a vps some time ago (4 cores) so I can run some computations, but the company suspended my vps, pretexting that a load average of 3.5 was too much because they were sharing the nodes. They agreed to run it again as long as my average load doesn't excess 2.0. Besides the "legal" aspect of imposing constraint not referenced anywhere on their website, how can I achieve that?
For now I just reduced the parallelism of my application, but it is not easy to control because it spawns many child processes.
man 7 signal
).taskset
to set the cpu affinity for your processes, and leave 2 cpus free for them.