Solved Win11 hypervisor cpu performance impact (~ -10%)


sny

New member
Local time
12:18 AM
Posts
4
OS
w11
hi all,

I need to run docker containers on my pc (work) but also like to have maximum performance for playing games. It seems that just by having the hypervisor running (no container, no wsl) the cpu performance is about -10% (e.g. cpu-z benchmark).

reproducible by running the following commands, restart, benchmark:
* bcdedit /set hypervisorlaunchtype off -> cpu-z single core score ~920
* bcdedit /set hypervisorlaunchtype auto -> cpu-z single core score ~855

problem is, that with "bcdedit /set hypervisorlaunchtype off" docker won't start.

I thought it had something to do with virtualization based security (vbs) but using various commands to disable that (and checkinging in System Information - "Virtualization-based security": Running, Enabled but not running, ...) does not change the results (keys in HKEY_LOCAL_MACHINE/SystemCurrentControlSetControlDeviceGuard; gpedit - EnableVirtualizationBasedSecurity).
Also, changing the hypervisor scheduler type does not change anything (classic, core, root -> root was default)

It is of course not really important, probably won't notice a difference but I just don't like it (I try to optimize for peformance wherever possible).

Question: Any idea about how to not loose ~10% performance but be able to run docker containers?
 
Windows Build/Version
26100.268

My Computer

System One

  • OS
    w11
    Computer type
    PC/Desktop
I have never experienced such a loss in performance with the hypervisor enabled (at most 2-3%)

Are you comparing things on same basis i.e. running same apps in both cases. It could be Dockers Containers is causing most of the apparent loss of performance.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
I have never experienced such a loss in performance with the hypervisor enabled (at most 2-3%)

Are you comparing things on same basis i.e. running same apps in both cases. It could be Dockers Containers is causing most of the apparent loss of performance.

cpu-z is executed on the host (windows11), no containers/wsl/vms or docker software (not even the docker service) running - the only difference is windows hypervisor running or not (bcdedit /set hypervisorlaunchtype off/auto)...
 

My Computer

System One

  • OS
    w11
    Computer type
    PC/Desktop
cpu-z is executed on the host (windows11), no containers/wsl/vms or docker software (not even the docker service) running - the only difference is windows hypervisor running or not (bcdedit /set hypervisorlaunchtype off/auto)...
Then I question cpu-z. Try running more rigorous benchmarking tools like passmark.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
I need to run docker containers on my pc (work) but also like to have maximum performance for playing games. It seems that just by having the hypervisor running (no container, no wsl) the cpu performance is about -10% (e.g. cpu-z benchmark).
Welcome to Eleven Forum.

You can set up a boot menu to choose to start up with or without the Hypervisor. See post #2 here by Kari.

 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Like
Reactions: sny
Welcome to Eleven Forum.

You can set up a boot menu to choose to start up with or without the Hypervisor. See post #2 here by Kari.


thank you, very helpful suggestion! this is actually sufficient 99% of the time (pc start, work, shutdown, do whatever, pc start, play)
 

My Computer

System One

  • OS
    w11
    Computer type
    PC/Desktop
update: i had to restore a backup from 2 month back, installed all updates and I do not have this performance degredation with enabled hypervisor any longer - it seems something was wrong with my system, for whatever reason.
 

My Computer

System One

  • OS
    w11
    Computer type
    PC/Desktop
update: i had to restore a backup from 2 month back, installed all updates and I do not have this performance degredation with enabled hypervisor any longer - it seems something was wrong with my system, for whatever reason.
Thanks for updating - please mark as solved.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

Latest Support Threads

Back
Top Bottom