We have tried using various combinations of settings - but mpstat is showing that all or most cpu's are always being used (on a single 8 core system)

Following have been tried:

set master to: 

```
local[2]

```

send in

```
conf.set("spark.cores.max","2")

```

in the spark configuration

Also using 

```
--total-executor-cores 2

```

and

```
--executor-cores 2

```

In all cases 

```
mpstat -A

```

shows that all of the CPU's are being used - and not just by the master.

So I am at a loss presently. We do need to limit the usage to a specified number of cpu's.