Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:server:windows_vm [2022/09/29 14:48] – [CPU usage] fix double hyphen -> em dash in commands michaelbromilow | linux:server:windows_vm [2023/09/04 21:08] (current) – add more hyperv enlightenments michaelbromilow | ||
---|---|---|---|
Line 40: | Line 40: | ||
It may also be a good idea to use '' | It may also be a good idea to use '' | ||
+ | |||
+ | ===== Tweaks for performance ===== | ||
+ | See https:// | ||
+ | |||
+ | ==== CPU Topology & Configuration ==== | ||
+ | Match the host CPU topology with the VM (cores can be changed as desired). Enable '' | ||
+ | |||
+ | <domain type=" | ||
+ | ... | ||
+ | <cpu mode=" | ||
+ | < | ||
+ | </ | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Add one or more threads dedicated to I/O (libvirt recommends max 1 per core). | ||
+ | |||
+ | <domain type=" | ||
+ | ... | ||
+ | < | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Set up the vCPUs for the guest by pinning them to the host. See '' | ||
+ | |||
+ | <domain type=" | ||
+ | ... | ||
+ | <vcpu placement=" | ||
+ | < | ||
+ | <vcpupin vcpu=" | ||
+ | <vcpupin vcpu=" | ||
+ | <vcpupin vcpu=" | ||
+ | <vcpupin vcpu=" | ||
+ | <vcpupin vcpu=" | ||
+ | <vcpupin vcpu=" | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | ... | ||
+ | </ | ||
==== Enlightenments ==== | ==== Enlightenments ==== | ||
Line 52: | Line 92: | ||
< | < | ||
< | < | ||
- | <relaxed state='on'/> | + | <relaxed state="on"/> |
- | <vapic state='on'/> | + | <vapic state="on"/> |
- | < | + | < |
- | <vpindex state='on'/> | + | <vpindex state="on"/> |
- | <synic state='on'/> | + | <runtime state=" |
- | <stimer state='on'/> | + | <synic state="on"/> |
- | <reset state='on'/> | + | <stimer state="on"/> |
+ | <reset state="on"/> | ||
< | < | ||
< | < | ||
+ | < | ||
+ | < | ||
+ | <ipi state=" | ||
+ | <evmcs state=" | ||
</ | </ | ||
</ | </ |