0

I want to know if it possible to create a NUMA topology(2 NUMA nodes is also fine) in a single system environment (I'm using virtualbox ubuntu 18.04).

When I run $numactl -H, I see the following

available: 1 nodes (0)
node 0 cpus: 0 1 2 3
node 0 size: 1992 MB
node 0 free: 477 MB
node distances:
node   0 
  0:  10 

I was wondering if it is really possible to create two NUMA nodes (just for simulating distributed environment) in a system having 4 cores. Or do I need to have more than four cores for doing so?

2
  • To clarify: You're trying to create a test NUMA topology on a single host? Commented Mar 22, 2019 at 18:01
  • Yes. I'm trying to create a test NUMA topology on a single host.
    – srccode
    Commented Mar 23, 2019 at 5:53

1 Answer 1

-1

In virtualization the number of total cores you can assign to all VMs is near infinite. But the number of cores you can assign to each individual VM cannot exceed the total number of logical cores on the host.

So, to put it concisely: Yes, you can create as many NUMA cores as your host can handle.

Hypervisors use a scheduler to queue each VM's CPU instructions to the host's CPU. The more VMs you set up just means there's a longer queue heading through the hypervisor's scheduler into the host's CPU, which means things slow down, but they don't fail. CPUs and modern system architectures are designed to handle queues, and this is actually one reason why virtualization is such a useful and powerful thing: It keeps the queue on the host more full more of the time, more efficiently using the hosts's resources.

2
  • How to create NUMA cores?
    – srccode
    Commented Mar 26, 2019 at 8:07
  • That is not what your question is about. If you have a different question now that this one is answered, first, mark this as the correct answer using the checkmark icon to the left of this answer, and second, ask a new question. However "How to create NUMA cores" is a process likely already well documented for your preferred hypervisor, and so you should do some further research before asking it to make sure you haven't missed an already existing guide answering your question. Commented Mar 26, 2019 at 15:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .