how can i enable hyperthreading on an azure vm e series

Konstantinos Takavakidis 1 Reputation point
2022-02-06T17:38:44.073+00:00

I have an IaaS vm E series and I want to enable hyperthreading because I have installed oracle on this VM. How can I enable this on the vm?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,878 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 13,586 Reputation points Microsoft Employee
    2022-02-07T17:29:11.507+00:00

    Hello, @Konstantinos Takavakidis !

    The Oracle license has special rules for multi-threading processors so it's important to know if hyper-threading is enabled on your virtual machine. I created a hyper-thread capable VM (an Ev3) and as you can see below, hyper-threading was enabled by default (you are asked to contact support to disable hyper-threading ).

    Windows
    You can check if hyper-threading is enabled using WMIC:

    1. From a command prompt, type wmic
    2. In the interactive interface, type CPU Get NumberOfCores,NumberOfLogicalProcessors /Format:List

    If the number of logical processors (cores) is greater than the number of physical processors (cores), then hyper-threading is enabled.

    Linux
    You can check if hyper-threading is enabled using lscpu:

    1. Run the lscpu command in the Linux VM

    If Thread(s) per core = 2, then hyper-threading has been enabled (Thread(s) per core = 1 would indicate hyper-threading has been disabled).

    More reading:
    https://learn.microsoft.com/en-us/azure/virtual-machines/mitigate-se#enabling-additional-security

    171979-image.png