LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   LibVirt/KVM: HyperThreading On or Off? (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/libvirt-kvm-hyperthreading-on-or-off-4175450238/)

r0b0 02-15-2013 04:15 AM

LibVirt/KVM: HyperThreading On or Off?
 
Hi,

We have serveral servers with Intel i7 2600 quad core processors all running Ubuntu 12.04 LTS and they are used as hosts of virtual machines on libvirt/kvm.

My question is, should we turn hyper-threading on? From experience, if it is on, we see 8 CPUs on the host, if it is off, we see 4. We cannot see any noticable differences in performance so I was wandering if any of you have made some benchmarks or have some experience or other usefull information w.r.t. HT and KVM?

Thanks a lot,
Robert

TobiSGD 02-16-2013 12:49 PM

If Hyperthreading is beneficial for you depends highly on your type of workload, only you with your specific mix of applications can determine that reliably.

jefro 02-16-2013 08:13 PM

Hyperthreading was a mess when it was first introduced. Many if not most of the tests would show that there was a performance hit when enabled. My opinion is that if you are using modern distro and up to date apps and you need many cpu's either virtual or real then use hyperthreading. Most of the early problems that were common have been resolved. Most of the apps are smp aware and HT aware. You won't really have an 8 core but for most smp aware apps it should help. Many apps are still only good for a couple of cores. I never turn it off anymore for my uses.

TobiSGD brings up a good point about use as the basis for answer.

dyasny 02-17-2013 11:49 PM

it depends on the workload. generally speaking, HT helps when you have IO bound loads and/or heavily congested CPU. If you are not overcomitting your CPU and have no disk/network bottlenecks, HT will probably not provide any advantages, and might, under certain conditions, even hinder performance


All times are GMT -5. The time now is 05:00 PM.