I'm using Debian Wheezy and cpulimit 1.7
I want to limit the cpu usage time of a process using cpulimit.
When I execute for example cpulimit -p 1000 -l 40, the message Process 1000 detected shows up. After that, nothing happens and I have to press Strg+C to stop it.
Anybody also encountered this problem or has a solution to that hang-up?
That's what it always looks like when you start cpulimit.
cpulimit works by continuously sending SIGSTOP and SIGCONT to the target process to limit it's cpu time. So the program in this case doesn't hang, it's doing it's job.
You can use the -b flag to start cpulimit in background mode if you don't want it to block the terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With