Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.


  Search this Thread
Old 02-15-2013, 04:15 AM   #1
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
LibVirt/KVM: HyperThreading On or Off?


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,
Old 02-16-2013, 12:49 PM   #2
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,137
Blog Entries: 2

Rep: Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840
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.
Old 02-16-2013, 08:13 PM   #3
Registered: Mar 2008
Posts: 16,889

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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.
Old 02-17-2013, 11:49 PM   #4
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
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


ht, hyperthreading, kvm, performance

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kvm/libvirt bridge etheraap Linux - Server 0 02-04-2013 08:44 PM
libvirt install with kvm (from source) guardian1 Linux - Virtualization and Cloud 2 12-07-2012 05:07 PM
Which version kvm/libvirt on which distros? Nick_C Linux - Virtualization and Cloud 11 03-07-2012 10:14 AM
LXer: Scripting KVM with Python, Part 2: Add a GUI to manage KVM with libvirt and Python LXer Syndicated Linux News 0 01-17-2012 08:11 PM
LXer: Set up Ubuntu 11.04 KVM to run is spice session on Fedora 14 KVM Server ( Libvirt Preview Env) LXer Syndicated Linux News 0 03-20-2011 12:00 AM > Forums > Linux Forums > Linux - Virtualization and Cloud

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration