How can i setup more CPU to use for Hypervisor? I set big iptables rules and under attack one core gose up to 100% and freeze but i have 16 core for this.
No, I not mean the VM/CT i mean the hypervisor. Aka Xen Dom0 configured to 1 core default. The proxmox use only 1 core if i see properly and i want to add more core to hypervisor.
I think you get somthing wrong.
In KVM all vcpus (VM cores / CT cores) are processes.
So is you have 2 Socket and 8 real cores on one Socked with Intel HT.
It is total 32 cores to use.
If a VM has 1 Socket and 16 cores you are able to use 50% of the cpu power of the host.
If a VM has 2 Socket and 16 cores you are able to use 100% of the cpu power of the host.
the hypervisor is (lightly) using all cores, because VMs don't get exclusive access to cores, they run as processes. normally, the hypervisor should not run anything that uses a lot of resources (except for the VMs and CTs).
if something running on the host is using only 1 CPU, that means that application is single-threaded, which in general cannot be changed by a setting. but some applications make this configurable, and you can limit processes using cgroups. so first, you need to find out which process is using that 1 core, and then you can find out whether this is an artifical limitation that can be changed, or whether it is just how that program was written.