Tuning of vCPUs for VM when underlying HW has two sockets

roychoar

New Member
Oct 21, 2021
3
0
1
54
Dear team:
I am a newcomer to ProxMox, so please forgive me in advance for such a potential silly question.

I found it very friendly to create a VM, but my underlying HW is a server with 2 sockets, and the "create VM" section only let us me select the amount of "cores" regardless of where these cores will be selected from (¿ from one socket? ¿from both?).

In other words I do not know whether ProxMox has picked my VM´s cores from one socket or from both server´s sockets.

Furthermore, I would like to "see" which cores ProxMox has selected for my VM, and if possible, I would like to influence this selection (ie. to ensure that all my VM`s cores will belong to only one socket of my HW). Perhaps I can touch a configuration file for this purpose, which I do not know for the time being.

¿ How can therefore see/modify the structure of the list of cores used by my VM?

Your hints will be greatly appreciated.
Best regards

Rogelio
 
See https://pve.proxmox.com/wiki/NUMA

I have:

Code:
# numactl --hardware
available: 2 nodes (0-1)
node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22
node 0 size: 72473 MB
node 0 free: 53427 MB
node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23
node 1 size: 72571 MB
node 1 free: 44733 MB
node distances:
node   0   1
  0:  10  20
  1:  20  10
 
# qm config 100
agent: 1
bootdisk: scsi0
cores: 2
<snip>
numa: 1
<snip>
 
See https://pve.proxmox.com/wiki/NUMA

I have:

Code:
# numactl --hardware
available: 2 nodes (0-1)
node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22
node 0 size: 72473 MB
node 0 free: 53427 MB
node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23
node 1 size: 72571 MB
node 1 free: 44733 MB
node distances:
node   0   1
  0:  10  20
  1:  20  10
 
# qm config 100
agent: 1
bootdisk: scsi0
cores: 2
<snip>
numa: 1
<snip>

Hello. Thanks a lot for your quick answer.

The problem I see is that "numactl --hardware" tells me how the underlying HW actually is, but it does not tell me which cores my VM is using. And "qm config <vmnumber>" only tells me that my VM is using X cores, but it does not tell which ones.

¿ how can I see the config file(s) with the information of the actual sockets/cores each of my VMs are using?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!