Is there any way I can give a docker instance exclusive access to some of the cpus?
Asked
Active
Viewed 279 times
1 Answers
0
You can use cpusets to specify where the docker containers can execute. You can also specify cpu shares (cycles) to ensure, the docker container gets all the cycles available.

Shibashis
- 8,023
- 3
- 27
- 38
-
Thanks for your reply. Do you mean `--cpuset-cpus=""`? This does not give the docker exclusive access. I'm looking for something more like `cpuset.cpu_exclusive` – smz Aug 08 '16 at 02:00
-
Also add cpushares..although not exclusive, if you give max cycles, it will ensure your container gets pref over other processes seeking cycles for the cpu – Shibashis Aug 08 '16 at 02:14
-
As you mentioned, this is not exclusive! – smz Aug 08 '16 at 02:43