Virtual Hyperthreading is supported from vSphere 8 Virtual Hyperthreding support for VMs
. In VIO 7.3, user can create instances with vHT enablement.
Prerequisites
- vSphere 8 is required.
- HW version VMX 20 is required.
- Threads per core is set to 2 in vSphere 8.
Procedure
- Create instance with vHT enablement with Openstack CLI.
- Create a flavor with vHT property set.
openstack flavor create --vcpus 2 --ram 512 --disk 1 m1.tiny.ht openstack flavor set m1.tiny.ht --property vmware:latency_sensitivity_level="high with HT"
- Create nova instance with above flavor.
- Create a flavor with vHT property set.
- User can also create instances with vHT enablement in horizon UI.
- Create flavor in
Admin->Flavors
. The VCPU number should be even number. - Update metadata, setting
vmware:latency_sensitivity_level
to"high with HT"
. - Create instance with the above flavor.
- Create flavor in
Results
User can check the VMX file and view the following options:
cpuid.numSMT=2 sched.cpu.latencySensitivity="high" virtualHW.version=20
Or, user can check VM settings in vCenter and ensure that Latency Sensitivity is set to High with Hyperthreading
.
quota:cpu_reservation_percent
or
quota:cpu_reservation
in the flavor together with
vmware:latency_sensitivity_level="high with HT"
. User should use the default value, which is 50%.