https://agileek.github.io/docker/2014/08/06/docker-cpuset/ You could also try with docker.
-----Wiadomość oryginalna----- Od: "Frank Cox" theatre@melvilletheatre.com Wysłano: 2016-05-23 17:31 Do: "centos@centos.org" centos@centos.org Temat: Re: [CentOS] CentOS 7, container question
On Mon, 23 May 2016 10:51:57 -0400 m.roth@5-cent.us wrote:
We would like to run a container on a server, the reason being the COST of a Sybase license (it's by core), and what we can afford is a 4-core license. Now, the server's a nice Dell w/ 32 cores, so, ideally, what we want to do is set up containers, then, in one container, *only* have it see 4 cores, while the rest of the server, including (possibly) other containers, can see the other 28. The first try seems to have disabled *all* the cores other than those four.
You can do that with Virtual Box. I haven't tried it with anything else, but Virtual Box allows you to set (and change) the number of cores available to the session.