cpulimit

A nifty utility to limit CPU usage on Linux

If you want to run a command that you know is going to use quite a bit of CPU but you don’t want it to completely take over your system there is a really neat utility that can help you out. It’s called cpulimit and it does exactly what you think it would. The basic usage is this: cpulimit -l XX command where XX is the CPU % you want to limit the process to and command is the process you want to run.