Core vs virtual core vs thread ?

vampyren

Dabbler
Joined
Feb 27, 2021
Messages
24
Hi,

I dont get this part when creating a windows VM. I have a VM that i have set to below:
1631441532553.png


To me above is like 1/3 of the CPU i have. As below shows i have 6 mores and i have given 2 of them to the VM.
Each core can have 2 Virtual CPU. And i assume each Virtual CPU run 1 thread = 8 thread.

Is this understanding correct?

1631441501656.png


Right now sometimes i see High or even critical when using the VM ....
Why? I really dont see how it can be high ?
1631441698229.png


Can anyone explain this please? I plan to run atleast 2 VM. With 2 core each and leaving the NAS with 2 core. I got 32GB memory so maybe using 6GB for each.
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
The 78% number if for one core.... that doesn't matter. It's just an indication that the software on a VM can use a core.

the 40% number includes the VM and the general TrueNAS system including hypervisor. Its possible the VM is being given slightly more CPU than requested, but there is no contention for the resource, so that is OK. CPU Scheduling by KVM is a statistical process, not a rigid assignment of cores.
 

vampyren

Dabbler
Joined
Feb 27, 2021
Messages
24
The 78% number if for one core.... that doesn't matter. It's just an indication that the software on a VM can use a core.

the 40% number includes the VM and the general TrueNAS system including hypervisor. Its possible the VM is being given slightly more CPU than requested, but there is no contention for the resource, so that is OK. CPU Scheduling by KVM is a statistical process, not a rigid assignment of cores.
Ok great then i wont dig deeper into this, thanks!
 
Top