I was processing some data and noticed that the code always uses the default number of processes (which is the number of CPUs ). We want to change this for PUNCH so we can constrain CPU usage. It should be as simple as letting the user pass in a process count and setting it here when the pool is made.
I was processing some data and noticed that the code always uses the default number of processes (which is the number of CPUs ). We want to change this for PUNCH so we can constrain CPU usage. It should be as simple as letting the user pass in a process count and setting it here when the pool is made.
https://github.com/svank/remove_starfield/blob/beb2c3b0d30bc47e721ca315355d9b6fe5d0c382/remove_starfield/core.py#L201
As a fun showcase, here's what happens when you have a big server and don't set the number... you have a ton of processes running around.