Despite reading a couple of things related to the VM CPU-settings, I must admit I am still ^completely lost^.
At VM setup CPU-section you can assign:
- Virtual CPU's
- Cores
- Treads
And you define the CPU-mode. That seems to be the easy one, where I assume that that should normally be ^Host Pass through^
Coming back on the hard part "Virtual CPU's, Cores and Treads" Looking at the physical side of TrueNas scale:
- it has one or more physical CPU's (in my case 1)
- each having one or more core's (in my case 8)
- each core can handle one or more threads (in my case 2)
But than .... what for the hell are "virtual CPU's" !!??
And what is the relation between VM-Cores to Physical-Cores !?
And between "VM-threads to Physical-treads" !?
I also assume that:
- TrueNas Scale itself should always have at lease one core !!???????
- some how the physical CPU can in my case not deliver more that 8 cores and 16 threads
- that if a VM is running, it can never use more than the assigned resources
- that if a VM is not activated by the scheduler, it does not use any CPU-resource
- than it seems to be that a VM-is not made active by the scheduler, if the number of requested resources is not available at that time
(I think)
- how to prevent the scheduler to assign all CPU resources to VM's not leaving a resource for TrueNas Scale itself !?
So I am really lost especially related to Virtual CPU's which I can in no way map on the physical CPU.
As example what is happening when I assign two virtual CPU's, where there is only one physical CPU ???????
At VM setup CPU-section you can assign:
- Virtual CPU's
- Cores
- Treads
And you define the CPU-mode. That seems to be the easy one, where I assume that that should normally be ^Host Pass through^
Coming back on the hard part "Virtual CPU's, Cores and Treads" Looking at the physical side of TrueNas scale:
- it has one or more physical CPU's (in my case 1)
- each having one or more core's (in my case 8)
- each core can handle one or more threads (in my case 2)
But than .... what for the hell are "virtual CPU's" !!??
And what is the relation between VM-Cores to Physical-Cores !?
And between "VM-threads to Physical-treads" !?
I also assume that:
- TrueNas Scale itself should always have at lease one core !!???????
- some how the physical CPU can in my case not deliver more that 8 cores and 16 threads
- that if a VM is running, it can never use more than the assigned resources
- that if a VM is not activated by the scheduler, it does not use any CPU-resource
- than it seems to be that a VM-is not made active by the scheduler, if the number of requested resources is not available at that time
(I think)
- how to prevent the scheduler to assign all CPU resources to VM's not leaving a resource for TrueNas Scale itself !?
So I am really lost especially related to Virtual CPU's which I can in no way map on the physical CPU.
As example what is happening when I assign two virtual CPU's, where there is only one physical CPU ???????