Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

IA-32e 64-bit and compatibility mode

Ravi_K_1
Beginner
3,130 Views

Hi,

From Intel developer manual I see

IA-32e mode allows software to operate in one of two sub-modes:

  •          64-bit mode supports 64-bit OS and 64-bit applications
  •          Compatibility mode allows most legacy software to run; it co-exists with 64-bit applications under a 64-bit OS

I have a quad-core with HT enabled i.e. 8 logical cores

With KVM I want to run 32 bit and 64 bit VMs on a 64 bit Host OS. I want to allocate resources as follows

  1. VM-1 64 bits 2-VCPUs (1 physical-core with HT enabled i.e. 2 logical cores/threads)
  2. VM-2 32 bits 6-VCPUs (3 physical-cores with HT enabled i.e. 6 logical cores/threads)

If VM-1 2-VCPUs are assigned per-thread i.e. they can end up on 2 physical cores shared with VM-2. If this happens cpu switching between compatibility and 64-bit mode can impact performance? 

If I make sure VM-1 2-VCPUs are assigned to 1 physical-core and its enabled for 64-bit mode and VM-2 6-VCPUs are assigned to 3-physical cores and enabled for compatibility mode then we can avoid mode switching? 

In general will there be performance impact on switching between 2 CPU modes? What additional things I need to consider to run both 32-bit and 64-bit VMs without any performance impact?

Thanks,

Ravi

 

0 Kudos
3 Replies
Ravi_K_1
Beginner
3,130 Views

Anyone has some inputs to share?

 

Thanks.

0 Kudos
andysem
New Contributor III
3,130 Views

Regardless of how you distribute the VMs between CPU cores, CPU will switch between 32 and 64-bit mode - at the very least to run the host code. I can't tell how expensive the switch is but IMO it is negligible compared to the costs of virtualization itself. If you want performance, avoid VMs of any kind.

 

0 Kudos
Ravi_K_1
Beginner
3,130 Views

Thanks andysem, in our case host is minimally involved because of mostly user-space code. Are there tools from Intel which can be used to measure a switch between 32 and 64bit mode?

0 Kudos
Reply