Core 0 on 3D V-Cache CCD

Specs: Asus ProArt X670E-Creator WiFi, Ryzen 9 7950X3D, 64GB RAM (2x32), Proxmox 8.1.10

I’m making a gaming VM with vCPUs pinned to CPU cores located on 3D V-Cache CCD0, with the help the tutorial and a hookscript on proxmox forum:
[TUTORIAL] Hey Proxmox & Community - Let’s talk about resources isolation

The tutorial describes using CCD1 cores for a VM. The part of a script is to make all CCD1 cores offline to move all host threads to CCD0, “pin” them there and bring back online fresh, non-busy CCD1 cores and pin vCPUs to them.

In my case, I need to pin vCPUs to 3d cached CCD0 cores. The problem is, I can’t make Core 0 (which is located on CCD0) offline because it’s reserved by the kernel if I understand correctly.

Is there a way to make the kernel to reserve another CPU core/CCD/NUMA node? Maybe with BIOS settings or kernel parameters?

1 Like

I’d be starting here. https://docs.kernel.org/admin-guide/kernel-parameters.html, then pivot to searching the rest of the Documentation folder of the kernel.

Can you pin the cores without isolating them? I do this on my 5950x, and it works fine.

Hi, did you find a solution ? I’ve got the same problem with my 9950 x3d

There’s isolcpus to completely disable the cores from being scheduled on. Then you can use taskset to manually assign those cores to either the VM or another application. Taskset has a manpage; isolcpus can be found in the above kernel parameter link, but it’s basically just add “isolcpus=core1,core2” to your kernel parameters.

1 Like

Yep, I use isolcpus in my grub command line to remove specific cores from scheduling.

Just pin all the vCPUs in a single CCD. Like this <vcpu placement='static' cpuset='0-7,16-23'>16</vcpu> in your vm config file.
BTW, you could verify cache affinity with ‘lscpu -e’