3

I am trying to use cpulimit on a command, like:

cpulimit -e 'tar -chzf [...]' -l 50 

but cpulimit seems not to be able to start the process:

Warning: no target process found. Waiting for it...

So how do I invoke cpulimit to start tar with all it's input arguments?

1 Answer 1

4

Try:

cpulimit -l 50 -- tar -chzf ...

From the examples in man cpulimit:

 # cpulimit -l 20 firefox
        Launch Firefox web browser and limit its CPU usage to 20%

 # cpulimit -l 25 -- firefox -private
        Launch Firefox web browser in private mode and limit its CPU usage to 25%

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .