LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
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.

Notices


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

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

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
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
dyasny
Member
 
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
 
  


Reply

Tags
ht, hyperthreading, kvm, performance



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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

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