Hi, I have a problem and, to workaround, I need to set CPU affinity.
The system has 2 physical CPU without hyperthreading, so I have 8 "cpu"
I've 2 KVM Win2003 VM, each set with 4 cores
Yesterday I had really bad performances, and htop showed first 4 core be at 10%, while last 4 core very often at 100% (proxmox web interface shows 50-60%, of course, being the mean value among the 2 CPU). One of the VM seem to be the problem, but probably only because is the one that really does some hard work.
Also suspicious is that processes are "balanced" among CPU 1-8, but 100% is reaced only by last 4 ones. I've opened the chassy and checked air flow and fans, but seem to work.
With htop I've moved the tasks of VM1 (heavier work) on top 4 cores, and VM2 on bottom ones, and everything works smootly now, but, at least seems to me, that other processes are created times to time that have no affinity.
Also if I reboot the affinity is lost.
To make it short, what I ask is: how or what can I set in proxmox so automatically all kvm processes of VM1 are pinned to CPU1 (core 1-4) and the ones of VM2 to CPU2?
Has to work at boot and be valid for each new process that VMx creates.
Thanks a lot!
The system has 2 physical CPU without hyperthreading, so I have 8 "cpu"
I've 2 KVM Win2003 VM, each set with 4 cores
Yesterday I had really bad performances, and htop showed first 4 core be at 10%, while last 4 core very often at 100% (proxmox web interface shows 50-60%, of course, being the mean value among the 2 CPU). One of the VM seem to be the problem, but probably only because is the one that really does some hard work.
Also suspicious is that processes are "balanced" among CPU 1-8, but 100% is reaced only by last 4 ones. I've opened the chassy and checked air flow and fans, but seem to work.
With htop I've moved the tasks of VM1 (heavier work) on top 4 cores, and VM2 on bottom ones, and everything works smootly now, but, at least seems to me, that other processes are created times to time that have no affinity.
Also if I reboot the affinity is lost.
To make it short, what I ask is: how or what can I set in proxmox so automatically all kvm processes of VM1 are pinned to CPU1 (core 1-4) and the ones of VM2 to CPU2?
Has to work at boot and be valid for each new process that VMx creates.
Thanks a lot!
Code:
pve-manager: 1.7-11 (pve-manager/1.7/5470)
running kernel: 2.6.35-1-pve
proxmox-ve-2.6.35: 1.7-9
pve-kernel-2.6.32-4-pve: 2.6.32-30
pve-kernel-2.6.35-1-pve: 2.6.35-9
qemu-server: 1.1-28
pve-firmware: 1.0-10
libpve-storage-perl: 1.0-16
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-10
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.13.0-3
ksm-control-daemon: 1.0-4
Intel(R) Xeon(R) CPU E5506 2.13GHz