cpulimit doesn't support more than one process at a
single command line, like that:
"cpulimit -p 1234 -p 12345 -e example"
giving that:
"Error: You must specify exactly one target process"
I'm attaching a patch that implements that using child
processes.
Felipe3
Patch for multiple processes
Logged In: YES
user_id=1183789
Originator: NO
I don't like the idea of forking cpulimit for each controlled process, because it would increase the control overhead. And cpulimit is supposed to have a minimum impact in the system load.
Instead I'm implementing a single threaded solution to control multiple processes. Now you can access the code from svn repository, I will release a new version when the algorithm is well tested.
Anyway, thanks.
Angelo