Since Solaris 11.2 there is an interesting new feature in regard of binding processes to CPU resources. Before 11.2 you was limited to bind a process to a single CPU or you had to use the processor pool feature. However this had for example the disadvantage that the pools weren’t able to overlap. For example you couldn’t bind a process to processor 0-3 and a second one to to processor 2-7. This made the configurations somewhat inflexible. However since 11.2 you have the concept of so called Multi-CPU binding.
Okay, let’s play a little bit with it. I have a system with 8 CPUs from the OS perspective:
This is how you have probably already used it:
But now you could assign it to a set of CPUs.
In this case you have strongly bound it to processor 4-7. You have probably guessed it. When there is a strong binding, there are other bindings. For example a weak one.
Alternatively you could choose a negative binding.
Simply said the difference between the kinds of binding: A strong binding will ensure that the process will only run on the mentioned CPUs. The negative binding ensures that it will never run on the mentioned CPUs. It’s pretty much just a binding to all other CPUs you have not mentioned in your command line. With a weak binding it will try it’s best to put the process on one of the configured CPUs but after some time it will use other CPUs.
Solaris 11.3 saw the introduction of an additional feature: You are able to assign all processes of a project to a set of CPUs. The configuration is like this:
Given that for example all processes of a user run in a project (which is dependent of the exact configuration, please look here, you could use this quite elegantly to bind all processes of a user to a set of CPUs.