Menu

#1 Multiple processes

open
nobody
None
5
2008-01-19
2008-01-19
No

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

Discussion

  • Felipe Abella

    Felipe Abella - 2008-01-19

    Patch for multiple processes

     
  • Angelo Marletta

    Angelo Marletta - 2008-02-10

    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

     

Log in to post a comment.