It might be good to do:
```
max(slave_cpus / worker_instances, 1)
```
I some divergent cases people might try to over-subscribe the machines. It would be good to have Spark at least give 1 core to each worker in these cases.