in reply to Re^2: How to limit CPU utilization by ANY process with a perl script?
in thread How to limit CPU utilization by ANY process with a perl script?
However, in the case of an idle system, nice will not limit use to <= 70%. If the system is idle, it will still use as much as it needs to do what it is trying to do.
This is an issue for the OS scheduler, or each program needs to give up the processor voluntarily if it goes over 70%.
Update: or use something with SIGSTOP/SIGCONT - see tilly's post below.
--MidLifeXis
|
|---|