When you use CPU intensive, multithreaded software tools on your multicore-processor such as 'pigz' or 'pbzip2' (for example), the OS loses its responsiveness (more or less) and it will slow down other running tasks, and it is something that should be expected too.
|
Changing CPU affinity using Htop - example |
However, when running such applications while performing your other daily computer related tasks, the degraded OS responsiveness can become an issue. For instance, the movement of the mouse might not be that smooth any more, or if you click on another application, then it won't be opened as fast as before etc.
Tools like 'pbzip2' lets you manually change the threads to be used, before the execution, so you can free-up a CPU core or two, thus improving the OS's responsiveness. But sometimes, I forget do that, plus, not all multithreaded tools let you change the number of threads to be used either.
Now as most knows, in these occasions, the feature called CPU affinity comes in handy, as it lets us bind a process in a way, that it will be executed by using only a certain number of CPU cores (supports changing the CPU cores that should be used even after the process is running from the background).