How to Enable Processor Resource Controls in Hyper-V
How to Enable Processor Resource Controls in Hyper-V
4. What are Hyper-V hypervisor scheduler types?
Starting with Windows Server 2016, the Hyper-V hypervisor supports several modes of scheduler logic, which determine how the hypervisor schedules virtual processors on the underlying logical processors. These scheduler types are:
- The classic scheduler provides a fair share, preemptive round- robin scheduling model for guest virtual processors.
- The core scheduler offers a strong security boundary for guest workload isolation, and reduced performance variability for workloads inside of VMs that are running on an SMT-enabled virtualization host.
- The root scheduler cedes control of work scheduling to the root partition. The NT scheduler in the root partition’s OS instance manages all aspects of scheduling work to system LPs.
5. Determine your current Hyper-V Hypervisor Scheduler Type
Execute the command below.
Get-WinEvent -FilterHashTable @{ProviderName="Microsoft-Windows-Hyper-V-Hypervisor"; ID=2} -MaxEvents 1
- 1 = Classic scheduler, SMT disabled
- 2 = Classic scheduler
- 3 = Core scheduler
- 4 = Root scheduler
6. Enable processor resource controls in Hyper-V by setting Scheduler Type to Core or Classic.
- Open a Command Prompt as Administrator and execute the command below.
C:\Windows\System32\bcdedit.exe /set hypervisorschedulertype Core