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

5

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%

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.