12th Gen Intel CPU - E Core Affinity for SpiceProxy

spetrillo

Member
Feb 15, 2024
293
16
23
Hello all,

I am building a Proxmox based server on a new 12th gen Intel Core Ultra 5 235 processor. I am splitting the E cores for Proxmox related activities and the P cores for my LLM VM. I have created a script that kicks in at boot time, but when I ran the script the first time it errored out, telling me that the SpiceProxy was not able to have its affinity changed. Has anyone seen this type of error?

Thanks,
Steve
 
Here is the script:

#!/bin/bash
# Target E-cores for Core Ultra 5 235: 6, 7, 8, 9, 10, 11, 12, 13
E_CORES="6-13"

# List of Proxmox management services to pin
SERVICES=("pvve-cluster" "pveproxy" "pvestatd" "pvedaemon" "pve-firewall" "spiceproxy")

for svc in "${SERVICES[@]}"; do
PIDS=$(pidof $svc)
if [ ! -z "$PIDS" ]; then
for pid in $PIDS; do
taskset -cp $E_CORES $pid
done
echo "Pinned $svc to cores $E_CORES"
fi
done

# Pin the KVM/QEMU main threads (non-VM threads) if they exist
# This ensures background hypervisor tasks stay on E-cores
taskset -cp $E_CORES $(pgrep -f "pve-manager")


And upon further review it looks like this script kicks off before spiceproxy is enabled, so the error is about the PID not being found. I could take speiceproxy out of the list but what does it really do for me?

Steve