vm on only one numa node

ayyEve

New Member
Jun 26, 2020
9
0
1
25
Hi guys,

I want vm1 to run on cpu1, and vm2 to run on cpu0, due to a graphics card configuration (they are not reversible). the vms are used for gaming so it is important that the vms run on the correct node with the gpu.

my question is, how do i do this?
1595519424491.png

i tried setting numa0 but it says im missing cpus:
Code:
numa0: cpus=6;7;8;9;10;11,hostnodes=1,memory=16384,policy=bind
Code:
kvm: warning: CPU(s) not present in any NUMA nodes: CPU 0 [socket-id: 0, core-id: 0, thread-id: 0], CPU 1 [socket-id: 0, core-id: 1, thread-id: 0], CPU 2 [socket-id: 0, core-id: 2, thread-id: 0], CPU 3 [socket-id: 0, core-id: 3, thread-id: 0], CPU 4 [socket-id: 0, core-id: 4, thread-id: 0], CPU 5 [socket-id: 0, core-id: 5, thread-id: 0]
kvm: warning: All CPU(s) up to maxcpus should be described in NUMA config, ability to start up with partial NUMA mappings is obsoleted and will be removed in future
TASK ERROR: start failed: QEMU exited with code 1

do i need to assign all cores from the other node to the vm if i dont want to use it? that doesnt seem right to me but i'm new to numa node stuff.
any help is greatly appreciated.
 
update: switched to better cpus for better ipc and upgraded ram, so here's the new numactl -H

Code:
available: 2 nodes (0-1)
node 0 cpus: 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23
node 0 size: 32214 MB
node 0 free: 11882 MB
node 1 cpus: 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31
node 1 size: 32224 MB
node 1 free: 338 MB
node distances:
node   0   1
  0:  10  20
  1:  20  10
 
did you resolve this? I think you need to use "numa1" instead of "numa0", since you want to use the cores of the second CPU.
 
we never resolved this, no matter what we tried. cpu pinning, setting numa to only 1 cpu, nothing worked. so we gave up lol
 

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!