Fortinet white logo
Fortinet white logo

Hyperthreading

Hyperthreading

Enabling hyperthreading for XenServer allows a single processor core to function as two logical processors, often resulting in improved performance. If your XenServer server hardware CPUs support hyperthreading you may be able to optimize FortiGate-VM performance by enabling hyperthreading (sometimes called logical processor) in the server's BIOS and in XenServer.

To check hyperthreading status on a XenServer host:
  1. Open a local shell and log in as 'root'.
  2. Run the following command to display the number of threads uses on the XenServer host

    xl info | grep threads_per_core

    A value greater than 1 indicates that hyperthreading is enabled on the host. A value of 1 indicates that hyperthreading is disabled on the Xen command line or not enabled on the hardware.

To enable hyperthreading on a XenServer host:
  1. Open a local shell and log in as 'root'.
  2. Enter the following command:

    /opt/xensource/libexec/xen-cmdline --set-xen smt=1

  3. Restart the XenServer host.
To disable hyperthreading on a XenServer host:
  1. Open a local shell and log in as 'root'.
  2. Enter the following command:

    /opt/xensource/libexec/xen-cmdline --set-xen smt=0

  3. Restart the XenServer host.

Hyperthreading

Hyperthreading

Enabling hyperthreading for XenServer allows a single processor core to function as two logical processors, often resulting in improved performance. If your XenServer server hardware CPUs support hyperthreading you may be able to optimize FortiGate-VM performance by enabling hyperthreading (sometimes called logical processor) in the server's BIOS and in XenServer.

To check hyperthreading status on a XenServer host:
  1. Open a local shell and log in as 'root'.
  2. Run the following command to display the number of threads uses on the XenServer host

    xl info | grep threads_per_core

    A value greater than 1 indicates that hyperthreading is enabled on the host. A value of 1 indicates that hyperthreading is disabled on the Xen command line or not enabled on the hardware.

To enable hyperthreading on a XenServer host:
  1. Open a local shell and log in as 'root'.
  2. Enter the following command:

    /opt/xensource/libexec/xen-cmdline --set-xen smt=1

  3. Restart the XenServer host.
To disable hyperthreading on a XenServer host:
  1. Open a local shell and log in as 'root'.
  2. Enter the following command:

    /opt/xensource/libexec/xen-cmdline --set-xen smt=0

  3. Restart the XenServer host.