CPU Pinning

conconc678

New Member
Aug 2, 2020
1
0
1
26
I have a server running Proxmox 6.1-7 that has 2 CPUs, 2 Graphics cards configured for GPU pass-through and I am using 2 VMs running off of it. When I play most games, I get pretty big lag spikes but Task manager is showing that my highest usage CPU thread is only around 40% and its defiantly not a GPU issue. I did some tests and running games with only one VM on and 1 CPU works very well. I looked up some things like enabling NUMA aware CPU but nothing seems to be working. I think I need to try CPU pinning/Processor affinity next but I couldn't find a way to do it. I would like it so each VM is using using its own physical CPU socket

I'm pretty new to Proxmox and any help on what I should try would be appreciated.

System info:
-HP DL380P G8
-2x Intel Xeon E5-2687W
-64GB ram
-graphics cards are the GTX 1070 and the GTX 660

I want VM 100 to be using the second CPU socket and the GTX 1070
I want VM 102 to be using the first CPU socket and the GTX 660

More info:
Code:
numactl -H
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: 11054 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: 295 MB
node distances:
node   0   1
  0:  10  20
  1:  20  10
 
This is currently not supported via PVE tooling alone, but can be accomplished with hookscripts. See this answer for an example.

You might also want to combine this with cset (as mentioned here) to avoid host tasks interfering with your VMs.
 

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!